francislavoie:
{
debug
}
Thanks for your reply @francislavoie . I have been trying to run Caddy as a service and by command line.
Find attached my log with debug activated.
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: runtime.GOOS=linux
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: runtime.GOARCH=amd64
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: runtime.Compiler=gc
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: runtime.NumCPU=1
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: runtime.GOMAXPROCS=1
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: runtime.Version=go1.17
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: os.Getwd=/
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: LANG=C.UTF-8
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: NOTIFY_SOCKET=/run/systemd/notify
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: HOME=/var/lib/caddy
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: LOGNAME=caddy
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: USER=caddy
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: INVOCATION_ID=6d461c0a74c9451bb38b9ecc3781fa97
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: JOURNAL_STREAM=9:53990
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: {"level":"info","ts":1635386148.6151402,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":""}
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: {"level":"warn","ts":1635386148.618561,"msg":"input is not formatted with 'caddy fmt'","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":12}
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: {"level":"info","ts":1635386148.6228662,"logger":"admin","msg":"admin endpoint started","address":"tcp/localhost:2019","enforce_origin":false,"origins":["localhost:2019","[::1]:2019","127.0.0.1:2019"]}
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: {"level":"info","ts":1635386148.6231546,"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}
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: {"level":"info","ts":1635386148.6233053,"logger":"http","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: {"level":"debug","ts":1635386148.6237924,"logger":"http","msg":"starting server loop","address":"[::]:443","http3":false,"tls":true}
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: {"level":"debug","ts":1635386148.6239703,"logger":"http","msg":"starting server loop","address":"[::]:80","http3":false,"tls":false}
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: {"level":"info","ts":1635386148.6241152,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["experiencebuilder.spatialstudieslab.org"]}
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: {"level":"debug","ts":1635386148.6245768,"logger":"tls","msg":"loading managed certificate","domain":"experiencebuilder.spatialstudieslab.org","expiration":1643158443,"issuer_key":"acme-v02.api.letsencrypt.org-directory","storage":"FileStorage:/var/lib/caddy/.local/share/caddy"}
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: {"level":"debug","ts":1635386148.6290362,"logger":"tls.cache","msg":"added certificate to cache","subjects":["experiencebuilder.spatialstudieslab.org"],"expiration":1643158443,"managed":true,"issuer_key":"acme-v02.api.letsencrypt.org-directory","hash":"83168ae2c2363da6da27b6c759f5c532b1000adbf82885f1abde4c21be888e47"}
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: {"level":"info","ts":1635386148.6305785,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Oct 28 01:55:48 ip-172-31-52-244 systemd[1]: Started Caddy.
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: {"level":"info","ts":1635386148.6341586,"msg":"serving initial configuration"}
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: {"level":"info","ts":1635386148.6344006,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc000560c40"}
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: {"level":"info","ts":1635386148.6345937,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/var/lib/caddy/.local/share/caddy"}
Oct 28 01:55:48 ip-172-31-52-244 caddy[6758]: {"level":"info","ts":1635386148.6350634,"logger":"tls","msg":"finished cleaning storage units"}
Oct 28 01:56:03 ip-172-31-52-244 caddy[6758]: {"level":"debug","ts":1635386163.7279053,"logger":"tls.handshake","msg":"choosing certificate","identifier":"experiencebuilder.spatialstudieslab.org","num_choices":1}
Oct 28 01:56:03 ip-172-31-52-244 caddy[6758]: {"level":"debug","ts":1635386163.7279646,"logger":"tls.handshake","msg":"default certificate selection results","identifier":"experiencebuilder.spatialstudieslab.org","subjects":["experiencebuilder.spatialstudieslab.org"],"managed":true,"issuer_key":"acme-v02.api.letsencrypt.org-directory","hash":"83168ae2c2363da6da27b6c759f5c532b1000adbf82885f1abde4c21be888e47"}
Oct 28 01:56:03 ip-172-31-52-244 caddy[6758]: {"level":"debug","ts":1635386163.7279766,"logger":"tls.handshake","msg":"matched certificate in cache","subjects":["experiencebuilder.spatialstudieslab.org"],"managed":true,"expiration":1643158443,"hash":"83168ae2c2363da6da27b6c759f5c532b1000adbf82885f1abde4c21be888e47"}
Oct 28 01:56:03 ip-172-31-52-244 caddy[6758]: {"level":"debug","ts":1635386163.7843502,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":":3001","request":{"remote_addr":"73.206.116.144:64018","proto":"HTTP/2.0","method":"GET","host":"experiencebuilder.spatialstudieslab.org","uri":"/","headers":{"Sec-Ch-Ua-Mobile":["?0"],"Cookie":["_ga=GA1.1.1757196959.1632418725; _ga_P2FP3EMP96=GS1.1.1635200285.49.0.1635200285.0"],"X-Forwarded-For":["73.206.116.144"],"X-Forwarded-Proto":["https"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-User":["?1"],"Sec-Fetch-Dest":["document"],"Sec-Ch-Ua-Platform":["\"Windows\""],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 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-Site":["cross-site"],"Cache-Control":["max-age=0"],"Sec-Ch-Ua":["\"Chromium\";v=\"94\", \"Google Chrome\";v=\"94\", \";Not A Brand\";v=\"99\""],"Upgrade-Insecure-Requests":["1"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-US,en;q=0.9,pt-BR;q=0.8,pt;q=0.7"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","proto_mutual":true,"server_name":"experiencebuilder.spatialstudieslab.org"}},"duration":0.001051957,"error":"EOF"}
Oct 28 01:56:03 ip-172-31-52-244 caddy[6758]: {"level":"error","ts":1635386163.7866545,"logger":"http.log.error","msg":"EOF","request":{"remote_addr":"73.206.116.144:64018","proto":"HTTP/2.0","method":"GET","host":"experiencebuilder.spatialstudieslab.org","uri":"/","headers":{"Sec-Ch-Ua-Mobile":["?0"],"Cookie":["_ga=GA1.1.1757196959.1632418725; _ga_P2FP3EMP96=GS1.1.1635200285.49.0.1635200285.0"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-User":["?1"],"Sec-Fetch-Dest":["document"],"Sec-Ch-Ua-Platform":["\"Windows\""],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 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-Site":["cross-site"],"Cache-Control":["max-age=0"],"Sec-Ch-Ua":["\"Chromium\";v=\"94\", \"Google Chrome\";v=\"94\", \";Not A Brand\";v=\"99\""],"Upgrade-Insecure-Requests":["1"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-US,en;q=0.9,pt-BR;q=0.8,pt;q=0.7"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","proto_mutual":true,"server_name":"experiencebuilder.spatialstudieslab.org"}},"duration":0.003450528,"status":502,"err_id":"vbxi8q6qz","err_trace":"reverseproxy.statusError (reverseproxy.go:858)"}
Oct 28 01:56:07 ip-172-31-52-244 caddy[6758]: {"level":"debug","ts":1635386167.4751687,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":":3001","request":{"remote_addr":"73.206.116.144:64018","proto":"HTTP/2.0","method":"GET","host":"experiencebuilder.spatialstudieslab.org","uri":"/","headers":{"Sec-Fetch-Site":["none"],"Sec-Fetch-User":["?1"],"X-Forwarded-Proto":["https"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36"],"Sec-Fetch-Mode":["navigate"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-US,en;q=0.9,pt-BR;q=0.8,pt;q=0.7"],"X-Forwarded-For":["73.206.116.144"],"Sec-Ch-Ua-Mobile":["?0"],"Upgrade-Insecure-Requests":["1"],"Sec-Fetch-Dest":["document"],"Cookie":["_ga=GA1.1.1757196959.1632418725; _ga_P2FP3EMP96=GS1.1.1635200285.49.0.1635200285.0"],"Cache-Control":["max-age=0"],"Sec-Ch-Ua":["\"Chromium\";v=\"94\", \"Google Chrome\";v=\"94\", \";Not A Brand\";v=\"99\""],"Sec-Ch-Ua-Platform":["\"Windows\""],"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"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","proto_mutual":true,"server_name":"experiencebuilder.spatialstudieslab.org"}},"duration":0.000993332,"error":"EOF"}
Oct 28 01:56:07 ip-172-31-52-244 caddy[6758]: {"level":"error","ts":1635386167.4758403,"logger":"http.log.error","msg":"EOF","request":{"remote_addr":"73.206.116.144:64018","proto":"HTTP/2.0","method":"GET","host":"experiencebuilder.spatialstudieslab.org","uri":"/","headers":{"Sec-Ch-Ua-Mobile":["?0"],"Upgrade-Insecure-Requests":["1"],"Sec-Fetch-Dest":["document"],"Cookie":["_ga=GA1.1.1757196959.1632418725; _ga_P2FP3EMP96=GS1.1.1635200285.49.0.1635200285.0"],"Cache-Control":["max-age=0"],"Sec-Ch-Ua":["\"Chromium\";v=\"94\", \"Google Chrome\";v=\"94\", \";Not A Brand\";v=\"99\""],"Sec-Ch-Ua-Platform":["\"Windows\""],"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-Site":["none"],"Sec-Fetch-User":["?1"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36"],"Sec-Fetch-Mode":["navigate"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-US,en;q=0.9,pt-BR;q=0.8,pt;q=0.7"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","proto_mutual":true,"server_name":"experiencebuilder.spatialstudieslab.org"}},"duration":0.001746623,"status":502,"err_id":"edqy56xn2","err_trace":"reverseproxy.statusError (reverseproxy.go:858)"}