Jetpack plugin for WordPress

1. Caddy version (caddy version):

webserver: v2.1.1 h1:X9k1+ehZPYYrSqBvf/ocUgdLSRIuiNiMo7CvyGUQKeA= (static binary download)

reverse proxy: v2.1.2-0.20200808144201-c42bfaf31ed9 h1:yKq4z33o07tVA4GjmaCDrFglcGS6MJebiM9813yDLj0= (xcaddy build)

2. How I run Caddy:

a. System environment:

Two jails under FreeNAS 11.3-U4.1:

  1. WordPress 5.5.1 + MariaDB 10.3 + PHP 7.4 + Caddy 2.1.1 webserver
  2. Caddy 2.1.2 reverse proxy

b. Command:

service caddy start

c. Service/unit/compose file:

N/A

d. My complete Caddyfile or JSON config:

Caddyfile for webserver:

:80 {
  root * /usr/local/www/wordpress
  encode gzip
  php_fastcgi 127.0.0.1:9000
  file_server

  # Prevent malicious PHP uploads from running
  respond /uploads/*.php 404
}

Caddyfile for reverse proxy:

www.udance.com.au udance.com.au {
  encode gzip
  tls {
    dns cloudflare REDACTED
  }
  reverse_proxy http://10.1.1.24 
}

3. The problem I’m having:

Site health of the WordPress base installation suggests no errors:
screenshot.550

However, when the JetPack plugin for WordPress is installed and activated…
screenshot.551

… site health changes:

Attempting to set up Jetpack throws up the error shown below.

4. Error messages and/or full log output:

The log entries are taken AFTER the changes made in section 5 and with an attempt to set up the Jetpack.

Webserver /var/log/caddy.log

{"level":"info","ts":1599819469.9698007,"msg":"using provided configuration","config_file":"/usr/local/www/Caddyfile","config_adapter":"caddyfile"}
{"level":"info","ts":1599819469.9711442,"logger":"admin","msg":"admin endpoint started","address":"tcp/localhost:2019","enforce_origin":false,"origins":["localhost:2019","[::1]:2019","127.0.0.1:2019"]}
{"level":"info","ts":1599819469.971312,"logger":"http","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv0","http_port":80}
2020/09/11 18:17:49 [INFO][cache:0xc00007daa0] Started certificate maintenance routine
{"level":"info","ts":1599819469.9715374,"logger":"tls","msg":"cleaned up storage units"}
{"level":"info","ts":1599819469.971637,"msg":"autosaved config","file":"/.config/caddy/autosave.json"}
{"level":"info","ts":1599819469.971648,"msg":"serving initial configuration"}
Successfully started Caddy (pid=21052) - Caddy is running in the background

Reverse proxy

{"level":"info","ts":1599819401.9343371,"msg":"using provided configuration","config_file":"/usr/local/www/Cadd
{"level":"info","ts":1599819401.938355,"logger":"admin","msg":"admin endpoint started","address":"tcp/localhost
{"level":"info","ts":1599819401.9384675,"logger":"tls.cache.maintenance","msg":"started background certificate
{"level":"info","ts":1599819401.9387617,"logger":"http","msg":"server is listening only on the HTTPS port but h
{"level":"info","ts":1599819401.9388025,"logger":"http","msg":"enabling automatic HTTP->HTTPS redirects","serve
{"level":"info","ts":1599819401.9397967,"logger":"http","msg":"enabling automatic TLS certificate management","
{"level":"info","ts":1599819401.9538271,"msg":"autosaved config","file":"/.config/caddy/autosave.json"}
{"level":"info","ts":1599819401.9540384,"msg":"serving initial configuration"}
Successfully started Caddy (pid=19632) - Caddy is running in the background
{"level":"info","ts":1599819402.2545092,"logger":"tls","msg":"cleaned up storage units"}

5. What I already tried:

Running through the Jetpack troubleshooting guide Fixing Jetpack Connection Issues picked up no issues.

I then searched the Caddy forum for relevant threads and came across the links in section 6.

I altered the webserver Caddyfile to include the env field for the fastcgi directive…

:80 {
  root * /usr/local/www/wordpress
  encode gzip

  php_fastcgi 127.0.0.1:9000 {
    env SERVER_PORT 80
  }
  file_server

  # Prevent malicious PHP uploads from running
  respond /uploads/*.php 404
}

…and the site health server port issue disappears. The Blog Token issue remains and I still get the same 500 error in trying to set up the Jetpack plugin.

As suggested in one of the links, I try to add the Header Up field to the reverse proxy code block without any change (I try both 80 and 443…because I don’t really understand what I’m doing).

www.udance.com.au udance.com.au {
  encode gzip
  tls {
    dns cloudflare REDACTED
  }
  reverse_proxy http://10.1.1.24 { 
    header_up X-Forwarded-Port 80
  }
}

I’m now stuck. Googling turned up nothing helpful. I’m not even sure if the Blog Token issue is even Caddy related, but I have to admit a lot of what was discussed in the links went over my head. I hoping someone in the Caddy community can shed some light on what might be happening here.

6. Links to relevant resources:

  1. Rewrite v1 IF blocks to v2 Matchers?
  2. https://github.com/caddyserver/caddy/issues/2952

No garuntee this work as I didn’t use wordpress for a long long time.

Web server Caddyfile:

:80 {
  root * /usr/local/www/wordpress
  encode gzip
  php_fastcgi 127.0.0.1:9000
  file_server

  # Prevent malicious PHP uploads from running
  respond /uploads/*.php 404

  # Rewrite for jetpack
  @jetpack {
    not file {uri} {uri}/
  }
  rewrite @jetpack /index.php{uri}

}

Reason for rewrite is jetpack url does not contain index.php:

/wp-json/jetpack/...

It rely on .htaccess for rewrite, which caddy does not support.

Thank you for the suggestion. Attempting to log in to WordPress…

… gives me too many redirects

screenshot.556

Not sure if this is helpful, but jetpack and the index.php are located as shown…

I’ve reversed the suggestion for the moment.

@John_Siu I don’t think that rewrite is necessary, because the php_fastcgi directive has its own try_files logic built-in to handle falling back to index.php. See the expanded form:

I don’t know anything about Jetpack, so I don’t think I’ll be able to give much more help on this topic. That message doesn’t mean anything to me. But a quick google seems to suggest you should disconnect and reconnect from Jetpack, maybe to reissue the auth token?

The various log files don’t seem to suggest any errors when attempting to set up Jetpack…

/var/db/mysql/wordpress.err

root@wordpress:~ # cat /var/db/mysql/wordpress.err
2020-09-12  7:51:20 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-09-12  7:51:20 0 [Note] InnoDB: Uses event mutexes
2020-09-12  7:51:20 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-09-12  7:51:20 0 [Note] InnoDB: Number of pools: 1
2020-09-12  7:51:20 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-09-12  7:51:20 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2020-09-12  7:51:20 0 [Note] InnoDB: Completed initialization of buffer pool
2020-09-12  7:51:20 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-09-12  7:51:20 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-09-12  7:51:20 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-09-12  7:51:20 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2020-09-12  7:51:20 0 [Note] InnoDB: Waiting for purge to start
2020-09-12  7:51:20 0 [Note] InnoDB: 10.3.23 started; log sequence number 10595291; transaction id 5686
2020-09-12  7:51:20 0 [Note] InnoDB: Loading buffer pool(s) from /var/db/mysql/ib_buffer_pool
2020-09-12  7:51:20 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-09-12  7:51:20 0 [Note] Server socket created on IP: '::'.
2020-09-12  7:51:21 0 [Note] Reading of all Master_info entries succeeded
2020-09-12  7:51:21 0 [Note] Added new Master_info '' to hash table
2020-09-12  7:51:21 0 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '10.3.23-MariaDB'  socket: '/tmp/mysql.sock'  port: 3306  FreeBSD Ports
2020-09-12  7:51:21 0 [Note] InnoDB: Buffer pool(s) load completed at 200912  7:51:21
root@wordpress:~ # cat /var/db/mysql/wordpress.err
2020-09-12  7:51:20 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-09-12  7:51:20 0 [Note] InnoDB: Uses event mutexes
2020-09-12  7:51:20 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-09-12  7:51:20 0 [Note] InnoDB: Number of pools: 1
2020-09-12  7:51:20 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-09-12  7:51:20 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances =                                                                                                  1, chunk size = 128M
2020-09-12  7:51:20 0 [Note] InnoDB: Completed initialization of buffer pool
2020-09-12  7:51:20 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-09-12  7:51:20 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-09-12  7:51:20 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writin                                                                                                 g the file full; Please wait ...
2020-09-12  7:51:20 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2020-09-12  7:51:20 0 [Note] InnoDB: Waiting for purge to start
2020-09-12  7:51:20 0 [Note] InnoDB: 10.3.23 started; log sequence number 10595291; transacti                                                                                                 on id 5686
2020-09-12  7:51:20 0 [Note] InnoDB: Loading buffer pool(s) from /var/db/mysql/ib_buffer_pool
2020-09-12  7:51:20 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-09-12  7:51:20 0 [Note] Server socket created on IP: '::'.
2020-09-12  7:51:21 0 [Note] Reading of all Master_info entries succeeded
2020-09-12  7:51:21 0 [Note] Added new Master_info '' to hash table
2020-09-12  7:51:21 0 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '10.3.23-MariaDB'  socket: '/tmp/mysql.sock'  port: 3306  FreeBSD Ports
2020-09-12  7:51:21 0 [Note] InnoDB: Buffer pool(s) load completed at 200912  7:51:21

/var/log/php-fpm.log

root@wordpress:/var/log # cat /var/log/php-fpm.log
[12-Sep-2020 07:51:20] NOTICE: configuration file /usr/local/etc/php-fpm.conf test is successful

[12-Sep-2020 07:51:20] NOTICE: fpm is running, pid 80859
[12-Sep-2020 07:51:20] NOTICE: ready to handle connections

webserver /var/log/caddy.log

root@wordpress:/var/log # cat /var/log/caddy.log
{"level":"info","ts":1599868281.4251747,"msg":"using provided configuration","config_file":"/usr/local/www/Caddyfile","config_adapter":"caddyfile"}
{"level":"info","ts":1599868281.4266074,"logger":"admin","msg":"admin endpoint started","address":"tcp/localhost:2019","enforce_origin":false,"origins":["localhost:2019","[::1]:2019","127.0.0.1:2019"]}
2020/09/12 07:51:21 [INFO][cache:0xc00086c960] Started certificate maintenance routine
{"level":"info","ts":1599868281.426785,"logger":"http","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv0","http_port":80}
{"level":"info","ts":1599868281.4270449,"logger":"tls","msg":"cleaned up storage units"}
{"level":"info","ts":1599868281.4271605,"msg":"autosaved config","file":"/.config/caddy/autosave.json"}
{"level":"info","ts":1599868281.4271715,"msg":"serving initial configuration"}
Successfully started Caddy (pid=80967) - Caddy is running in the background

After enabling debug in WordPress /var/log/debug.log

root@wordpress:/var/log # cat /var/log/debug.log
Sep 12 07:51:19 wordpress newsyslog[80799]: logfile first created

Thanks for the suggestion, but that’s one of the first things I tried, but without any change.

I think you’ll need to reach out to Jetpack for help. If they need to clarify anything about Caddy, they can reach out to us.

There was no .htaccess, but WordPress multisite required that I set this up. If Caddy doesn’t support .htaccess, could this be the source of error?

I don’t think so, Caddy’s php_fastcgi default behaviour should effectively do that already, I think.

Good idea. I’ll refer them to this thread.

My information likely outdated.

@basil remove the rewrite and add access log:

:80 {
  root * /usr/local/www/wordpress
  encode gzip
  php_fastcgi 127.0.0.1:9000
  file_server

  # Prevent malicious PHP uploads from running
  respond /uploads/*.php 404

  log {
    format logfmt
    output file /var/log/caddy/access.log {
      roll_keep 7
    }
  }
}

Then check log entries related to jetpack.

I’ll report back soon. Just noting my webserver Caddyfile includes the env field for the fastcgi directive. This is required to fix the server port value issue mentioned earlier.

:80 {
  root * /usr/local/www/wordpress
  encode gzip

  php_fastcgi 127.0.0.1:9000 {
    env SERVER_PORT 80
  }
  file_server

  # Prevent malicious PHP uploads from running
  respond /uploads/*.php 404

  log {
    format logfmt
    output file /var/log/caddy/access.log {
      roll_keep 7
    }
  }
}

For completeness, the current Caddyfile code block for the reverse proxy:

www.udance.com.au udance.com.au {
  encode gzip
  tls {
    dns cloudflare REDACTED
  }
  reverse_proxy http://10.1.1.24 
}

Now things get interesting…

When I access the WordPress site at udance.com.au, this is what I first see in the access log.

root@wordpress:~ # cat /var/log/caddy/access.log
ts=1599873001.3600352 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:10:01 +0800] \"GET / HTTP/1.1\" 200 7281" duration=0.236330267 size=7281 status=200 resp_headersError="unsupported value type"

When I attempt to set up Jetpack, there are additional entries.

root@wordpress:~ # cat /var/log/caddy/access.log
ts=1599873001.3600352 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:10:01 +0800] \"GET / HTTP/1.1\" 200 7281" duration=0.236330267 size=7281 status=200 resp_headersError="unsupported value type"
ts=1599873230.0869484 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:13:50 +0800] \"GET /wp-login.php HTTP/1.1\" 200 2450" duration=0.169804037 size=2450 status=200 resp_headersError="unsupported value type"
ts=1599873235.7242544 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:13:55 +0800] \"POST /wp-login.php HTTP/1.1\" 302 0" duration=0.197188507 size=0 status=302 resp_headersError="unsupported value type"
ts=1599873236.094247 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:13:56 +0800] \"GET /wp-admin/ HTTP/1.1\" 200 21118" duration=0.363332656 size=21118 status=200 resp_headersError="unsupported value type"
ts=1599873236.1755373 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:13:56 +0800] \"GET /wp-content/plugins/jetpack/css/jetpack-connect.min.css?ver=5.5.1 HTTP/1.1\" 304 0" duration=0.0002847 size=0 status=304 resp_headersError="unsupported value type"
ts=1599873236.1755373 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:13:56 +0800] \"GET /wp-content/plugins/jetpack/css/jetpack-icons.min.css?ver=8.9 HTTP/1.1\" 304 0" duration=0.000202336 size=0 status=304 resp_headersError="unsupported value type"
ts=1599873236.1775773 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:13:56 +0800] \"GET /wp-content/plugins/jetpack/vendor/automattic/jetpack-jitm/assets/jetpack-admin-jitm.min.css?ver=1.7.3-201243242 HTTP/1.1\" 304 0" duration=0.000148459 size=0 status=304 resp_headersError="unsupported value type"
ts=1599873236.1775973 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:13:56 +0800] \"GET /wp-content/plugins/jetpack/css/jetpack-banners.min.css?ver=8.9-20121016 HTTP/1.1\" 304 0" duration=0.00013784 size=0 status=304 resp_headersError="unsupported value type"
ts=1599873236.1777945 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:13:56 +0800] \"GET /wp-content/plugins/jetpack/_inc/build/admin.css?ver=8.9 HTTP/1.1\" 304 0" duration=0.000119989 size=0 status=304 resp_headersError="unsupported value type"
ts=1599873236.2995079 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:13:56 +0800] \"GET /wp-content/plugins/jetpack/_inc/build/jetpack-connection-banner.min.js?ver=8.9 HTTP/1.1\" 304 0" duration=0.000128561 size=0 status=304 resp_headersError="unsupported value type"
ts=1599873236.2995079 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:13:56 +0800] \"GET /wp-content/plugins/jetpack/_inc/build/jetpack-jitm.min.js?ver=1.7.3 HTTP/1.1\" 304 0" duration=0.00018886 size=0 status=304 resp_headersError="unsupported value type"
ts=1599873236.2995079 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:13:56 +0800] \"GET /wp-content/plugins/jetpack/_inc/build/connect-button.min.js?ver=8.9 HTTP/1.1\" 304 0" duration=0.000220094 size=0 status=304 resp_headersError="unsupported value type"
ts=1599873236.2996483 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:13:56 +0800] \"GET /wp-content/plugins/jetpack/images/jetpack-powering-up.svg HTTP/1.1\" 304 0" duration=0.000178822 size=0 status=304 resp_headersError="unsupported value type"
ts=1599873236.3248296 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:13:56 +0800] \"GET /wp-content/plugins/jetpack/_inc/fonts/jetpack/jetpack.woff HTTP/1.1\" 304 0" duration=0.00017136 size=0 status=304 resp_headersError="unsupported value type"
ts=1599873236.6691313 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:13:56 +0800] \"POST /wp-admin/admin-ajax.php HTTP/1.1\" 200 16" duration=0.230701303 size=16 status=200 resp_headersError="unsupported value type"
ts=1599873236.6858432 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:13:56 +0800] \"POST /wp-admin/admin-ajax.php HTTP/1.1\" 200 16" duration=0.246231791 size=16 status=200 resp_headersError="unsupported value type"
ts=1599873236.8597698 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:13:56 +0800] \"GET /wp-json/jetpack/v4/jitm?message_path=wp%3Adashboard%3Aadmin_notices&query=&full_jp_logo_exists=false&_wpnonce=35ce950605 HTTP/1.1\" 200 2" duration=0.368999372 size=2 status=200 resp_headersError="unsupported value type"
ts=1599873240.1809072 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:14:00 +0800] \"GET /wp-admin/admin.php?page=jetpack HTTP/1.1\" 200 43797" duration=0.39244992 size=43797 status=200 resp_headersError="unsupported value type"
ts=1599873240.2371316 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:14:00 +0800] \"GET /wp-content/plugins/jetpack/_inc/genericons/genericons/genericons.css?ver=3.1 HTTP/1.1\" 200 16776" duration=0.000578205 size=16776 status=200 resp_headersError="unsupported value type"
ts=1599873240.23876 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:14:00 +0800] \"GET /wp-content/plugins/jetpack/css/jetpack-admin.min.css?ver=8.9-20121016 HTTP/1.1\" 200 5142" duration=0.000648845 size=5142 status=200 resp_headersError="unsupported value type"
ts=1599873240.2388303 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:14:00 +0800] \"GET /wp-content/plugins/jetpack/_inc/build/style.min.css?ver=8.9 HTTP/1.1\" 200 9967" duration=0.000705979 size=9967 status=200 resp_headersError="unsupported value type"
ts=1599873240.3739643 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:14:00 +0800] \"GET /wp-content/plugins/jetpack/images/jetpack-connection-security.svg HTTP/1.1\" 200 3541" duration=0.000460203 size=3541 status=200 resp_headersError="unsupported value type"
ts=1599873240.3751404 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:14:00 +0800] \"GET /wp-content/plugins/jetpack/images/jetpack-connection-performance.svg HTTP/1.1\" 200 7319" duration=0.000541847 size=7319 status=200 resp_headersError="unsupported value type"
ts=1599873240.388514 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:14:00 +0800] \"GET /wp-content/plugins/jetpack/_inc/build/admin.js?ver=8.9 HTTP/1.1\" 200 298776" duration=0.014941584 size=298776 status=200 resp_headersError="unsupported value type"
ts=1599873240.8839736 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:14:00 +0800] \"GET /wp-json/jetpack/v4/jitm?message_path=wp%3Atoplevel_page_jetpack_setup%3Aadmin_notices&query=page%253Djetpack&full_jp_logo_exists=true&_wpnonce=35ce950605 HTTP/1.1\" 200 2" duration=0.242756356 size=2 status=200 resp_headersError="unsupported value type"
ts=1599873242.4623947 level=error msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:14:02 +0800] \"POST /xmlrpc.php?for=jetpack HTTP/1.1\" 500 318" duration=0.262153703 size=318 status=500 resp_headersError="unsupported value type"
ts=1599873243.4131956 level=error msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:14:03 +0800] \"POST /?rest_route=/jetpack/v4/verify_registration/ HTTP/1.1\" 500 1528" duration=0.189820905 size=1528 status=500 resp_headersError="unsupported value type"
ts=1599873243.7197342 level=error msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:14:03 +0800] \"POST /wp-json/jetpack/v4/connection/register HTTP/1.1\" 500 305" duration=3.079768067 size=305 status=500 resp_headersError="unsupported value type"
ts=1599873245.4508712 level=error msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:14:05 +0800] \"POST /xmlrpc.php?for=jetpack HTTP/1.1\" 500 318" duration=0.230960993 size=318 status=500 resp_headersError="unsupported value type"
ts=1599873246.5839844 level=error msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:14:06 +0800] \"POST /?rest_route=/jetpack/v4/verify_registration/ HTTP/1.1\" 500 1528" duration=0.183977341 size=1528 status=500 resp_headersError="unsupported value type"
ts=1599873247.0307963 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:14:07 +0800] \"GET /wp-admin/admin.php?page=jetpack&action=register&_wpnonce=fd5298c5fe&from=landing-page-bottom HTTP/1.1\" 200 44030" duration=3.270435343 size=44030 status=200 resp_headersError="unsupported value type"
ts=1599873247.0940924 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:14:07 +0800] \"GET /wp-content/plugins/jetpack/_inc/lib/tracks/tracks-ajax.js?ver=8.9 HTTP/1.1\" 200 813" duration=0.000291981 size=813 status=200 resp_headersError="unsupported value type"
ts=1599873247.6249368 level=info msg="handled request" requestError="unsupported value type" common_log="10.1.1.3 - - [12/Sep/2020:09:14:07 +0800] \"GET /wp-json/jetpack/v4/jitm?message_path=wp%3Atoplevel_page_jetpack_%3Aadmin_notices&query=page%253Djetpack%252Caction%253Dregister%252C_wpnonce%253Dfd5298c5fe%252Cfrom%253Dlanding-page-bottom&full_jp_logo_exists=true&_wpnonce=35ce950605 HTTP/1.1\" 200 2" duration=0.185998379 size=2 status=200 resp_headersError="unsupported value type"

Could you use format json instead? logfmt lacks a lot of useful information (and is deprecated, will be removed at a later date).

I’m not seeing anywhere in the Caddy codebase where unsupported value type would come from. That doesn’t seem like something Caddy is emitting.

1 Like

There are a lot of resp_headersError=“unsupported value type”. That maybe a concern.

But since /wp-json/jetpack/* look the same, then we can try rewrite again, but in a more restrictive way:

  @jetpack {
    path_regexp ^/wp-json/jetpack/v4/*$
  }
  rewrite @jetpack /index.php{uri}

No change in the end result. I still have the missing blog token in site health and the 500 error when attempting to set up Jetpack. I’m rolling back the suggestion.

Webserver Caddyfile checkpoint:

:80 {
  root * /usr/local/www/wordpress
  encode gzip

  php_fastcgi 127.0.0.1:9000 {
    env SERVER_PORT 80
  }
  file_server

  # Prevent malicious PHP uploads from running
  respond /uploads/*.php 404

  log {
    format json
    output file /var/log/caddy/access.log {
      roll_keep 7
    }
  }

#  @jetpack {
#    path_regexp ^/wp-json/jetpack/v4/*$
#  }
#  rewrite @jetpack /index.php{uri}
}
root@wordpress:~ # tail /var/log/caddy/access.log
{"level":"error","ts":1599878674.7116199,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"POST","uri":"/?rest_route=/jetpack/v4/verify_registration/","proto":"HTTP/1.1","remote_addr":"10.1.1.3:14387","host":"udance.com.au","headers":{"Accept":["*/*"],"Cdn-Loop":["cloudflare"],"Cf-Connecting-Ip":["192.0.118.84"],"Cf-Request-Id":["0521cc4e1a0000eb4d0ea8c200000001"],"Cf-Ipcountry":["US"],"Cf-Ray":["5d1649902c2aeb4d-LAX"],"Cf-Visitor":["{\"scheme\":\"https\"}"],"Content-Type":["application/x-www-form-urlencoded"],"User-Agent":["WordPress.com; https://jetpack.wordpress.com"],"Content-Length":["49"],"Accept-Encoding":["gzip"],"X-Forwarded-Proto":["https"],"Referer":["https://udance.com.au/?rest_route=/jetpack/v4/verify_registration/"],"X-Forwarded-For":["192.0.118.84, 172.69.34.240"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:10:44:34 +0800] \"POST /?rest_route=/jetpack/v4/verify_registration/ HTTP/1.1\" 500 1169","duration":0.202892263,"size":1169,"status":500,"resp_headers":{"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Link":["<https://udance.com.au/wp-json/>; rel=\"https://api.w.org/\""],"Access-Control-Allow-Headers":["Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"],"Content-Encoding":["gzip"],"Vary":["Accept-Encoding"],"Server":["Caddy"],"X-Content-Type-Options":["nosniff"],"Content-Type":["text/html; charset=UTF-8"],"Status":["500 Internal Server Error"],"Access-Control-Expose-Headers":["X-WP-Total, X-WP-TotalPages, Link"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"X-Powered-By":["PHP/7.4.9"],"X-Robots-Tag":["noindex"]}}
{"level":"error","ts":1599878674.998986,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"POST","uri":"/wp-json/jetpack/v4/connection/register","proto":"HTTP/1.1","remote_addr":"10.1.1.3:47181","host":"udance.com.au","headers":{"Content-Length":["49"],"Content-Type":["application/x-www-form-urlencoded; charset=UTF-8"],"Cookie":["tk_ai=jetpack%3ATdl7aONr56qRSHLnsw7SGTtV; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea"],"Referer":["https://udance.com.au/wp-admin/admin.php?page=jetpack"],"X-Forwarded-For":["10.1.1.102"],"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"Origin":["https://udance.com.au"],"Accept":["*/*"],"Sec-Fetch-Site":["same-origin"],"X-Forwarded-Proto":["https"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Dest":["empty"],"Sec-Fetch-Mode":["cors"],"X-Requested-With":["XMLHttpRequest"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:10:44:34 +0800] \"POST /wp-json/jetpack/v4/connection/register HTTP/1.1\" 500 305","duration":3.067242501,"size":305,"status":500,"resp_headers":{"Link":["<https://udance.com.au/wp-json/>; rel=\"https://api.w.org/\""],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"Access-Control-Allow-Methods":["OPTIONS, GET, POST, PUT, PATCH, DELETE"],"Allow":["POST, PUT, PATCH"],"Access-Control-Allow-Origin":["https://udance.com.au"],"Access-Control-Allow-Headers":["Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"],"Vary":["Origin"],"X-Wp-Nonce":["3533a29484"],"Status":["500 Internal Server Error"],"Content-Type":["application/json; charset=UTF-8"],"Access-Control-Allow-Credentials":["true"],"X-Content-Type-Options":["nosniff"],"Server":["Caddy"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Access-Control-Expose-Headers":["X-WP-Total, X-WP-TotalPages, Link"],"X-Powered-By":["PHP/7.4.9"],"X-Robots-Tag":["noindex"]}}
{"level":"error","ts":1599878676.820805,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"POST","uri":"/xmlrpc.php?for=jetpack","proto":"HTTP/1.1","remote_addr":"10.1.1.3:14387","host":"udance.com.au","headers":{"User-Agent":["Jetpack by WordPress.com"],"Cf-Connecting-Ip":["192.0.113.180"],"Cf-Ray":["5d16499c797efee6-IAH"],"Accept":["*/*"],"Cf-Ipcountry":["US"],"Content-Type":["text/xml"],"Referer":["https://udance.com.au/xmlrpc.php?for=jetpack"],"X-Forwarded-For":["192.0.113.180, 172.69.170.92"],"X-Forwarded-Proto":["https"],"Cdn-Loop":["cloudflare"],"Content-Length":["281"],"Accept-Encoding":["gzip"],"Cf-Request-Id":["0521cc55cc0000fee637202200000001"],"Cf-Visitor":["{\"scheme\":\"https\"}"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:10:44:36 +0800] \"POST /xmlrpc.php?for=jetpack HTTP/1.1\" 500 318","duration":0.266554399,"size":318,"status":500,"resp_headers":{"Status":["500 Internal Server Error"],"X-Powered-By":["PHP/7.4.9"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"Content-Type":["text/xml; charset=UTF-8"],"Server":["Caddy"],"Date":["Sat, 12 Sep 2020 02:44:36 +0000"],"Content-Encoding":["gzip"],"Vary":["Accept-Encoding"]}}
{"level":"error","ts":1599878677.9352078,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"POST","uri":"/?rest_route=/jetpack/v4/verify_registration/","proto":"HTTP/1.1","remote_addr":"10.1.1.3:14387","host":"udance.com.au","headers":{"User-Agent":["WordPress.com; https://jetpack.wordpress.com"],"Cf-Ipcountry":["US"],"Cf-Request-Id":["0521cc5a750000fed2b2399200000001"],"Content-Length":["49"],"Cf-Visitor":["{\"scheme\":\"https\"}"],"Content-Type":["application/x-www-form-urlencoded"],"Referer":["https://udance.com.au/?rest_route=/jetpack/v4/verify_registration/"],"Accept":["*/*"],"Accept-Encoding":["gzip"],"Cf-Connecting-Ip":["192.0.113.180"],"X-Forwarded-Proto":["https"],"Cdn-Loop":["cloudflare"],"Cf-Ray":["5d1649a3edcffed2-IAH"],"X-Forwarded-For":["192.0.113.180, 172.69.170.118"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:10:44:37 +0800] \"POST /?rest_route=/jetpack/v4/verify_registration/ HTTP/1.1\" 500 1169","duration":0.192046598,"size":1169,"status":500,"resp_headers":{"X-Robots-Tag":["noindex"],"X-Content-Type-Options":["nosniff"],"Access-Control-Allow-Headers":["Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"],"Content-Type":["text/html; charset=UTF-8"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Status":["500 Internal Server Error"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"Content-Encoding":["gzip"],"Vary":["Accept-Encoding"],"Server":["Caddy"],"Access-Control-Expose-Headers":["X-WP-Total, X-WP-TotalPages, Link"],"X-Powered-By":["PHP/7.4.9"],"Link":["<https://udance.com.au/wp-json/>; rel=\"https://api.w.org/\""]}}
{"level":"info","ts":1599878678.3981426,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"GET","uri":"/wp-admin/admin.php?page=jetpack&action=register&_wpnonce=0e71ae5e17&from=landing-page-bottom","proto":"HTTP/1.1","remote_addr":"10.1.1.3:47181","host":"udance.com.au","headers":{"Sec-Fetch-Dest":["document"],"X-Forwarded-Proto":["https"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-User":["?1"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"Sec-Fetch-Site":["same-origin"],"Referer":["https://udance.com.au/wp-admin/admin.php?page=jetpack"],"Upgrade-Insecure-Requests":["1"],"X-Forwarded-For":["10.1.1.102"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"Cookie":["tk_ai=jetpack%3ATdl7aONr56qRSHLnsw7SGTtV; wordpress_sec_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7Ccbb0f0215a3ce03d7603b2a24b1e9beaf03b0b0095e4ad538672b79f1dc15753; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:10:44:38 +0800] \"GET /wp-admin/admin.php?page=jetpack&action=register&_wpnonce=0e71ae5e17&from=landing-page-bottom HTTP/1.1\" 200 44007","duration":3.360582474,"size":44007,"status":200,"resp_headers":{"X-Powered-By":["PHP/7.4.9"],"Vary":["Accept-Encoding"],"Set-Cookie":["jetpackState[error]=site_inaccessible_500; path=/wp-admin; domain=udance.com.au","jetpackState[error]=The%20Jetpack%20server%20was%20unable%20to%20communicate%20with%20your%20site%20https%3A%2F%2Fudance.com.au%20%5BHTTP%20500%5D.%20%20Ask%20your%20web%20host%20if%20they%20allow%20connections%20from%20WordPress.com.%20If%20you%20need%20further%20assistance%2C%20contact%20Jetpack%20Support%3A%20http%3A%2F%2Fjetpack.com%2Fsupport%2F; path=/wp-admin; domain=udance.com.au"],"Content-Type":["text/html; charset=UTF-8"],"Cache-Control":["no-cache, must-revalidate, max-age=0, no-store"],"X-Frame-Options":["SAMEORIGIN"],"Referrer-Policy":["strict-origin-when-cross-origin"],"Content-Encoding":["gzip"],"Server":["Caddy"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"]}}
{"level":"info","ts":1599878678.4673886,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"GET","uri":"/wp-content/plugins/jetpack/_inc/lib/tracks/tracks-ajax.js?ver=8.9","proto":"HTTP/1.1","remote_addr":"10.1.1.3:47181","host":"udance.com.au","headers":{"Sec-Fetch-Mode":["no-cors"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"Accept":["*/*"],"If-None-Match":["\"qgisye1f5\""],"Sec-Fetch-Dest":["script"],"X-Forwarded-Proto":["https"],"Sec-Fetch-Site":["same-origin"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"Cookie":["wordpress_sec_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7Ccbb0f0215a3ce03d7603b2a24b1e9beaf03b0b0095e4ad538672b79f1dc15753; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea"],"If-Modified-Since":["Sat, 12 Sep 2020 00:49:26 GMT"],"Referer":["https://udance.com.au/wp-admin/admin.php?page=jetpack&action=register&_wpnonce=0e71ae5e17&from=landing-page-bottom"],"X-Forwarded-For":["10.1.1.102"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:10:44:38 +0800] \"GET /wp-content/plugins/jetpack/_inc/lib/tracks/tracks-ajax.js?ver=8.9 HTTP/1.1\" 304 0","duration":0.000219435,"size":0,"status":304,"resp_headers":{"Server":["Caddy"],"Etag":["\"qgisye1f5\""]}}
{"level":"info","ts":1599878679.0350072,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"GET","uri":"/wp-json/jetpack/v4/jitm?message_path=wp%3Atoplevel_page_jetpack_%3Aadmin_notices&query=page%253Djetpack%252Caction%253Dregister%252C_wpnonce%253D0e71ae5e17%252Cfrom%253Dlanding-page-bottom&full_jp_logo_exists=true&_wpnonce=3533a29484","proto":"HTTP/1.1","remote_addr":"10.1.1.3:47181","host":"udance.com.au","headers":{"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"Accept":["*/*"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"Cookie":["wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea"],"Referer":["https://udance.com.au/wp-admin/admin.php?page=jetpack&action=register&_wpnonce=0e71ae5e17&from=landing-page-bottom"],"Sec-Fetch-Dest":["empty"],"X-Forwarded-For":["10.1.1.102"],"X-Forwarded-Proto":["https"],"X-Requested-With":["XMLHttpRequest"],"Sec-Fetch-Mode":["cors"],"Sec-Fetch-Site":["same-origin"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:10:44:39 +0800] \"GET /wp-json/jetpack/v4/jitm?message_path=wp%3Atoplevel_page_jetpack_%3Aadmin_notices&query=page%253Djetpack%252Caction%253Dregister%252C_wpnonce%253D0e71ae5e17%252Cfrom%253Dlanding-page-bottom&full_jp_logo_exists=true&_wpnonce=3533a29484 HTTP/1.1\" 200 2","duration":0.189418726,"size":2,"status":200,"resp_headers":{"X-Powered-By":["PHP/7.4.9"],"Server":["Caddy"],"Access-Control-Allow-Headers":["Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"Content-Type":["application/json; charset=UTF-8"],"X-Robots-Tag":["noindex"],"Access-Control-Expose-Headers":["X-WP-Total, X-WP-TotalPages, Link"],"Link":["<https://udance.com.au/wp-json/>; rel=\"https://api.w.org/\""],"Allow":["GET, POST"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"X-Wp-Nonce":["3533a29484"],"X-Content-Type-Options":["nosniff"]}}
{"level":"info","ts":1599878740.0512655,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"POST","uri":"/wp-admin/admin-ajax.php","proto":"HTTP/1.1","remote_addr":"10.1.1.3:47181","host":"udance.com.au","headers":{"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"Origin":["https://udance.com.au"],"Content-Type":["application/x-www-form-urlencoded; charset=UTF-8"],"X-Forwarded-For":["10.1.1.102"],"Cookie":["tk_ai=jetpack%3ATdl7aONr56qRSHLnsw7SGTtV; wordpress_sec_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7Ccbb0f0215a3ce03d7603b2a24b1e9beaf03b0b0095e4ad538672b79f1dc15753; jetpackState[error]=The%20Jetpack%20server%20was%20unable%20to%20communicate%20with%20your%20site%20https%3A%2F%2Fudance.com.au%20%5BHTTP%20500%5D.%20%20Ask%20your%20web%20host%20if%20they%20allow%20connections%20from%20WordPress.com.%20If%20you%20need%20further%20assistance%2C%20contact%20Jetpack%20Support%3A%20http%3A%2F%2Fjetpack.com%2Fsupport%2F; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea"],"Sec-Fetch-Mode":["cors"],"Sec-Fetch-Site":["same-origin"],"X-Requested-With":["XMLHttpRequest"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"Accept":["application/json, text/javascript, */*; q=0.01"],"Accept-Encoding":["gzip, deflate, br"],"Content-Length":["94"],"Referer":["https://udance.com.au/wp-admin/admin.php?page=jetpack&action=register&_wpnonce=0e71ae5e17&from=landing-page-bottom"],"Sec-Fetch-Dest":["empty"],"X-Forwarded-Proto":["https"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:10:45:40 +0800] \"POST /wp-admin/admin-ajax.php HTTP/1.1\" 200 47","duration":0.216986247,"size":47,"status":200,"resp_headers":{"Content-Type":["application/json; charset=UTF-8"],"X-Powered-By":["PHP/7.4.9"],"Access-Control-Allow-Credentials":["true"],"X-Robots-Tag":["noindex"],"X-Frame-Options":["SAMEORIGIN"],"Access-Control-Allow-Origin":["https://udance.com.au"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"Server":["Caddy"],"X-Content-Type-Options":["nosniff"],"Referrer-Policy":["strict-origin-when-cross-origin"]}}
{"level":"info","ts":1599878800.080342,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"POST","uri":"/wp-admin/admin-ajax.php","proto":"HTTP/1.1","remote_addr":"10.1.1.3:47181","host":"udance.com.au","headers":{"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"Sec-Fetch-Site":["same-origin"],"X-Requested-With":["XMLHttpRequest"],"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"Origin":["https://udance.com.au"],"Referer":["https://udance.com.au/wp-admin/admin.php?page=jetpack&action=register&_wpnonce=0e71ae5e17&from=landing-page-bottom"],"Content-Length":["94"],"Content-Type":["application/x-www-form-urlencoded; charset=UTF-8"],"Sec-Fetch-Dest":["empty"],"Accept":["application/json, text/javascript, */*; q=0.01"],"Accept-Encoding":["gzip, deflate, br"],"Cookie":["tk_ai=jetpack%3ATdl7aONr56qRSHLnsw7SGTtV; wordpress_sec_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7Ccbb0f0215a3ce03d7603b2a24b1e9beaf03b0b0095e4ad538672b79f1dc15753; jetpackState[error]=The%20Jetpack%20server%20was%20unable%20to%20communicate%20with%20your%20site%20https%3A%2F%2Fudance.com.au%20%5BHTTP%20500%5D.%20%20Ask%20your%20web%20host%20if%20they%20allow%20connections%20from%20WordPress.com.%20If%20you%20need%20further%20assistance%2C%20contact%20Jetpack%20Support%3A%20http%3A%2F%2Fjetpack.com%2Fsupport%2F; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea"],"Sec-Fetch-Mode":["cors"],"X-Forwarded-For":["10.1.1.102"],"X-Forwarded-Proto":["https"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:10:46:40 +0800] \"POST /wp-admin/admin-ajax.php HTTP/1.1\" 200 47","duration":0.252476152,"size":47,"status":200,"resp_headers":{"Referrer-Policy":["strict-origin-when-cross-origin"],"Access-Control-Allow-Origin":["https://udance.com.au"],"X-Robots-Tag":["noindex"],"Content-Type":["application/json; charset=UTF-8"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"X-Powered-By":["PHP/7.4.9"],"Access-Control-Allow-Credentials":["true"],"Server":["Caddy"],"X-Frame-Options":["SAMEORIGIN"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"X-Content-Type-Options":["nosniff"]}}
{"level":"info","ts":1599878920.0553982,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"POST","uri":"/wp-admin/admin-ajax.php","proto":"HTTP/1.1","remote_addr":"10.1.1.3:47181","host":"udance.com.au","headers":{"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"X-Forwarded-Proto":["https"],"Accept":["application/json, text/javascript, */*; q=0.01"],"Accept-Encoding":["gzip, deflate, br"],"Cookie":["tk_ai=jetpack%3ATdl7aONr56qRSHLnsw7SGTtV; wordpress_sec_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7Ccbb0f0215a3ce03d7603b2a24b1e9beaf03b0b0095e4ad538672b79f1dc15753; jetpackState[error]=The%20Jetpack%20server%20was%20unable%20to%20communicate%20with%20your%20site%20https%3A%2F%2Fudance.com.au%20%5BHTTP%20500%5D.%20%20Ask%20your%20web%20host%20if%20they%20allow%20connections%20from%20WordPress.com.%20If%20you%20need%20further%20assistance%2C%20contact%20Jetpack%20Support%3A%20http%3A%2F%2Fjetpack.com%2Fsupport%2F; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea"],"Origin":["https://udance.com.au"],"Referer":["https://udance.com.au/wp-admin/admin.php?page=jetpack&action=register&_wpnonce=0e71ae5e17&from=landing-page-bottom"],"Sec-Fetch-Site":["same-origin"],"Content-Type":["application/x-www-form-urlencoded; charset=UTF-8"],"Sec-Fetch-Mode":["cors"],"X-Requested-With":["XMLHttpRequest"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"Sec-Fetch-Dest":["empty"],"X-Forwarded-For":["10.1.1.102"],"Content-Length":["94"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:10:48:40 +0800] \"POST /wp-admin/admin-ajax.php HTTP/1.1\" 200 47","duration":0.22363528,"size":47,"status":200,"resp_headers":{"Access-Control-Allow-Origin":["https://udance.com.au"],"Access-Control-Allow-Credentials":["true"],"Content-Type":["application/json; charset=UTF-8"],"X-Frame-Options":["SAMEORIGIN"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"X-Content-Type-Options":["nosniff"],"Referrer-Policy":["strict-origin-when-cross-origin"],"X-Robots-Tag":["noindex"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"Server":["Caddy"],"X-Powered-By":["PHP/7.4.9"]}}

I’m going to go offline for a few hours as I’d like to rebuild WordPress behind the Caddy webserver and make sure I can faithfully reproduce the error. I’ll report back later.

Thank you for your time and suggestions @John_Siu @francislavoie

Well, clearly it’s returning HTTP status 500 on lots of those last logs. That indicates something on wordpress is failing.

The issue is reproducible. I’m simplified things for the moment by not enabling WordPress multisite.

Logging into WordPress for the first time and checking site health…

/var/log/access.log

root@wordpress:~ # tail /var/log/access.log
{"level":"info","ts":1599885179.473273,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"GET","uri":"/contact-us.html","proto":"HTTP/1.1","remote_addr":"10.1.1.3:46476","host":"www.udance.com.au","headers":{"Cf-Ray":["5d16e85e5db9158f-EWR"],"X-Forwarded-Proto":["https"],"User-Agent":["Mozilla/5.0 (compatible; SemrushBot/6~bl; +http://www.semrush.com/bot.html)"],"Accept":["text/html, application/rss+xml, application/atom+xml, text/xml, text/rss+xml, application/xhtml+xml"],"Cf-Connecting-Ip":["185.191.171.20"],"Cf-Ipcountry":["NL"],"Accept-Encoding":["gzip"],"Cdn-Loop":["cloudflare"],"Cf-Request-Id":["05222f8efb0000158f5f1e6200000001"],"Cf-Visitor":["{\"scheme\":\"https\"}"],"X-Forwarded-For":["185.191.171.20, 108.162.219.74"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:32:59 +0800] \"GET /contact-us.html HTTP/1.1\" 301 0","duration":0.126296293,"size":0,"status":301,"resp_headers":{"Status":["301 Moved Permanently"],"X-Powered-By":["PHP/7.4.9"],"Content-Type":["text/html; charset=UTF-8"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"X-Redirect-By":["WordPress"],"Location":["https://udance.com.au/contact-us.html"],"Server":["Caddy"]}}
{"level":"info","ts":1599885180.7444298,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"GET","uri":"/robots.txt","proto":"HTTP/1.1","remote_addr":"10.1.1.3:46476","host":"udance.com.au","headers":{"Accept-Encoding":["gzip"],"Cdn-Loop":["cloudflare"],"Cf-Ipcountry":["NL"],"Cf-Ray":["5d16e8663d14c1b6-IAD"],"X-Forwarded-For":["185.191.171.5, 162.158.79.13"],"User-Agent":["Mozilla/5.0 (compatible; SemrushBot/6~bl; +http://www.semrush.com/bot.html)"],"Accept":["*/*"],"X-Forwarded-Proto":["https"],"Cf-Connecting-Ip":["185.191.171.5"],"Cf-Request-Id":["05222f93e60000c1b6dd269200000001"],"Cf-Visitor":["{\"scheme\":\"https\"}"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:33:00 +0800] \"GET /robots.txt HTTP/1.1\" 200 114","duration":0.132234581,"size":114,"status":200,"resp_headers":{"X-Powered-By":["PHP/7.4.9"],"Server":["Caddy"],"Link":["<https://udance.com.au/wp-json/>; rel=\"https://api.w.org/\""],"Content-Type":["text/plain; charset=utf-8"]}}
{"level":"info","ts":1599885180.91423,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"POST","uri":"/wp-admin/admin-ajax.php","proto":"HTTP/1.1","remote_addr":"10.1.1.3:22514","host":"udance.com.au","headers":{"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"Content-Length":["58"],"Cookie":["wordpress_sec_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7Ccbb0f0215a3ce03d7603b2a24b1e9beaf03b0b0095e4ad538672b79f1dc15753; tk_ai=jetpack%3A1LR%2BPc9YXQxucyxkLE9%2FUUbo; wordpress_sec_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C533b3ada626ed7be42302ca603a76ca6f9664403e9a81af2e8a0e6ee49c889d7; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C39f438b2147873f710c0f1a25404e30193e427cc4243669cebbb47dac56e7443; wp-settings-time-1=1599885176"],"Origin":["https://udance.com.au"],"Sec-Fetch-Site":["same-origin"],"Sec-Fetch-Dest":["empty"],"Accept":["*/*"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"Content-Type":["application/x-www-form-urlencoded; charset=UTF-8"],"Referer":["https://udance.com.au/wp-admin/site-health.php"],"Sec-Fetch-Mode":["cors"],"X-Forwarded-For":["10.1.1.102"],"X-Forwarded-Proto":["https"],"X-Requested-With":["XMLHttpRequest"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:33:00 +0800] \"POST /wp-admin/admin-ajax.php HTTP/1.1\" 200 322","duration":1.935934843,"size":322,"status":200,"resp_headers":{"Access-Control-Allow-Origin":["https://udance.com.au"],"X-Content-Type-Options":["nosniff"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"X-Powered-By":["PHP/7.4.9"],"Access-Control-Allow-Credentials":["true"],"X-Robots-Tag":["noindex"],"X-Frame-Options":["SAMEORIGIN"],"Server":["Caddy"],"Referrer-Policy":["strict-origin-when-cross-origin"],"Content-Type":["application/json; charset=UTF-8"]}}
{"level":"info","ts":1599885181.286597,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"GET","uri":"/wp-admin/","proto":"HTTP/1.1","remote_addr":"10.1.1.3:46476","host":"udance.com.au","headers":{"X-Forwarded-Proto":["https"],"User-Agent":["WordPress/5.5.1; https://udance.com.au"],"Cache-Control":["no-cache"],"Referer":["https://udance.com.au/wp-admin/"],"Cookie":["wordpress_sec_7449b2d36696147fbcd2fac1e2be040a=admin|1600051466|sRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc|cbb0f0215a3ce03d7603b2a24b1e9beaf03b0b0095e4ad538672b79f1dc15753; tk_ai=jetpack:1LR+Pc9YXQxucyxkLE9/UUbo; wordpress_sec_01ad53d5bf4f84d52a16c29bd439eb90=basil|1600057963|lkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl|533b3ada626ed7be42302ca603a76ca6f9664403e9a81af2e8a0e6ee49c889d7; wordpress_test_cookie=WP Cookie check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin|1600051466|sRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc|7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea; wordpress_logged_in_01ad53d5bf4f84d52a16c29bd439eb90=basil|1600057963|lkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl|39f438b2147873f710c0f1a25404e30193e427cc4243669cebbb47dac56e7443; wp-settings-time-1=1599885176"],"X-Forwarded-For":["10.1.1.24"],"Accept":["*/*"],"Accept-Encoding":["deflate, gzip"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:33:01 +0800] \"GET /wp-admin/ HTTP/1.1\" 200 17930","duration":0.187310945,"size":17930,"status":200,"resp_headers":{"Referrer-Policy":["strict-origin-when-cross-origin"],"Set-Cookie":["wp-settings-1=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; secure","wp-settings-time-1=1599885181; expires=Sun, 12-Sep-2021 04:33:01 GMT; Max-Age=31536000; path=/; secure"],"X-Powered-By":["PHP/7.4.9"],"Content-Encoding":["gzip"],"Vary":["Accept-Encoding"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"X-Frame-Options":["SAMEORIGIN"],"Content-Type":["text/html; charset=UTF-8"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Server":["Caddy"]}}
{"level":"info","ts":1599885181.2911496,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"POST","uri":"/wp-admin/admin-ajax.php","proto":"HTTP/1.1","remote_addr":"10.1.1.3:22514","host":"udance.com.au","headers":{"Accept-Encoding":["gzip, deflate, br"],"X-Forwarded-Proto":["https"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"Content-Type":["application/x-www-form-urlencoded; charset=UTF-8"],"X-Forwarded-For":["10.1.1.102"],"Sec-Fetch-Dest":["empty"],"Sec-Fetch-Mode":["cors"],"Sec-Fetch-Site":["same-origin"],"Content-Length":["57"],"Accept":["*/*"],"Cookie":["wordpress_sec_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7Ccbb0f0215a3ce03d7603b2a24b1e9beaf03b0b0095e4ad538672b79f1dc15753; tk_ai=jetpack%3A1LR%2BPc9YXQxucyxkLE9%2FUUbo; wordpress_sec_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C533b3ada626ed7be42302ca603a76ca6f9664403e9a81af2e8a0e6ee49c889d7; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C39f438b2147873f710c0f1a25404e30193e427cc4243669cebbb47dac56e7443; wp-settings-time-1=1599885176"],"Origin":["https://udance.com.au"],"Referer":["https://udance.com.au/wp-admin/site-health.php"],"X-Requested-With":["XMLHttpRequest"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:33:01 +0800] \"POST /wp-admin/admin-ajax.php HTTP/1.1\" 200 345","duration":0.366776893,"size":345,"status":200,"resp_headers":{"Access-Control-Allow-Credentials":["true"],"X-Robots-Tag":["noindex"],"X-Content-Type-Options":["nosniff"],"Server":["Caddy"],"Referrer-Policy":["strict-origin-when-cross-origin"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"X-Powered-By":["PHP/7.4.9"],"X-Frame-Options":["SAMEORIGIN"],"Access-Control-Allow-Origin":["https://udance.com.au"],"Content-Type":["application/json; charset=UTF-8"]}}
{"level":"info","ts":1599885181.5910425,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"POST","uri":"/wp-admin/admin-ajax.php","proto":"HTTP/1.1","remote_addr":"10.1.1.3:22514","host":"udance.com.au","headers":{"X-Requested-With":["XMLHttpRequest"],"Referer":["https://udance.com.au/wp-admin/site-health.php"],"X-Forwarded-For":["10.1.1.102"],"Content-Type":["application/x-www-form-urlencoded; charset=UTF-8"],"Cookie":["wordpress_sec_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7Ccbb0f0215a3ce03d7603b2a24b1e9beaf03b0b0095e4ad538672b79f1dc15753; tk_ai=jetpack%3A1LR%2BPc9YXQxucyxkLE9%2FUUbo; wordpress_sec_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C533b3ada626ed7be42302ca603a76ca6f9664403e9a81af2e8a0e6ee49c889d7; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C39f438b2147873f710c0f1a25404e30193e427cc4243669cebbb47dac56e7443; wp-settings-time-1=1599885176"],"Origin":["https://udance.com.au"],"Sec-Fetch-Mode":["cors"],"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"Sec-Fetch-Dest":["empty"],"X-Forwarded-Proto":["https"],"Accept":["*/*"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Site":["same-origin"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"Content-Length":["127"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:33:01 +0800] \"POST /wp-admin/admin-ajax.php HTTP/1.1\" 200 16","duration":0.290398757,"size":16,"status":200,"resp_headers":{"X-Content-Type-Options":["nosniff"],"Referrer-Policy":["strict-origin-when-cross-origin"],"Access-Control-Allow-Origin":["https://udance.com.au"],"X-Frame-Options":["SAMEORIGIN"],"Server":["Caddy"],"Access-Control-Allow-Credentials":["true"],"X-Robots-Tag":["noindex"],"Content-Type":["application/json; charset=UTF-8"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"X-Powered-By":["PHP/7.4.9"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"]}}
{"level":"error","ts":1599885182.0291643,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"GET","uri":"/contact-us.html","proto":"HTTP/1.1","remote_addr":"10.1.1.3:22514","host":"udance.com.au","headers":{"Accept":["text/html, application/rss+xml, application/atom+xml, text/xml, text/rss+xml, application/xhtml+xml"],"Accept-Encoding":["gzip"],"Cdn-Loop":["cloudflare"],"Cf-Connecting-Ip":["185.191.171.2"],"Cf-Ray":["5d16e86e3b220dca-IAD"],"Cf-Visitor":["{\"scheme\":\"https\"}"],"X-Forwarded-Proto":["https"],"User-Agent":["Mozilla/5.0 (compatible; SemrushBot/6~bl; +http://www.semrush.com/bot.html)"],"Cf-Ipcountry":["NL"],"Cf-Request-Id":["05222f98e400000dca02925200000001"],"X-Forwarded-For":["185.191.171.2, 162.158.78.54"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:33:02 +0800] \"GET /contact-us.html HTTP/1.1\" 404 5851","duration":0.144184937,"size":5851,"status":404,"resp_headers":{"Cache-Control":["no-cache, must-revalidate, max-age=0"],"Link":["<https://udance.com.au/wp-json/>; rel=\"https://api.w.org/\""],"Status":["404 Not Found"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Vary":["Accept-Encoding"],"Server":["Caddy"],"X-Powered-By":["PHP/7.4.9"],"Content-Type":["text/html; charset=UTF-8"],"Content-Encoding":["gzip"]}}
{"level":"info","ts":1599885236.955473,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"POST","uri":"/wp-admin/admin-ajax.php","proto":"HTTP/1.1","remote_addr":"10.1.1.3:22514","host":"udance.com.au","headers":{"Content-Length":["84"],"Sec-Fetch-Dest":["empty"],"X-Forwarded-For":["10.1.1.102"],"Accept":["application/json, text/javascript, */*; q=0.01"],"Content-Type":["application/x-www-form-urlencoded; charset=UTF-8"],"Sec-Fetch-Mode":["cors"],"Sec-Fetch-Site":["same-origin"],"X-Forwarded-Proto":["https"],"X-Requested-With":["XMLHttpRequest"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"Cookie":["wordpress_sec_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7Ccbb0f0215a3ce03d7603b2a24b1e9beaf03b0b0095e4ad538672b79f1dc15753; tk_ai=jetpack%3A1LR%2BPc9YXQxucyxkLE9%2FUUbo; wordpress_sec_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C533b3ada626ed7be42302ca603a76ca6f9664403e9a81af2e8a0e6ee49c889d7; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C39f438b2147873f710c0f1a25404e30193e427cc4243669cebbb47dac56e7443; wp-settings-time-1=1599885176"],"Referer":["https://udance.com.au/wp-admin/site-health.php"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"Origin":["https://udance.com.au"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:33:56 +0800] \"POST /wp-admin/admin-ajax.php HTTP/1.1\" 200 47","duration":0.161902838,"size":47,"status":200,"resp_headers":{"Server":["Caddy"],"X-Content-Type-Options":["nosniff"],"Referrer-Policy":["strict-origin-when-cross-origin"],"Content-Type":["application/json; charset=UTF-8"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"X-Robots-Tag":["noindex"],"X-Frame-Options":["SAMEORIGIN"],"X-Powered-By":["PHP/7.4.9"],"Access-Control-Allow-Origin":["https://udance.com.au"],"Access-Control-Allow-Credentials":["true"]}}
{"level":"info","ts":1599885312.8065765,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"POST","uri":"/wp-admin/admin-ajax.php","proto":"HTTP/1.1","remote_addr":"10.1.1.3:22514","host":"udance.com.au","headers":{"Accept":["application/json, text/javascript, */*; q=0.01"],"Accept-Encoding":["gzip, deflate, br"],"Content-Type":["application/x-www-form-urlencoded; charset=UTF-8"],"Sec-Fetch-Dest":["empty"],"Content-Length":["83"],"Sec-Fetch-Mode":["cors"],"Referer":["https://udance.com.au/wp-admin/site-health.php"],"X-Requested-With":["XMLHttpRequest"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"Cookie":["wordpress_sec_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7Ccbb0f0215a3ce03d7603b2a24b1e9beaf03b0b0095e4ad538672b79f1dc15753; tk_ai=jetpack%3A1LR%2BPc9YXQxucyxkLE9%2FUUbo; wordpress_sec_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C533b3ada626ed7be42302ca603a76ca6f9664403e9a81af2e8a0e6ee49c889d7; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C39f438b2147873f710c0f1a25404e30193e427cc4243669cebbb47dac56e7443; wp-settings-time-1=1599885176"],"Origin":["https://udance.com.au"],"Sec-Fetch-Site":["same-origin"],"X-Forwarded-For":["10.1.1.102"],"X-Forwarded-Proto":["https"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:35:12 +0800] \"POST /wp-admin/admin-ajax.php HTTP/1.1\" 200 47","duration":0.152503626,"size":47,"status":200,"resp_headers":{"Content-Type":["application/json; charset=UTF-8"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"Access-Control-Allow-Origin":["https://udance.com.au"],"Access-Control-Allow-Credentials":["true"],"Referrer-Policy":["strict-origin-when-cross-origin"],"X-Powered-By":["PHP/7.4.9"],"X-Content-Type-Options":["nosniff"],"Server":["Caddy"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"X-Frame-Options":["SAMEORIGIN"],"X-Robots-Tag":["noindex"]}}
{"level":"info","ts":1599885372.9751832,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"POST","uri":"/wp-admin/admin-ajax.php","proto":"HTTP/1.1","remote_addr":"10.1.1.3:22514","host":"udance.com.au","headers":{"X-Requested-With":["XMLHttpRequest"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"Cookie":["wordpress_sec_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7Ccbb0f0215a3ce03d7603b2a24b1e9beaf03b0b0095e4ad538672b79f1dc15753; tk_ai=jetpack%3A1LR%2BPc9YXQxucyxkLE9%2FUUbo; wordpress_sec_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C533b3ada626ed7be42302ca603a76ca6f9664403e9a81af2e8a0e6ee49c889d7; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C39f438b2147873f710c0f1a25404e30193e427cc4243669cebbb47dac56e7443; wp-settings-time-1=1599885176"],"X-Forwarded-For":["10.1.1.102"],"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"Sec-Fetch-Dest":["empty"],"Sec-Fetch-Mode":["cors"],"Referer":["https://udance.com.au/wp-admin/site-health.php"],"Sec-Fetch-Site":["same-origin"],"X-Forwarded-Proto":["https"],"Content-Length":["84"],"Accept":["application/json, text/javascript, */*; q=0.01"],"Origin":["https://udance.com.au"],"Accept-Encoding":["gzip, deflate, br"],"Content-Type":["application/x-www-form-urlencoded; charset=UTF-8"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:36:12 +0800] \"POST /wp-admin/admin-ajax.php HTTP/1.1\" 200 47","duration":0.185440464,"size":47,"status":200,"resp_headers":{"Content-Type":["application/json; charset=UTF-8"],"X-Robots-Tag":["noindex"],"Referrer-Policy":["strict-origin-when-cross-origin"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"Server":["Caddy"],"Access-Control-Allow-Credentials":["true"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["SAMEORIGIN"],"Access-Control-Allow-Origin":["https://udance.com.au"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"X-Powered-By":["PHP/7.4.9"]}}

There is one error in the log. I’m not sure how relevant it is.

Now, I install and activate Jetpack and repeat the previous steps:

Site health:

/var/log/access.log after an attempt to set up Jetpack.

root@wordpress:~ # tail /var/log/access.log
{"level":"info","ts":1599886152.0784762,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"GET","uri":"/wp-json/jetpack/v4/jitm?message_path=wp%3Atoplevel_page_jetpack_%3Aadmin_notices&query=page%253Djetpack&full_jp_logo_exists=true&_wpnonce=0e54b632a2","proto":"HTTP/1.1","remote_addr":"10.1.1.3:37061","host":"udance.com.au","headers":{"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"Referer":["https://udance.com.au/wp-admin/admin.php?page=jetpack"],"Sec-Fetch-Dest":["empty"],"X-Forwarded-Proto":["https"],"X-Requested-With":["XMLHttpRequest"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"Accept":["*/*"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Site":["same-origin"],"X-Forwarded-For":["10.1.1.102"],"Cookie":["wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C39f438b2147873f710c0f1a25404e30193e427cc4243669cebbb47dac56e7443; wp-settings-time-1=1599886151"],"Sec-Fetch-Mode":["cors"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:49:12 +0800] \"GET /wp-json/jetpack/v4/jitm?message_path=wp%3Atoplevel_page_jetpack_%3Aadmin_notices&query=page%253Djetpack&full_jp_logo_exists=true&_wpnonce=0e54b632a2 HTTP/1.1\" 200 2","duration":0.190701079,"size":2,"status":200,"resp_headers":{"X-Content-Type-Options":["nosniff"],"Access-Control-Allow-Headers":["Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"],"X-Robots-Tag":["noindex"],"X-Wp-Nonce":["0e54b632a2"],"Server":["Caddy"],"X-Powered-By":["PHP/7.4.9"],"Content-Type":["application/json; charset=UTF-8"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Allow":["GET, POST"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"Link":["<https://udance.com.au/wp-json/>; rel=\"https://api.w.org/\""],"Access-Control-Expose-Headers":["X-WP-Total, X-WP-TotalPages, Link"]}}
{"level":"info","ts":1599886152.255215,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"GET","uri":"/wp-json/jetpack/v4/jitm?message_path=wp%3Atoplevel_page_jetpack_%3Aadmin_notices&query=page%253Djetpack&full_jp_logo_exists=true&_wpnonce=0e54b632a2","proto":"HTTP/1.1","remote_addr":"10.1.1.3:37061","host":"udance.com.au","headers":{"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"Cookie":["wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C39f438b2147873f710c0f1a25404e30193e427cc4243669cebbb47dac56e7443; wp-settings-time-1=1599886151"],"X-Forwarded-Proto":["https"],"Sec-Fetch-Site":["same-origin"],"Accept":["*/*"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"Referer":["https://udance.com.au/wp-admin/admin.php?page=jetpack"],"Sec-Fetch-Dest":["empty"],"Sec-Fetch-Mode":["cors"],"X-Forwarded-For":["10.1.1.102"],"X-Requested-With":["XMLHttpRequest"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:49:12 +0800] \"GET /wp-json/jetpack/v4/jitm?message_path=wp%3Atoplevel_page_jetpack_%3Aadmin_notices&query=page%253Djetpack&full_jp_logo_exists=true&_wpnonce=0e54b632a2 HTTP/1.1\" 200 2","duration":0.173539784,"size":2,"status":200,"resp_headers":{"Allow":["GET, POST"],"Content-Type":["application/json; charset=UTF-8"],"Link":["<https://udance.com.au/wp-json/>; rel=\"https://api.w.org/\""],"Access-Control-Allow-Headers":["Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"X-Robots-Tag":["noindex"],"Access-Control-Expose-Headers":["X-WP-Total, X-WP-TotalPages, Link"],"X-Powered-By":["PHP/7.4.9"],"X-Content-Type-Options":["nosniff"],"Server":["Caddy"],"X-Wp-Nonce":["0e54b632a2"]}}
{"level":"error","ts":1599886155.1548345,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"POST","uri":"/xmlrpc.php?for=jetpack","proto":"HTTP/1.1","remote_addr":"10.1.1.3:48548","host":"udance.com.au","headers":{"Accept":["*/*"],"Cdn-Loop":["cloudflare"],"Cf-Visitor":["{\"scheme\":\"https\"}"],"Content-Length":["281"],"X-Forwarded-For":["192.0.113.148, 172.69.34.220"],"Content-Type":["text/xml"],"Referer":["https://udance.com.au/xmlrpc.php?for=jetpack"],"Accept-Encoding":["gzip"],"Cf-Ipcountry":["US"],"Cf-Ray":["5d170030b88b0558-LAX"],"Cf-Request-Id":["05223e726e0000055890398200000001"],"X-Forwarded-Proto":["https"],"User-Agent":["Jetpack by WordPress.com"],"Cf-Connecting-Ip":["192.0.113.148"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:49:15 +0800] \"POST /xmlrpc.php?for=jetpack HTTP/1.1\" 500 318","duration":0.239150308,"size":318,"status":500,"resp_headers":{"X-Powered-By":["PHP/7.4.9"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"Content-Type":["text/xml; charset=UTF-8"],"Content-Encoding":["gzip"],"Server":["Caddy"],"Status":["500 Internal Server Error"],"Date":["Sat, 12 Sep 2020 04:49:15 +0000"],"Vary":["Accept-Encoding"]}}
{"level":"error","ts":1599886156.0165677,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"POST","uri":"/?rest_route=/jetpack/v4/verify_registration/","proto":"HTTP/1.1","remote_addr":"10.1.1.3:48548","host":"udance.com.au","headers":{"Cf-Ray":["5d1700367e1e0595-LAX"],"Referer":["https://udance.com.au/?rest_route=/jetpack/v4/verify_registration/"],"X-Forwarded-For":["192.0.113.148, 172.69.34.47"],"X-Forwarded-Proto":["https"],"Cdn-Loop":["cloudflare"],"Cf-Connecting-Ip":["192.0.113.148"],"Cf-Ipcountry":["US"],"User-Agent":["WordPress.com; https://jetpack.wordpress.com"],"Content-Type":["application/x-www-form-urlencoded"],"Content-Length":["49"],"Cf-Request-Id":["05223e760e00000595ccb0b200000001"],"Accept":["*/*"],"Accept-Encoding":["gzip"],"Cf-Visitor":["{\"scheme\":\"https\"}"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:49:16 +0800] \"POST /?rest_route=/jetpack/v4/verify_registration/ HTTP/1.1\" 500 1169","duration":0.166218044,"size":1169,"status":500,"resp_headers":{"Access-Control-Expose-Headers":["X-WP-Total, X-WP-TotalPages, Link"],"Access-Control-Allow-Headers":["Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Content-Encoding":["gzip"],"Server":["Caddy"],"X-Robots-Tag":["noindex"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"Status":["500 Internal Server Error"],"Link":["<https://udance.com.au/wp-json/>; rel=\"https://api.w.org/\""],"Content-Type":["text/html; charset=UTF-8"],"Vary":["Accept-Encoding"],"X-Powered-By":["PHP/7.4.9"],"X-Content-Type-Options":["nosniff"]}}
{"level":"error","ts":1599886156.3213336,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"POST","uri":"/wp-json/jetpack/v4/connection/register","proto":"HTTP/1.1","remote_addr":"10.1.1.3:37061","host":"udance.com.au","headers":{"Origin":["https://udance.com.au"],"Sec-Fetch-Dest":["empty"],"Sec-Fetch-Site":["same-origin"],"X-Forwarded-For":["10.1.1.102"],"X-Forwarded-Proto":["https"],"Accept":["*/*"],"Cookie":["tk_ai=jetpack%3ATdl7aONr56qRSHLnsw7SGTtV; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C39f438b2147873f710c0f1a25404e30193e427cc4243669cebbb47dac56e7443; wp-settings-time-1=1599886151"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"Content-Length":["49"],"Referer":["https://udance.com.au/wp-admin/admin.php?page=jetpack"],"Sec-Fetch-Mode":["cors"],"X-Requested-With":["XMLHttpRequest"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"Content-Type":["application/x-www-form-urlencoded; charset=UTF-8"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:49:16 +0800] \"POST /wp-json/jetpack/v4/connection/register HTTP/1.1\" 500 305","duration":2.586515506,"size":305,"status":500,"resp_headers":{"Server":["Caddy"],"Link":["<https://udance.com.au/wp-json/>; rel=\"https://api.w.org/\""],"Access-Control-Allow-Credentials":["true"],"Content-Type":["application/json; charset=UTF-8"],"Access-Control-Allow-Origin":["https://udance.com.au"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"X-Wp-Nonce":["0e54b632a2"],"Access-Control-Allow-Methods":["OPTIONS, GET, POST, PUT, PATCH, DELETE"],"Access-Control-Allow-Headers":["Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"],"Vary":["Origin"],"Access-Control-Expose-Headers":["X-WP-Total, X-WP-TotalPages, Link"],"Status":["500 Internal Server Error"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"X-Robots-Tag":["noindex"],"X-Powered-By":["PHP/7.4.9"],"X-Content-Type-Options":["nosniff"],"Allow":["POST, PUT, PATCH"]}}
{"level":"error","ts":1599886158.0326598,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"POST","uri":"/xmlrpc.php?for=jetpack","proto":"HTTP/1.1","remote_addr":"10.1.1.3:48548","host":"udance.com.au","headers":{"Cf-Request-Id":["05223e7d4b0000feda5123e200000001"],"User-Agent":["Jetpack by WordPress.com"],"Cf-Ray":["5d1700421a8cfeda-IAH"],"Referer":["https://udance.com.au/xmlrpc.php?for=jetpack"],"X-Forwarded-For":["192.0.116.85, 172.69.170.92"],"X-Forwarded-Proto":["https"],"Cdn-Loop":["cloudflare"],"Cf-Connecting-Ip":["192.0.116.85"],"Content-Type":["text/xml"],"Accept-Encoding":["gzip"],"Cf-Ipcountry":["US"],"Cf-Visitor":["{\"scheme\":\"https\"}"],"Content-Length":["281"],"Accept":["*/*"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:49:18 +0800] \"POST /xmlrpc.php?for=jetpack HTTP/1.1\" 500 318","duration":0.263801089,"size":318,"status":500,"resp_headers":{"Content-Type":["text/xml; charset=UTF-8"],"Date":["Sat, 12 Sep 2020 04:49:18 +0000"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"Vary":["Accept-Encoding"],"Server":["Caddy"],"Status":["500 Internal Server Error"],"X-Powered-By":["PHP/7.4.9"],"Content-Encoding":["gzip"]}}
{"level":"error","ts":1599886159.155613,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"POST","uri":"/?rest_route=/jetpack/v4/verify_registration/","proto":"HTTP/1.1","remote_addr":"10.1.1.3:48548","host":"udance.com.au","headers":{"Referer":["https://udance.com.au/?rest_route=/jetpack/v4/verify_registration/"],"Content-Length":["49"],"Accept":["*/*"],"Accept-Encoding":["gzip"],"Cf-Request-Id":["05223e81eb0000fec2a694f200000001"],"Cf-Visitor":["{\"scheme\":\"https\"}"],"Cdn-Loop":["cloudflare"],"Cf-Ray":["5d1700497a4dfec2-IAH"],"Content-Type":["application/x-www-form-urlencoded"],"X-Forwarded-Proto":["https"],"Cf-Connecting-Ip":["192.0.116.85"],"User-Agent":["WordPress.com; https://jetpack.wordpress.com"],"Cf-Ipcountry":["US"],"X-Forwarded-For":["192.0.116.85, 172.69.170.92"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:49:19 +0800] \"POST /?rest_route=/jetpack/v4/verify_registration/ HTTP/1.1\" 500 1169","duration":0.207526732,"size":1169,"status":500,"resp_headers":{"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Status":["500 Internal Server Error"],"X-Powered-By":["PHP/7.4.9"],"Link":["<https://udance.com.au/wp-json/>; rel=\"https://api.w.org/\""],"Access-Control-Expose-Headers":["X-WP-Total, X-WP-TotalPages, Link"],"Access-Control-Allow-Headers":["Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"],"X-Robots-Tag":["noindex"],"Server":["Caddy"],"Vary":["Accept-Encoding"],"Content-Type":["text/html; charset=UTF-8"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"Content-Encoding":["gzip"],"X-Content-Type-Options":["nosniff"]}}
{"level":"info","ts":1599886159.6321428,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"GET","uri":"/wp-admin/admin.php?page=jetpack&action=register&_wpnonce=a0751d2494&from=landing-page-bottom","proto":"HTTP/1.1","remote_addr":"10.1.1.3:37061","host":"udance.com.au","headers":{"Accept-Encoding":["gzip, deflate, br"],"Cookie":["wordpress_sec_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7Ccbb0f0215a3ce03d7603b2a24b1e9beaf03b0b0095e4ad538672b79f1dc15753; tk_ai=jetpack%3A1LR%2BPc9YXQxucyxkLE9%2FUUbo; wordpress_sec_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C533b3ada626ed7be42302ca603a76ca6f9664403e9a81af2e8a0e6ee49c889d7; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C39f438b2147873f710c0f1a25404e30193e427cc4243669cebbb47dac56e7443; wp-settings-time-1=1599886151"],"Sec-Fetch-User":["?1"],"X-Forwarded-Proto":["https"],"Referer":["https://udance.com.au/wp-admin/admin.php?page=jetpack"],"Sec-Fetch-Site":["same-origin"],"Upgrade-Insecure-Requests":["1"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"],"Sec-Fetch-Mode":["navigate"],"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"Sec-Fetch-Dest":["document"],"X-Forwarded-For":["10.1.1.102"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:49:19 +0800] \"GET /wp-admin/admin.php?page=jetpack&action=register&_wpnonce=a0751d2494&from=landing-page-bottom HTTP/1.1\" 200 44231","duration":3.280969274,"size":44231,"status":200,"resp_headers":{"Server":["Caddy"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"X-Powered-By":["PHP/7.4.9"],"Set-Cookie":["jetpackState[error]=site_inaccessible_500; path=/wp-admin; domain=udance.com.au","jetpackState[error]=The%20Jetpack%20server%20was%20unable%20to%20communicate%20with%20your%20site%20https%3A%2F%2Fudance.com.au%20%5BHTTP%20500%5D.%20%20Ask%20your%20web%20host%20if%20they%20allow%20connections%20from%20WordPress.com.%20If%20you%20need%20further%20assistance%2C%20contact%20Jetpack%20Support%3A%20http%3A%2F%2Fjetpack.com%2Fsupport%2F; path=/wp-admin; domain=udance.com.au","wp-settings-1=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; secure","wp-settings-time-1=1599886159; expires=Sun, 12-Sep-2021 04:49:19 GMT; Max-Age=31536000; path=/; secure"],"X-Frame-Options":["SAMEORIGIN"],"Cache-Control":["no-cache, must-revalidate, max-age=0, no-store"],"Referrer-Policy":["strict-origin-when-cross-origin"],"Content-Type":["text/html; charset=UTF-8"],"Content-Encoding":["gzip"],"Vary":["Accept-Encoding"]}}
{"level":"info","ts":1599886159.7326164,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"GET","uri":"/wp-content/plugins/jetpack/_inc/lib/tracks/tracks-ajax.js?ver=8.9","proto":"HTTP/1.1","remote_addr":"10.1.1.3:37061","host":"udance.com.au","headers":{"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"Cookie":["wordpress_sec_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7Ccbb0f0215a3ce03d7603b2a24b1e9beaf03b0b0095e4ad538672b79f1dc15753; wordpress_sec_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C533b3ada626ed7be42302ca603a76ca6f9664403e9a81af2e8a0e6ee49c889d7; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C39f438b2147873f710c0f1a25404e30193e427cc4243669cebbb47dac56e7443; wp-settings-time-1=1599886159"],"If-Modified-Since":["Sat, 12 Sep 2020 04:21:58 GMT"],"Sec-Fetch-Dest":["script"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"X-Forwarded-Proto":["https"],"Accept":["*/*"],"X-Forwarded-For":["10.1.1.102"],"Sec-Fetch-Mode":["no-cors"],"If-None-Match":["\"qgj2sm1f5\""],"Referer":["https://udance.com.au/wp-admin/admin.php?page=jetpack&action=register&_wpnonce=a0751d2494&from=landing-page-bottom"],"Sec-Fetch-Site":["same-origin"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:49:19 +0800] \"GET /wp-content/plugins/jetpack/_inc/lib/tracks/tracks-ajax.js?ver=8.9 HTTP/1.1\" 200 813","duration":0.000284758,"size":813,"status":200,"resp_headers":{"Content-Encoding":["gzip"],"Vary":["Accept-Encoding"],"Server":["Caddy"],"Etag":["\"qgj3tj1f5\""],"Content-Type":["text/javascript; charset=utf-8"],"Last-Modified":["Sat, 12 Sep 2020 04:44:07 GMT"]}}
{"level":"info","ts":1599886160.219402,"logger":"http.log.access.log0","msg":"handled request","request":{"method":"GET","uri":"/wp-json/jetpack/v4/jitm?message_path=wp%3Atoplevel_page_jetpack_%3Aadmin_notices&query=page%253Djetpack%252Caction%253Dregister%252C_wpnonce%253Da0751d2494%252Cfrom%253Dlanding-page-bottom&full_jp_logo_exists=true&_wpnonce=0e54b632a2","proto":"HTTP/1.1","remote_addr":"10.1.1.3:37061","host":"udance.com.au","headers":{"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7"],"Referer":["https://udance.com.au/wp-admin/admin.php?page=jetpack&action=register&_wpnonce=a0751d2494&from=landing-page-bottom"],"Sec-Fetch-Dest":["empty"],"Sec-Fetch-Mode":["cors"],"Sec-Fetch-Site":["same-origin"],"X-Forwarded-For":["10.1.1.102"],"X-Requested-With":["XMLHttpRequest"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"],"Accept":["*/*"],"Cookie":["wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7449b2d36696147fbcd2fac1e2be040a=admin%7C1600051466%7CsRrDTvTXbcGt7J2ymLcCcLZHPcJlaXzaaJCjiTvCFVc%7C7f80a8eb357bce450af2486e2af0091e1be90dbd8a68824daff3f698e63fffea; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_01ad53d5bf4f84d52a16c29bd439eb90=basil%7C1600057963%7Clkhc2FzD55n9td9OIQzj3ah1IrSUWxz9Gp0abGZD4cl%7C39f438b2147873f710c0f1a25404e30193e427cc4243669cebbb47dac56e7443; wp-settings-time-1=1599886159"],"X-Forwarded-Proto":["https"]}},"common_log":"10.1.1.3 - - [12/Sep/2020:12:49:20 +0800] \"GET /wp-json/jetpack/v4/jitm?message_path=wp%3Atoplevel_page_jetpack_%3Aadmin_notices&query=page%253Djetpack%252Caction%253Dregister%252C_wpnonce%253Da0751d2494%252Cfrom%253Dlanding-page-bottom&full_jp_logo_exists=true&_wpnonce=0e54b632a2 HTTP/1.1\" 200 2","duration":0.186206442,"size":2,"status":200,"resp_headers":{"Server":["Caddy"],"X-Robots-Tag":["noindex"],"X-Content-Type-Options":["nosniff"],"X-Wp-Nonce":["0e54b632a2"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"Link":["<https://udance.com.au/wp-json/>; rel=\"https://api.w.org/\""],"Access-Control-Expose-Headers":["X-WP-Total, X-WP-TotalPages, Link"],"Access-Control-Allow-Headers":["Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"],"Content-Type":["application/json; charset=UTF-8"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Allow":["GET, POST"],"X-Powered-By":["PHP/7.4.9"]}}

The issue is logged in the Jetpack forum in this thread Blog token is missing