Problem with 2.7

1. The problem I’m having:

Won’t serve site

2. Error messages and/or full log output:

{“level”:“info”,“ts”:1691025092.4498572,“logger”:“http”,“msg”:“enabling automatic TLS certificate management”,“domains”:[“portainer.rebuild2.win”,“rebuild2.win”]}
{“level”:“info”,“ts”:1691025092.4524908,“logger”:“tls”,“msg”:“finished cleaning storage units”}
{“level”:“warn”,“ts”:1691025092.5461206,“logger”:“tls”,“msg”:“stapling OCSP”,“error”:“no OCSP stapling for [rebuild2.win]: parsing OCSP response: ocsp: error from server: unauthorized”,“identifiers”:[“rebuild2.win”]}
{“level”:“info”,“ts”:1691025092.546595,“msg”:“autosaved config (load with --resume flag)”,“file”:“/data/caddy/autosave.json”}
{“level”:“info”,“ts”:1691025092.54661,“msg”:“serving initial configuration”}
{“level”:“info”,“ts”:1691025092.5478563,“logger”:“tls.renew”,“msg”:“acquiring lock”,“identifier”:“rebuild2.win”}
{“level”:“info”,“ts”:1691025092.5496106,“logger”:“watcher”,“msg”:“watching config file for changes”,“config_file”:“/share/caddy2/Caddyfile”}
{“level”:“info”,“ts”:1691025092.5550187,“logger”:“tls.renew”,“msg”:“lock acquired”,“identifier”:“rebuild2.win”}
{“level”:“info”,“ts”:1691025092.555944,“logger”:“tls.renew”,“msg”:“renewing certificate”,“identifier”:“rebuild2.win”,“remaining”:-780196.555942523}
{“level”:“info”,“ts”:1691025092.556704,“logger”:“tls.issuance.acme”,“msg”:“waiting on internal rate limiter”,“identifiers”:[“rebuild2.win”],“ca”:“https://acme-v02.api.letsencrypt.org/directory",“account”:"david@wilfam.net”}
{“level”:“info”,“ts”:1691025092.5567331,“logger”:“tls.issuance.acme”,“msg”:“done waiting on internal rate limiter”,“identifiers”:[“rebuild2.win”],“ca”:“https://acme-v02.api.letsencrypt.org/directory",“account”:"david@wilfam.net”}
{“level”:“info”,“ts”:1691025094.1161518,“logger”:“tls.issuance.acme.acme_client”,“msg”:“trying to solve challenge”,“identifier”:“rebuild2.win”,“challenge_type”:“dns-01”,“ca”:“https://acme-v02.api.letsencrypt.org/directory”}
{“level”:“info”,“ts”:1691025173.022894,“logger”:“tls.issuance.acme.acme_client”,“msg”:“authorization finalized”,“identifier”:“rebuild2.win”,“authz_status”:“valid”}
{“level”:“info”,“ts”:1691025173.0229461,“logger”:“tls.issuance.acme.acme_client”,“msg”:“validations succeeded; finalizing order”,“order”:“https://acme-v02.api.letsencrypt.org/acme/order/451163830/199051889276”}
{“level”:“info”,“ts”:1691025174.4619298,“logger”:“tls.issuance.acme.acme_client”,“msg”:“successfully downloaded available certificate chains”,“count”:2,“first_url”:“https://acme-v02.api.letsencrypt.org/acme/cert/046ca629ecd7a58b176e703cf82ecbf45676”}
{“level”:“info”,“ts”:1691025174.462828,“logger”:“tls.renew”,“msg”:“certificate renewed successfully”,“identifier”:“rebuild2.win”}
{“level”:“info”,“ts”:1691025174.4629736,“logger”:“tls.renew”,“msg”:“releasing lock”,“identifier”:“rebuild2.win”}
{“level”:“info”,“ts”:1691025174.4630651,“logger”:“tls”,“msg”:“reloading managed certificate”,“identifiers”:[“rebuild2.win”]}
{“level”:“info”,“ts”:1691025174.707694,“logger”:“tls.cache”,“msg”:“replaced certificate in cache”,“subjects”:[“rebuild2.win”],“new_expiration”:1698797573}


3. Caddy version:2.7

4. How I installed and ran Caddy: docker with homeassistant addon

a. System environment:

Linux Docker

b. Command:


c. Service/unit/compose file:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

d. My complete Caddy config:

{
	email david@wilfam.net
}

(common) {
	tls {
		dns namecheap {
			api_key {env.NAMECHEAP_API_KEY}
			user {env.NAMECHEAP_API_USER}
            client_ip 203.132.93.83
            endpoint https://api.namecheap.com/xml.response
		}
	}
	header {
		Strict-Transport-Security "max-age=31536000; includeSubdomains"
		X-XSS-Protection "1; mode=block"
		X-Content-Type-Options "nosniff"
		Referrer-Policy "same-origin"
		Permissions-Policy "geolocation=(self) , microphone=()"
		Content-Security-Policy "frame-ancestors homeautomation.casa:30443 *.homeautomation.casa:30443"
		-Server
	}
}
rebuild2.win:30443 {
	import common
	reverse_proxy localhost:8123 {
	}
}

portainer.rebuild2.win:30443 {
	import common
	reverse_proxy localhost:9000 {
	}
}

5. Links to relevant resources:

Your post is empty. I’m not sure what you’re trying to say here.

But yes, there are known issues with v2.7.0. Please use v2.7.1 which we’ve just released.

thanks. the template is a nightmare. I will try 2.7.1 now

1 Like

I think you should read up on Markdown.

here is the log:

INFO: Prepare Caddy...
DEBUG: Set custom Caddy binary path
INFO: Found custom Caddy at /share/caddy2/caddy
v2.7.1 h1:HmTW5UPWhU4t3+HxBSX2d1hDAdVOQas5IVDP5zH2DhE=
INFO: Prepare Caddyfile...
DEBUG: Set custom Caddyfile path
INFO: Caddyfile found at /share/caddy2/Caddyfile
INFO: Run Caddy...
DEBUG: '/share/caddy2/caddy' run --config '/share/caddy2/Caddyfile' '--watch'
{"level":"info","ts":1691026289.619436,"msg":"using provided configuration","config_file":"/share/caddy2/Caddyfile","config_adapter":""}
{"level":"info","ts":1691026289.6231494,"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":1691026289.6234584,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc00052e080"}
{"level":"info","ts":1691026289.6239903,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
{"level":"info","ts":1691026289.6247132,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/ssl/caddy"}
{"level":"info","ts":1691026289.6256132,"logger":"tls","msg":"finished cleaning storage units"}
{"level":"info","ts":1691026289.6247838,"logger":"http","msg":"enabling HTTP/3 listener","addr":":30443"}
{"level":"info","ts":1691026289.6257725,"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-Buffer-Sizes for details."}
{"level":"info","ts":1691026289.6259203,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
{"level":"info","ts":1691026289.625993,"logger":"http.log","msg":"server running","name":"remaining_auto_https_redirects","protocols":["h1","h2","h3"]}
{"level":"info","ts":1691026289.62601,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["portainer.rebuild2.win","rebuild2.win"]}
{"level":"info","ts":1691026289.6296349,"msg":"autosaved config (load with --resume flag)","file":"/data/caddy/autosave.json"}
{"level":"info","ts":1691026289.6296635,"msg":"serving initial configuration"}
{"level":"info","ts":1691026289.6316495,"logger":"watcher","msg":"watching config file for changes","config_file":"/share/caddy2/Caddyfile"}

The site rebuild2.win:30443 just keeps coming up with a retry message. I have seen this occasionally before but it normally resolves if I restart caddy
my Caddyfile:

{
	email david@wilfam.net
}

(common) {
	tls {
		dns namecheap {
			api_key {env.NAMECHEAP_API_KEY}
			user {env.NAMECHEAP_API_USER}
			client_ip 203.132.93.83
			endpoint https://api.namecheap.com/xml.response
		}
	}
	header {
		Strict-Transport-Security "max-age=31536000; includeSubdomains"
		X-XSS-Protection "1; mode=block"
		X-Content-Type-Options "nosniff"
		Referrer-Policy "same-origin"
		Permissions-Policy "geolocation=(self) , microphone=()"
		Content-Security-Policy "frame-ancestors homeautomation.casa:30443 *.homeautomation.casa:30443"
		-Server
	}
}
rebuild2.win:30443 {
	import common
	reverse_proxy localhost:8123 {
	}
}

portainer.rebuild2.win:30443 {
	import common
	reverse_proxy localhost:9000 {
	}
}

I don’t see any errors…

If I switch back to Caddy 2.6.4 it loads immediately. I suspect something in the header?

I don’t understand what you mean by a “retry message”. Please be more specific. Don’t make any assumptions. Don’t use vague language.

I mean the web server I am connecting to won’t load.
With 2.6.4 I see


With 2.7.1 I see
image
Exactly the same Caddyfile, exactly the same in the log

Please make a request with curl -v, don’t use your browser to test.

This is the output from 2.7.1 to that server

david@debian:~$ curl -v "https://rebuild2.win:30443"
*   Trying [2401:d002:f02:200:c1e:54ff:fe88:1811]:30443...
* Connected to rebuild2.win (2401:d002:f02:200:c1e:54ff:fe88:1811) port 30443 (#0)
* ALPN: offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_CHACHA20_POLY1305_SHA256
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=rebuild2.win
*  start date: Aug  3 00:12:53 2023 GMT
*  expire date: Nov  1 00:12:52 2023 GMT
*  subjectAltName: host "rebuild2.win" matched cert's "rebuild2.win"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
* using HTTP/2
* h2h3 [:method: GET]
* h2h3 [:path: /]
* h2h3 [:scheme: https]
* h2h3 [:authority: rebuild2.win:30443]
* h2h3 [user-agent: curl/7.88.1]
* h2h3 [accept: */*]
* Using Stream ID: 1 (easy handle 0x560fe811cc70)
> GET / HTTP/2
> Host: rebuild2.win:30443
> user-agent: curl/7.88.1
> accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
< HTTP/2 200
< alt-svc: h3=":30443"; ma=2592000
< content-security-policy: frame-ancestors homeautomation.casa:30443 *.homeautomation.casa:30443
< content-type: text/html; charset=utf-8
< date: Thu, 03 Aug 2023 02:05:08 GMT
< permissions-policy: geolocation=(self) , microphone=()
< referrer-policy: same-origin
< strict-transport-security: max-age=31536000; includeSubdomains
< x-content-type-options: nosniff
< x-xss-protection: 1; mode=block
< content-length: 9311
<
<!DOCTYPE html><html><head><title>Home Assistant</title><meta charset="utf-8"><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"><link rel="icon" href="/static/icons/favicon.ico"><link rel="modulepreload" href="/frontend_latest/core-fMfeAVNS8qM.js" crossorigin="use-credentials"><link rel="modulepreload" href="/frontend_latest/app-Ytpn0PeW5Ms.js" crossorigin="use-credentials"><link rel="mask-icon" href="/static/icons/mask-icon.svg" color="#03a9f4"><link rel="apple-touch-icon" sizes="180x180" href="/static/icons/favicon-apple-180x180.png"><meta name="apple-itunes-app" content="app-id=1099568401"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="apple-mobile-web-app-title" content="Home Assistant"><meta name="msapplication-square70x70logo" content="/static/icons/tile-win-70x70.png"><meta name="msapplication-square150x150logo" content="/static/icons/tile-win-150x150.png"><meta name="msapplication-wide310x150logo" content="/static/icons/tile-win-310x150.png"><meta name="msapplication-square310x310logo" content="/static/icons/tile-win-310x310.png"><meta name="msapplication-TileColor" content="#03a9f4ff"><meta name="mobile-web-app-capable" content="yes"><meta name="referrer" content="same-origin"><meta name="theme-color" content="#03A9F4"><meta name="color-scheme" content="dark light"><meta name="viewport" content="width=device-width,user-scalable=no,viewport-fit=cover,initial-scale=1"><style>body{font-family:Roboto,sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-weight:400;margin:0;padding:0;height:100%}</style><style>html{background-color:var(--primary-background-color,#fafafa);color:var(--primary-text-color,#212121)}@media (prefers-color-scheme:dark){html{background-color:var(--primary-background-color,#111);color:var(--primary-text-color,#e1e1e1)}}body{font-family:Roboto,Noto,sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-weight:400;height:100vh;margin:0;padding:0}#ha-launch-screen{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}#ha-launch-screen svg{width:170px;flex-shrink:0}#ha-launch-screen .ha-launch-screen-spacer{flex:1}</style></head><body><div id="ha-launch-screen"><div class="ha-launch-screen-spacer"></div><svg version="1.1" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><rect fill="#41bdf5" width="200" height="200" ry="16.4"/><path fill="#fff" d="m38.416 165.29v-53.456h-13.901a3.7332 3.7332 0 0 1-2.662-6.3504l74.804-76.084c1.8068-1.8376 4.7612-1.8628 6.5992-0.056l0.048 0.048 39.04 39.518v-7.3188a3.1112 3.1112 0 0 1 3.1112-3.1112h12.964a3.1112 3.1112 0 0 1 3.1116 3.1112v26.855l16.627 17.047a3.7332 3.7332 0 0 1-2.6728 6.34h-13.954v53.456a3.1112 3.1112 0 0 1-3.1112 3.1112h-116.89a3.1112 3.1112 0 0 1-3.1112-3.1112zm82.556-65.304a6.0116 6.0116 0 0 0 0.584-2.5944c0-3.3232-2.684-6.0172-5.9956-6.0172-3.3112 0-5.9956 2.694-5.9956 6.0172s2.6844 6.0176 5.996 6.0176c0.9256 0 1.802-0.2108 2.5848-0.5868l8.6072 8.6384v8.3672l-10.792 10.831v-7.936a6.0184 6.0184 0 0 0 3.9972-5.6748c0-3.3232-2.6844-6.0176-5.996-6.0176-3.3112 0-5.996 2.6944-5.996 6.0176 0 2.62 1.6688 4.8488 3.9976 5.6748v11.947l-9.9932 10.029v-58.912l8.2076-8.2368a5.9544 5.9544 0 0 0 2.5848 0.5864c3.3116 0 5.996-2.694 5.996-6.0176 0-3.3232-2.6844-6.0172-5.996-6.0172-3.3112 0-5.9956 2.694-5.9956 6.0172 0 0.9292 0.2096 1.8088 0.584 2.5944l-7.3792 7.406-7.3796-7.406a6.0116 6.0116 0 0 0 0.584-2.5944c0-3.3232-2.684-6.0172-5.9956-6.0172-3.3112 0-5.9956 2.694-5.9956 6.0172 0 3.3236 2.6844 6.0176 5.996 6.0176 0.9256 0 1.802-0.2108 2.5848-0.5864l8.2072 8.2368v42.064l-14.39-14.442v-11.546a6.0184 6.0184 0 0 0 3.9972-5.6748c0-3.3236-2.6844-6.0176-5.996-6.0176-3.3112 0-5.996 2.694-5.996 6.0176 0 2.62 1.6688 4.8488 3.9976 5.6748v7.5348l-11.192-11.232v-11.145a6.0184 6.0184 0 0 0 3.9972-5.6748c0-3.3232-2.6844-6.0176-5.996-6.0176-3.3112 0-5.996 2.6944-5.996 6.0176 0 2.62 1.6688 4.8488 3.9976 5.6748v12.807l12.363 12.407h-7.108c-0.8232-2.3372-3.044-4.0116-5.6548-4.0116-3.3112 0-5.996 2.694-5.996 6.0172 0 3.3236 2.6848 6.0176 5.996 6.0176 2.6108 0 4.832-1.6744 5.6548-4.012h11.105l17.216 17.278v30.03l-9.1932-9.2264v-11.546a6.0184 6.0184 0 0 0 3.9972-5.6748c0-3.3232-2.6844-6.0172-5.996-6.0172-3.3112 0-5.996 2.694-5.996 6.0172 0 2.62 1.6688 4.8488 3.9976 5.6748v7.5348l-13.376-13.423a6.0116 6.0116 0 0 0 0.5844-2.5944c0-3.3232-2.684-6.0172-5.996-6.0172-3.3112 0-5.9956 2.694-5.9956 6.0172s2.6844 6.0172 5.996 6.0172c0.9256 0 1.8024-0.2104 2.5848-0.5864l13.376 13.424h-7.108c-0.8232-2.3372-3.044-4.012-5.6548-4.012-3.3112 0-5.996 2.6944-5.996 6.0176s2.6848 6.0172 5.996 6.0172c2.6108 0 4.8316-1.6744 5.6548-4.0116h11.105l11.192 11.232h5.6528l11.592-11.633h10.705c0.8232 2.3368 3.044 4.0112 5.6548 4.0112 3.3112 0 5.996-2.694 5.996-6.0172s-2.6848-6.0172-5.996-6.0172c-2.6108 0-4.8316 1.6744-5.6548 4.0116h-12.361l-10.764 10.802v-13.18l12.82-12.866h20.698c0.8232 2.3372 3.044 4.0116 5.6544 4.0116 3.3116 0 5.996-2.694 5.996-6.0172 0-3.3236-2.6844-6.0176-5.996-6.0176-2.6104 0-4.8312 1.6744-5.6544 4.012h-16.702l11.963-12.006v-10.029l8.6068-8.6384a5.9544 5.9544 0 0 0 2.5852 0.5868c3.3112 0 5.996-2.6944 5.996-6.0176s-2.6848-6.0172-5.996-6.0172-5.996 2.694-5.996 6.0172c0 0.9292 0.21 1.8088 0.5844 2.5944l-5.7804 5.8016v-18.367a6.0184 6.0184 0 0 0 3.9972-5.6748c0-3.3236-2.6844-6.0176-5.996-6.0176-3.3112 0-5.996 2.694-5.996 6.0176 0 2.62 1.6688 4.8488 3.9976 5.6748v18.366l-5.7808-5.8016zm-51.78 57.58c-1.3244 0-2.3984-1.0776-2.3984-2.4068s1.074-2.4068 2.3984-2.4068c1.3248 0 2.3984 1.0776 2.3984 2.4068s-1.0736 2.4068-2.3984 2.4068zm17.588-18.052c-1.3248 0-2.3988-1.0776-2.3988-2.4068s1.074-2.4068 2.3984-2.4068c1.3248 0 2.3984 1.0776 2.3984 2.4068s-1.0736 2.4068-2.3984 2.4068zm-20.786-2.808c-1.3248 0-2.3984-1.0776-2.3984-2.4068s1.0736-2.4068 2.3984-2.4068c1.3244 0 2.3984 1.0776 2.3984 2.4068s-1.074 2.4068-2.3984 2.4068zm-1.9988-20.058c-1.3244 0-2.398-1.0776-2.398-2.4072 0-1.3292 1.0736-2.4068 2.398-2.4068 1.3248 0 2.3984 1.0776 2.3984 2.4068 0 1.3296-1.0736 2.4072-2.3984 2.4072zm49.964 2.808c-1.3244 0-2.398-1.0776-2.398-2.4068 0-1.3296 1.0736-2.4072 2.398-2.4072 1.3248 0 2.3984 1.0776 2.3984 2.4072 0 1.3292-1.0736 2.4068-2.3984 2.4068zm27.181 18.453c-1.324 0-2.398-1.0776-2.398-2.4068 0-1.3296 1.0736-2.4072 2.398-2.4072 1.3248 0 2.3984 1.0776 2.3984 2.4072 0 1.3292-1.0736 2.4068-2.3984 2.4068zm-10.392 19.255c-1.3248 0-2.3984-1.0776-2.3984-2.4068s1.0736-2.4068 2.3984-2.4068c1.3244 0 2.3984 1.0776 2.3984 2.4068s-1.074 2.4068-2.3984 2.4068zm11.192-57.364c-1.3244 0-2.3984-1.078-2.3984-2.4072s1.074-2.4068 2.3984-2.4068 2.3984 1.0776 2.3984 2.4068-1.074 2.4072-2.3984 2.4072zm-13.191-15.645c-1.3244 0-2.3984-1.0776-2.3984-2.4068 0-1.3296 1.074-2.4072 2.3984-2.4072 1.3248 0 2.3984 1.0776 2.3984 2.4072 0 1.3292-1.0736 2.4068-2.3984 2.4068zm-15.989-9.628c-1.3244 0-2.398-1.0772-2.398-2.4068 0-1.3292 1.0736-2.4068 2.398-2.4068 1.3248 0 2.3984 1.0776 2.3984 2.4068 0 1.3296-1.0736 2.4072-2.3984 2.4072zm-25.582 0c-1.324 0-2.398-1.0772-2.398-2.4068 0-1.3292 1.0736-2.4068 2.398-2.4068 1.3248 0 2.3984 1.0776 2.3984 2.4068 0 1.3296-1.0736 2.4072-2.3984 2.4072zm-20.785 9.2268c-1.3244 0-2.3984-1.0776-2.3984-2.4068 0-1.3296 1.074-2.4072 2.3984-2.4072s2.3984 1.0776 2.3984 2.4072c0 1.3292-1.074 2.4068-2.3984 2.4068zm15.189 14.843c-1.3244 0-2.398-1.0776-2.398-2.4068 0-1.3296 1.0736-2.4072 2.398-2.4072 1.3248 0 2.3984 1.0776 2.3984 2.4072 0 1.3292-1.0736 2.4068-2.3984 2.4068zm33.976 1.2036c-1.324 0-2.398-1.078-2.398-2.4072s1.0736-2.4068 2.398-2.4068c1.3248 0 2.3984 1.0776 2.3984 2.4068s-1.0736 2.4072-2.3984 2.4072z"/></svg><div id="ha-launch-screen-info-box" class="ha-launch-screen-spacer"></div></div><home-assistant></home-assistant><script>function _ls(e){var t=document.documentElement,i=t.insertBefore(document.createElement("script"),t.lastChild);return i.defer=!0,i.src=e,i}window.Polymer={lazyRegister:!0,useNativeCSSProperties:!0,dom:"shadow",suppressTemplateNotifications:!0,suppressBindingNotifications:!0},window.polymerSkipLoadingFontRoboto=!0,"customElements"in window&&"content"in document.createElement("template")||document.write("<script src='/static/polyfills/webcomponents-bundle.js'><\/script>");var isS11_12=/(?:.*(?:iPhone|iPad).*OS (?:11|12)_\d)|(?:.*Version\/(?:11|12)(?:\.\d+)*.*Safari\/)/.test(navigator.userAgent)</script><script>if(-1===navigator.userAgent.indexOf("Android")&&-1===navigator.userAgent.indexOf("CrOS")){function _pf(o,t){var n=document.createElement("link");n.rel="preload",n.as="font",n.type="font/woff2",n.href=o,n.crossOrigin="anonymous",document.head.appendChild(n)}_pf("/static/fonts/roboto/Roboto-Regular.woff2"),_pf("/static/fonts/roboto/Roboto-Medium.woff2")}</script><script crossorigin="use-credentials">window.globalThis||(window.globalThis=window),isS11_12||(import("/frontend_latest/core-fMfeAVNS8qM.js"),import("/frontend_latest/app-Ytpn0PeW5Ms.js"),window.customPanelJS="/frontend_latest/custom-panel-YlyqQgzzb6E.js",window.latestJS=!0)</script><script></script><script>window.latestJS||(window.customPanelJS="/frontend_es5/custom-panel-JmUq08tO9_w.js",_ls("/frontend_es5/core-wWwFVJnpxqA.js"),_ls("/fro* Connection #0 to host rebuild2.win left intact
ntend_es5/app-U7RYgMkJGDM.js"))</script><script>if (!window.latestJS) {}</script></body></html>```

That looks fine.

What do you see in your browser’s network logs, then? There must be errors either in the console or network tabs.

This is what the console shows
image
I don’t see anything interesting in the network log but I have no idea what I would be looking for anyway.
You should be able to connect to it as well

Your curl command shows an IPv6 address. My ISP doesn’t support IPv6, so I cannot connect.

This just shows a connection error, but that’s vague. Please click on the Network tab (click on the >> next to Console to see it, if your panel is too small to show it). Click on the failing websocket request and show what you see there.

Oh yeah…

The failed websocket request shows:
Could not load content for https://rebuild2.win:30443/frontend_latest/no-source/node_modules/home-assistant-js-websocket/dist/socket.js (HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE)

Well, a 404 wouldn’t be coming from Caddy, it would come from your upstream. Your Caddyfile isn’t doing anything that would cause a 404.

so it works with caddy 2.6.4 but not 2.7.x would seem to indicate something in 2.7.x - I was thinking it doesn’t like something in the header

Okay, we’ve found the bug, we have a regression in v2.7.0 and v2.7.1 regarding websockets. We’ll make a v2.7.2 hotfix release shortly.

1 Like

glad it wasn’t me. Thanks.

ok d/l 2.7.2 and it’s fixed the error. Thanks.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.