1. The problem I’m having:
I noticed the following error messages in my Caddy log about “upgrading ARI” after upgrading to 2.8.1. Everything else seems to work fine and I didn’t observe any issues with Caddy as an HTTPS server.
Looks like these logs are related to the new ARI feature, but I didn’t find anything useful in the documentation and only found the relevant function in the source code.
Since some of the logs are shown as errors, what is the proper way to fix them (or should I be worrying at all)?
2. Error messages and/or full log output:
May 31 11:45:27 caddy[1309]: {"level":"warn","ts":1717181127.78544,"logger":"tls.cache.maintenance","msg":"ARI window or selected renewal time changed","identifiers":["git.kernel-panic.me"],"cert_hash":"59e5ce1dc959edc38d25c8a97ae4a129646f8efa837a569cad6be17cf00bacf0","ari_unique_id":"FC6zF7dYVsuuUAlA5h-vnYsUwsY.A2HvYw5MEQ96d2pkw77FphVq","cert_expiry":1724903620,"prev_start":1722226420.3333333,"next_start":-6795364578.8713455,"prev_end":1722399220.3333333,"next_end":-6795364578.8713455,"prev_selected_time":1722377934,"next_selected_time":-6795364578.8713455,"explanation_url":""}
May 31 11:45:27 caddy[1309]: {"level":"error","ts":1717181127.7854843,"logger":"tls.cache.maintenance","msg":"updating ARI","error":"could not fully update ACME renewal info: either no ACME issuer configured for certificate, or all failed (make sure the ACME CA that issued the certificate is configured)"}
May 31 11:45:27 caddy[1309]: {"level":"warn","ts":1717181127.7855923,"logger":"tls.cache.maintenance","msg":"ARI window or selected renewal time changed","identifiers":["outline.kernel-panic.me"],"cert_hash":"631e401b49cf250a9131c228ac4e4eccf22a62201b4323e8b6e3c0e8e5be7fdb","ari_unique_id":"FC6zF7dYVsuuUAlA5h-vnYsUwsY.A0OirYl6PAYO7cgWdu9zy_Qp","cert_expiry":1724869741,"prev_start":1722192541,"next_start":-6795364578.8713455,"prev_end":1722365341,"next_end":-6795364578.8713455,"prev_selected_time":1722245150,"next_selected_time":-6795364578.8713455,"explanation_url":""}
May 31 11:45:27 caddy[1309]: {"level":"error","ts":1717181127.7856023,"logger":"tls.cache.maintenance","msg":"updating ARI","error":"could not fully update ACME renewal info: either no ACME issuer configured for certificate, or all failed (make sure the ACME CA that issued the certificate is configured)"}
May 31 11:45:27 caddy[1309]: {"level":"warn","ts":1717181127.7857049,"logger":"tls.cache.maintenance","msg":"ARI window or selected renewal time changed","identifiers":["vault.kernel-panic.me"],"cert_hash":"0d29de0a1be6fa4dbd9d1855d62ceb38c28890dd1dfab99597f245f94ec23e98","ari_unique_id":"FC6zF7dYVsuuUAlA5h-vnYsUwsY.A9rQkXv-4OXxF-oY7HIaWLPr","cert_expiry":1724912990,"prev_start":1722235790.3333333,"next_start":-6795364578.8713455,"prev_end":1722408590.3333333,"next_end":-6795364578.8713455,"prev_selected_time":1722263411,"next_selected_time":-6795364578.8713455,"explanation_url":""}
May 31 11:45:27 caddy[1309]: {"level":"error","ts":1717181127.7857132,"logger":"tls.cache.maintenance","msg":"updating ARI","error":"could not fully update ACME renewal info: either no ACME issuer configured for certificate, or all failed (make sure the ACME CA that issued the certificate is configured)"}
May 31 11:45:27 caddy[1309]: {"level":"warn","ts":1717181127.7857788,"logger":"tls.cache.maintenance","msg":"ARI window or selected renewal time changed","identifiers":["auth.kernel-panic.me"],"cert_hash":"6d7c6a6771c6954191fb20085dff3632c5a3abdeddf3528e521c948f63ede030","ari_unique_id":"FC6zF7dYVsuuUAlA5h-vnYsUwsY.A-svpqVdQexfStjS7-RbDLn7","cert_expiry":1724866176,"prev_start":1722188976,"next_start":-6795364578.8713455,"prev_end":1722361776,"next_end":-6795364578.8713455,"prev_selected_time":1722214894,"next_selected_time":-6795364578.8713455,"explanation_url":""}
May 31 11:45:27 caddy[1309]: {"level":"error","ts":1717181127.7857864,"logger":"tls.cache.maintenance","msg":"updating ARI","error":"could not fully update ACME renewal info: either no ACME issuer configured for certificate, or all failed (make sure the ACME CA that issued the certificate is configured)"}
May 31 11:55:27 caddy[1309]: {"level":"warn","ts":1717181727.785036,"logger":"tls.cache.maintenance","msg":"ARI window or selected renewal time changed","identifiers":["git.kernel-panic.me"],"cert_hash":"59e5ce1dc959edc38d25c8a97ae4a129646f8efa837a569cad6be17cf00bacf0","ari_unique_id":"FC6zF7dYVsuuUAlA5h-vnYsUwsY.A2HvYw5MEQ96d2pkw77FphVq","cert_expiry":1724903620,"prev_start":1722226420.3333333,"next_start":-6795364578.8713455,"prev_end":1722399220.3333333,"next_end":-6795364578.8713455,"prev_selected_time":1722377934,"next_selected_time":-6795364578.8713455,"explanation_url":""}
May 31 11:55:27 caddy[1309]: {"level":"error","ts":1717181727.7850888,"logger":"tls.cache.maintenance","msg":"updating ARI","error":"could not fully update ACME renewal info: either no ACME issuer configured for certificate, or all failed (make sure the ACME CA that issued the certificate is configured)"}
May 31 11:55:27 caddy[1309]: {"level":"warn","ts":1717181727.785189,"logger":"tls.cache.maintenance","msg":"ARI window or selected renewal time changed","identifiers":["outline.kernel-panic.me"],"cert_hash":"631e401b49cf250a9131c228ac4e4eccf22a62201b4323e8b6e3c0e8e5be7fdb","ari_unique_id":"FC6zF7dYVsuuUAlA5h-vnYsUwsY.A0OirYl6PAYO7cgWdu9zy_Qp","cert_expiry":1724869741,"prev_start":1722192541,"next_start":-6795364578.8713455,"prev_end":1722365341,"next_end":-6795364578.8713455,"prev_selected_time":1722245150,"next_selected_time":-6795364578.8713455,"explanation_url":""}
May 31 11:55:27 caddy[1309]: {"level":"error","ts":1717181727.7851977,"logger":"tls.cache.maintenance","msg":"updating ARI","error":"could not fully update ACME renewal info: either no ACME issuer configured for certificate, or all failed (make sure the ACME CA that issued the certificate is configured)"}
May 31 11:55:27 caddy[1309]: {"level":"warn","ts":1717181727.7853189,"logger":"tls.cache.maintenance","msg":"ARI window or selected renewal time changed","identifiers":["vault.kernel-panic.me"],"cert_hash":"0d29de0a1be6fa4dbd9d1855d62ceb38c28890dd1dfab99597f245f94ec23e98","ari_unique_id":"FC6zF7dYVsuuUAlA5h-vnYsUwsY.A9rQkXv-4OXxF-oY7HIaWLPr","cert_expiry":1724912990,"prev_start":1722235790.3333333,"next_start":-6795364578.8713455,"prev_end":1722408590.3333333,"next_end":-6795364578.8713455,"prev_selected_time":1722263411,"next_selected_time":-6795364578.8713455,"explanation_url":""}
May 31 11:55:27 caddy[1309]: {"level":"error","ts":1717181727.785327,"logger":"tls.cache.maintenance","msg":"updating ARI","error":"could not fully update ACME renewal info: either no ACME issuer configured for certificate, or all failed (make sure the ACME CA that issued the certificate is configured)"}
May 31 11:55:27 caddy[1309]: {"level":"warn","ts":1717181727.7853918,"logger":"tls.cache.maintenance","msg":"ARI window or selected renewal time changed","identifiers":["auth.kernel-panic.me"],"cert_hash":"6d7c6a6771c6954191fb20085dff3632c5a3abdeddf3528e521c948f63ede030","ari_unique_id":"FC6zF7dYVsuuUAlA5h-vnYsUwsY.A-svpqVdQexfStjS7-RbDLn7","cert_expiry":1724866176,"prev_start":1722188976,"next_start":-6795364578.8713455,"prev_end":1722361776,"next_end":-6795364578.8713455,"prev_selected_time":1722214894,"next_selected_time":-6795364578.8713455,"explanation_url":""}
May 31 11:55:27 caddy[1309]: {"level":"error","ts":1717181727.7853982,"logger":"tls.cache.maintenance","msg":"updating ARI","error":"could not fully update ACME renewal info: either no ACME issuer configured for certificate, or all failed (make sure the ACME CA that issued the certificate is configured)"}
3. Caddy version:
Caddy v2.8.1 built with cloudflare module.
v2.8.1 h1:UVWB6J5f/GwHPyvdTrm0uM7YhfaWb4Ztdrp/z6ROHsM=
4. How I installed and ran Caddy:
a. System environment:
OS: NixOS 23.11
Architecture: x86
b. Command:
Systemd service is used to run Caddy. The command to run Caddy is:
/nix/store/x134girixx3xhbzm0h3dyvygr4bvdnbr-caddy-v2.8.1/bin/caddy run --config /etc/caddy/caddy_config --adapter caddyfile
c. Service/unit/compose file:
The full systemd service file (output of systemctl cat caddy.service
):
# /etc/systemd/system/caddy.service
[Unit]
After=network.target network-online.target
StartLimitBurst=10
StartLimitIntervalSec=14400
Wants=network-online.target
X-Reload-Triggers=/nix/store/fkhc59lkhj0xhnwsvaln4xb4wn113zbd-X-Reload-Triggers-caddy
[Service]
Environment="LOCALE_ARCHIVE=/nix/store/zfx4c3pdn37l0li3h8rzgydvsd7jvgyh-glibc-locales-2.38-77/lib/locale/locale-archive"
Environment="PATH=/nix/store/pxf98n8dsxb6kmm0pdvc3dr3gzcqhizi-coreutils-9.3/bin:/nix/store/gx1pjlqmml6ifb5dpn24bnygy5xwa3za-findutils-4.9.0/bin:/nix/store/73nl94djwcgyn9vmv1qi7d8kh1cbbw04-gnugrep-3.11/bin:/nix/store/3kh010crcx64zzi5yb6dim2pq2y716nl-gnused-4.9/bin:/nix/store/cf4c2g42hg2zjyw6kmvgg1qanjbiqx4m-systemd-254.10/bin:/nix/store/pxf98n8dsxb6kmm0pdvc3dr3gzcqhizi-coreutils-9.3/sbin:/nix/store/gx1pjlqmml6ifb5dpn24bnygy5xwa3za-findutils-4.9.0/sbin:/nix/store/73nl94djwcgyn9vmv1qi7d8kh1cbbw04-gnugrep-3.11/sbin:/nix/store/3kh010crcx64zzi5yb6dim2pq2y716nl-gnused-4.9/sbin:/nix/store/cf4c2g42hg2zjyw6kmvgg1qanjbiqx4m-systemd-254.10/sbin"
Environment="TZDIR=/nix/store/b35w67i0p2jxw52bqpd0dvm2kbig7xw2-tzdata-2024a/share/zoneinfo"
AmbientCapabilities=cap_net_bind_service
CapabilityBoundingSet=cap_net_bind_service
EnvironmentFile=/run/secrets/caddy/cloudflare
ExecReload=
ExecReload=/nix/store/x134girixx3xhbzm0h3dyvygr4bvdnbr-caddy-v2.8.1/bin/caddy reload --config /etc/caddy/caddy_config --adapter caddyfile --force
ExecStart=
ExecStart=/nix/store/x134girixx3xhbzm0h3dyvygr4bvdnbr-caddy-v2.8.1/bin/caddy run --config /etc/caddy/caddy_config --adapter caddyfile
Group=caddy
LogsDirectory=caddy
NoNewPrivileges=true
PrivateDevices=true
ProtectHome=true
ReadWriteDirectories=/var/lib/caddy
Restart=on-failure
RestartPreventExitStatus=1
RestartSec=5s
StateDirectory=caddy
User=caddy
d. My complete Caddy config:
(only replaced my email address with a fake one)
{
grace_period 10s
acme_dns cloudflare {env.CLOUDFLARE_API_TOKEN}
email user@example.com
log {
level INFO
}
}
(header_security) {
header {
Permissions-Policy interest-cohort=()
Strict-Transport-Security "max-age=31536000;"
X-XSS-Protection "0"
X-Content-Type-Options "nosniff"
X-Frame-Options "SAMEORIGIN"
-X-Powered-By
Referrer-Policy "no-referrer-when-downgrade"
}
}
(common) {
import header_security
encode zstd gzip
}
auth.kernel-panic.me {
log {
output file /var/log/caddy/access-auth.kernel-panic.me.log
}
import common
reverse_proxy localhost:9815 {
header_up X-Real-IP {http.request.header.Cf-Connecting-Ip}
}
}
git.kernel-panic.me {
log {
output file /var/log/caddy/access-git.kernel-panic.me.log
}
import common
reverse_proxy localhost:9816 {
header_up X-Real-IP {http.request.header.Cf-Connecting-Ip}
}
}
outline.kernel-panic.me {
log {
output file /var/log/caddy/access-outline.kernel-panic.me.log
}
import common
reverse_proxy localhost:9817 {
header_up X-Real-IP {http.request.header.Cf-Connecting-Ip}
}
}
vault.kernel-panic.me {
log {
output file /var/log/caddy/access-vault.kernel-panic.me.log
}
header {
X-Robots-Tag "noindex, nofollow"
}
import common
reverse_proxy localhost:9818 {
header_up X-Real-IP {http.request.header.Cf-Connecting-Ip}
}
}