My current logs from Caddy in Docker is below. I changed my website domain to “example.com” and “exampleto.com”
Not sure if this matters but this was the last line in my logs for Caddy in Portainer. Saw it after i ran the command in next section. Leading to the Json output.
ERR ts=1689044402.769358 logger=http.handlers.reverse_proxy msg=aborting with incomplete response error=http2: stream closed
Ran this command to get the log output below
docker logs caddy 2>&1 | jq
{
"level": "warn",
"ts": 1688958603.486633,
"msg": "exiting; byeee!! 👋",
"signal": "SIGTERM"
}
{
"level": "info",
"ts": 1688958603.4868908,
"logger": "tls.cache.maintenance",
"msg": "stopped background certificate maintenance",
"cache": "0xc000033340"
}
{
"level": "info",
"ts": 1688958603.4869623,
"logger": "admin",
"msg": "stopped previous server",
"address": "localhost:2019"
}
{
"level": "info",
"ts": 1688958603.4869704,
"msg": "shutdown complete",
"signal": "SIGTERM",
"exit_code": 0
}
{
"level": "info",
"ts": 1688958604.3446407,
"msg": "using provided configuration",
"config_file": "/etc/caddy/Caddyfile",
"config_adapter": "caddyfile"
}
{
"level": "info",
"ts": 1688958604.347093,
"logger": "admin",
"msg": "admin endpoint started",
"address": "localhost:2019",
"enforce_origin": false,
"origins": [
"//localhost:2019",
"//[::1]:2019",
"//127.0.0.1:2019"
]
}
{
"level": "info",
"ts": 1688958604.3474681,
"logger": "http",
"msg": "server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS",
"server_name": "srv0",
"https_port": 443
}
{
"level": "info",
"ts": 1688958604.3474822,
"logger": "http",
"msg": "enabling automatic HTTP->HTTPS redirects",
"server_name": "srv0"
}
{
"level": "info",
"ts": 1688958604.3475606,
"logger": "tls.cache.maintenance",
"msg": "started background certificate maintenance",
"cache": "0xc0003d53b0"
}
{
"level": "info",
"ts": 1688958604.3477728,
"logger": "http",
"msg": "enabling HTTP/3 listener",
"addr": ":443"
}
{
"level": "info",
"ts": 1688958604.3478181,
"logger": "tls",
"msg": "cleaning storage unit",
"description": "FileStorage:/data/caddy"
}
{
"level": "info",
"ts": 1688958604.347834,
"msg": "failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Receive-Buffer-Size for details."
}
{
"level": "info",
"ts": 1688958604.347892,
"logger": "http.log",
"msg": "server running",
"name": "srv0",
"protocols": [
"h1",
"h2",
"h3"
]
}
{
"level": "info",
"ts": 1688958604.3479152,
"logger": "http.log",
"msg": "server running",
"name": "remaining_auto_https_redirects",
"protocols": [
"h1",
"h2",
"h3"
]
}
{
"level": "info",
"ts": 1688958604.3479197,
"logger": "http",
"msg": "enabling automatic TLS certificate management",
"domains": [
"example.com",
"example2.photos"
]
}
{
"level": "info",
"ts": 1688958604.3487427,
"msg": "autosaved config (load with --resume flag)",
"file": "/config/caddy/autosave.json"
}
{
"level": "info",
"ts": 1688958604.3487723,
"msg": "serving initial configuration"
}
{
"level": "info",
"ts": 1688958604.3490746,
"logger": "tls",
"msg": "finished cleaning storage units"
}
{
"level": "info",
"ts": 1688958844.5534682,
"msg": "shutting down apps, then terminating",
"signal": "SIGTERM"
}
{
"level": "warn",
"ts": 1688958844.5538046,
"msg": "exiting; byeee!! 👋",
"signal": "SIGTERM"
}
{
"level": "info",
"ts": 1688958845.5946903,
"logger": "tls.cache.maintenance",
"msg": "stopped background certificate maintenance",
"cache": "0xc0003d53b0"
}
{
"level": "info",
"ts": 1688958845.5948968,
"logger": "admin",
"msg": "stopped previous server",
"address": "localhost:2019"
}
{
"level": "info",
"ts": 1688958845.5949206,
"msg": "shutdown complete",
"signal": "SIGTERM",
"exit_code": 0
}
{
"level": "info",
"ts": 1688971047.6639946,
"msg": "using provided configuration",
"config_file": "/etc/caddy/Caddyfile",
"config_adapter": "caddyfile"
}
{
"level": "info",
"ts": 1688971047.6681757,
"logger": "admin",
"msg": "admin endpoint started",
"address": "localhost:2019",
"enforce_origin": false,
"origins": [
"//localhost:2019",
"//[::1]:2019",
"//127.0.0.1:2019"
]
}
{
"level": "info",
"ts": 1688971047.6696672,
"logger": "http",
"msg": "server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS",
"server_name": "srv0",
"https_port": 443
}
{
"level": "info",
"ts": 1688971047.6696844,
"logger": "http",
"msg": "enabling automatic HTTP->HTTPS redirects",
"server_name": "srv0"
}
{
"level": "info",
"ts": 1688971047.6703994,
"logger": "tls.cache.maintenance",
"msg": "started background certificate maintenance",
"cache": "0xc000400e70"
}
{
"level": "info",
"ts": 1688971047.6723228,
"logger": "tls",
"msg": "cleaning storage unit",
"description": "FileStorage:/data/caddy"
}
{
"level": "info",
"ts": 1688971047.6734529,
"logger": "http.log",
"msg": "server running",
"name": "remaining_auto_https_redirects",
"protocols": [
"h1",
"h2",
"h3"
]
}
{
"level": "info",
"ts": 1688971047.673628,
"logger": "http",
"msg": "enabling HTTP/3 listener",
"addr": ":443"
}
{
"level": "info",
"ts": 1688971047.673737,
"msg": "failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Receive-Buffer-Size for details."
}
{
"level": "info",
"ts": 1688971047.6743896,
"logger": "http.log",
"msg": "server running",
"name": "srv0",
"protocols": [
"h1",
"h2",
"h3"
]
}
{
"level": "info",
"ts": 1688971047.6743991,
"logger": "http",
"msg": "enabling automatic TLS certificate management",
"domains": [
"example.com",
"example2.photos"
]
}
{
"level": "info",
"ts": 1688971047.677398,
"logger": "tls",
"msg": "finished cleaning storage units"
}
{
"level": "info",
"ts": 1688971047.6780698,
"msg": "autosaved config (load with --resume flag)",
"file": "/config/caddy/autosave.json"
}
{
"level": "info",
"ts": 1688971047.6780882,
"msg": "serving initial configuration"
}
{
"level": "info",
"ts": 1688972708.319269,
"msg": "shutting down apps, then terminating",
"signal": "SIGTERM"
}
{
"level": "warn",
"ts": 1688972708.3193138,
"msg": "exiting; byeee!! 👋",
"signal": "SIGTERM"
}
{
"level": "info",
"ts": 1688972708.3195474,
"logger": "tls.cache.maintenance",
"msg": "stopped background certificate maintenance",
"cache": "0xc000400e70"
}
{
"level": "info",
"ts": 1688972708.3196142,
"logger": "admin",
"msg": "stopped previous server",
"address": "localhost:2019"
}
{
"level": "info",
"ts": 1688972708.3196244,
"msg": "shutdown complete",
"signal": "SIGTERM",
"exit_code": 0
}
{
"level": "info",
"ts": 1688972709.3051028,
"msg": "using provided configuration",
"config_file": "/etc/caddy/Caddyfile",
"config_adapter": "caddyfile"
}
{
"level": "info",
"ts": 1688972709.3063872,
"logger": "admin",
"msg": "admin endpoint started",
"address": "localhost:2019",
"enforce_origin": false,
"origins": [
"//localhost:2019",
"//[::1]:2019",
"//127.0.0.1:2019"
]
}
{
"level": "info",
"ts": 1688972709.3073766,
"logger": "tls.cache.maintenance",
"msg": "started background certificate maintenance",
"cache": "0xc000550230"
}
{
"level": "info",
"ts": 1688972709.3073936,
"logger": "http",
"msg": "server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS",
"server_name": "srv0",
"https_port": 443
}
{
"level": "info",
"ts": 1688972709.307419,
"logger": "http",
"msg": "enabling automatic HTTP->HTTPS redirects",
"server_name": "srv0"
}
{
"level": "info",
"ts": 1688972709.3081656,
"logger": "http.log",
"msg": "server running",
"name": "remaining_auto_https_redirects",
"protocols": [
"h1",
"h2",
"h3"
]
}
{
"level": "info",
"ts": 1688972709.3081927,
"logger": "tls",
"msg": "cleaning storage unit",
"description": "FileStorage:/data/caddy"
}
{
"level": "info",
"ts": 1688972709.3082135,
"logger": "http",
"msg": "enabling HTTP/3 listener",
"addr": ":443"
}
{
"level": "info",
"ts": 1688972709.308274,
"msg": "failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Receive-Buffer-Size for details."
}
{
"level": "info",
"ts": 1688972709.308327,
"logger": "http.log",
"msg": "server running",
"name": "srv0",
"protocols": [
"h1",
"h2",
"h3"
]
}
{
"level": "info",
"ts": 1688972709.3083372,
"logger": "http",
"msg": "enabling automatic TLS certificate management",
"domains": [
"example2.photos",
"example.com"
]
}
{
"level": "info",
"ts": 1688972709.308921,
"logger": "tls",
"msg": "finished cleaning storage units"
}
{
"level": "info",
"ts": 1688972709.3095303,
"msg": "autosaved config (load with --resume flag)",
"file": "/config/caddy/autosave.json"
}
{
"level": "info",
"ts": 1688972709.309542,
"msg": "serving initial configuration"
}
{
"level": "info",
"ts": 1689033484.1996872,
"msg": "shutting down apps, then terminating",
"signal": "SIGTERM"
}
{
"level": "warn",
"ts": 1689033484.1997328,
"msg": "exiting; byeee!! 👋",
"signal": "SIGTERM"
}
{
"level": "info",
"ts": 1689033484.19995,
"logger": "tls.cache.maintenance",
"msg": "stopped background certificate maintenance",
"cache": "0xc000550230"
}
{
"level": "info",
"ts": 1689033484.2000654,
"logger": "admin",
"msg": "stopped previous server",
"address": "localhost:2019"
}
{
"level": "info",
"ts": 1689033484.200079,
"msg": "shutdown complete",
"signal": "SIGTERM",
"exit_code": 0
}
{
"level": "info",
"ts": 1689033485.1736963,
"msg": "using provided configuration",
"config_file": "/etc/caddy/Caddyfile",
"config_adapter": "caddyfile"
}
parse error: Invalid numeric literal at line 97, column 6