When I try to register a rancher-agent v2.2.3 against a rancher-server v2.2.3 the rancher-agent can’t register and gives the following error:
time=“2019-05-20T15:19:00Z” level=info msg=“Connecting to proxy” url=“wss://rancher../v3/connect/register”
time=“2019-05-20T15:19:00Z” level=error msg=“Failed to connect to proxy” error=“websocket: bad handshake”
time=“2019-05-20T15:19:00Z” level=error msg=“Failed to connect to proxy” error=“websocket: bad handshake”
Have tried that with rancher-server behind traefik as reverse proxy and rancher-server with exposed ports from docker. Certificate is a valid lets encrypt wildcard certificate.
Any idea how I can debug that?
With this method I can point the FQDN rancher.example.tld either to 192.168.1.42 or the traefik ip address. It’s for testing purposes. I would prefer to only expose traefik
Did you have any luck with this configuration? I’m having a similar issue. I have Rancher behind a traefik instance, configured per the docs, but logs are filled with Error dialing \"<rancher_url>\": websocket: bad handshake with resp: 200 200 OK". I can access the GUI just fine through the same traefik instance, including viewing logs.
The way I finally got some help on another issue was when I found something new/odd happening that gave a different symptom I tossed the question over in their Slack and eventually I hit on an odd enough error message and found it.
Granted, I found the solution to one error that’s going to bite me later, so I’ll still be trying that cycle at least one more time to get things fully working.