Closed semaf closed 1 month ago
Hey @semaf
let me check if I can reproduce this.
Just to confirm @semaf that the error/warning in the log of tailscale that is starting are not the cause of your problem.
Reference log from a new container I created also contains:
tailscale-whoami-proxy-1 | 2024/09/25 15:04:12 control: client.Login(0)
tailscale-whoami-proxy-1 | 2024/09/25 15:04:12 control: doLogin(regen=false, hasUrl=false)
tailscale-whoami-proxy-1 | 2024/09/25 15:04:12 health(warnable=warming-up): error: Tailscale is starting. Please wait.
tailscale-whoami-proxy-1 | boot: 2024/09/25 15:04:12 [warning] failed to symlink socket: file exists
tailscale-whoami-proxy-1 | To interact with the Tailscale CLI please use `tailscale --socket="/tmp/tailscaled.sock"`
The 'error' is telling that Tailscale is still starting up, it resumes when Tailscale is started. The 'warning' is not an error, but telling that the file Tailscale wishes to symlink already exists (because I created it already). This was because previous versions of Tailscale did not create the symlink, see line 18 in https://github.com/hollie/tailscale-caddy-proxy/blob/main/image/Dockerfile.
From the input you delivered it is not clear to me what is wrong with your setup. You state 'SSL can not be served'. How are you trying to access the service?
At the first connection to the service you should see in your tailscale logs the request to generate the SSL certificate.
tailscale-whoami-proxy-1 | 2024/09/25 15:04:21 cert("tailscale-example.tailnet-XXXX.ts.net"): starting async renewal
tailscale-whoami-proxy-1 | 2024/09/25 15:04:21 cert("tailscale-example.tailnet-XXXX.ts.net"): already had ACME account.
tailscale-whoami-proxy-1 | 2024/09/25 15:04:22 cert("tailscale-example.tailnet-XXXX.ts.net"): starting SetDNS call...
tailscale-whoami-proxy-1 | 2024/09/25 15:04:34 cert("tailscale-example.tailnet-XXXX.ts.net"): did SetDNS
tailscale-whoami-proxy-1 | 2024/09/25 15:04:36 cert("tailscale-example.tailnet-XXXX.ts.net"): requesting cert...
tailscale-whoami-proxy-1 | 2024/09/25 15:04:36 cert("tailscale-example.tailnet-XXXX.ts.net"): got cert
Best regards, Lieven
I got the issue after I check the Caddyfile, its here
TS_TAILNET=tailscale-example.tailxxxx
This should be
TS_TAILNET=tailxxxx
and now its working.
Good to hear that you found the issue and thanks for reporting back!
Hey,
Thank you very much for the great solution. I was testing and had already the first issues with SSL :) I am not familiar with caddy and learning docker..
I see in the log on every start of the container two errors:
tailscale-whoami-proxy-1 | 2024/09/20 14:09:40 health(warnable=wantrunning-false): error: Tailscale is stopped.
tailscale-whoami-proxy-1 | boot: 2024/09/20 14:09:40 [warning] failed to symlink socket: file exists
tailscale log as below:
Port 41971 is the only port to call by browser.
docker-compoyse.yml