Greetings,
When trying to view logs or execute shell, I am getting a websocket handshake error.
I am aware of the fact that the clock issue and I have checked multiple times than my clocks are synchronized on every container and the host OS. (the clock issue shouldn’t be causing a 404 anyway, but a 401). I wouldn’t post here I werent completely stumped. Thanks for any help in advance
My OS:
Ubuntu 14.04.4 LTS (4.2.0-42-generic)
Docker:
Docker version 1.12.0, build 8eab29e
The error itself in the rancher-agent container
time=“2016-08-11T23:10:46Z” level=“info” msg=“Connecting to proxy.” url="ws://10.0.2.15:8081/v1/connectbackend?token=eyJ
hbGciOiJSUzI1NiJ9.eyJleHAiOjE0NzA5NTczNDYsInN1YiI6ImNhdHRsZSIsImlzcyI6Imh0dHA6XC9cL2NhdHRsZS5pbyIsInJlcG9ydGVkVXVpZCI6Im
QxNzNkMzgxLTY1ZDgtNGY0YS1hMWNmLTBjZmYxNzU1ZTdmYiIsImlhdCI6MTQ3MDk1NzA0Niwia2lkIjoiZGVmYXVsdCJ9.VhD43pgBccEDKOr7Nu9hx2nAe
EZHgjDXOjeVkdFwA1Tdi3rKQ05UylUtMdtLe6lY-hrysjTyU7tVGUr8Hi3MymXRcgnTAfh41mF-eZhmEjuBV-WPZTWrylLoFoD-cZdB_n4bnSZkxU1ADpTM-
9ZD5KIjBG_-UKbbPmE-jLnOEGta1ryduzaK42LNFXnfiqnYZX6SJVaz_iY43wFwKMgmPSkyz0-9VPC1w5FOIZYREYqfsqPPlxmH-idiPPhNRRinuj9yxS5bH
y0CHfcquw72TTxZKfSwvebU5hG0WVwj47dB7flYFUZGsiQu-yQ4NRYqwqxVs5Vp5xRDfWsOpzCkgw"
time=“2016-08-11T23:10:46Z” level=“fatal” msg=“Failed to connect to proxy.” error=“websocket: bad handshake”
Here’s the error from the front end
WebSocket connection to ‘ws://localhost:8081/v1/logs/?token=eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NzA5NTY5MzAsInN1YiI6ImNhdHRsZSIsImxvZ3MiOnsiQ29udGFpbmVyIjoiZTgyNzllMWNkZWRmMDE2ZWY5Yzk0YjFmOWU0NjRlNzE4ZWRlNDc1Y2ZlMmRlNTY1NTljOTc0ZTdkOGNkM2EyNCIsIkxpbmVzIjo1MDAsIkZvbGxvdyI6dHJ1ZX0sImlzcyI6Imh0dHA6XC9cL2NhdHRsZS5pbyIsImhvc3RVdWlkIjoiZDE3M2QzODEtNjVkOC00ZjRhLWExY2YtMGNmZjE3NTVlN2ZiIiwiaWF0IjoxNDcwOTU2NjMwLCJraWQiOiJkZWZhdWx0In0.Yylz_1s9WA34QOM2299aFStBxWuXMSwdTiji5ZNA-hxq-38pnGxbbAng-qEe938G85ZMD3Kf8sF9lsO_liEwzmrZINeb5Q7nWyxThc2P031cCNQQUi2TycpytSPExuoV2VTjSCmjzbDVhPJYnkAIIth71mb1csOvknq_OF5qzH74UWpxMXZsKyRHIO0p8C4IFb2LRx2U7n0vvAVeulzoPA2r2ZauGiWSQTZUL-_B-bJGWR7Yg0Yjh1TzPhiL5onL6Hm2uVBjESJXN1VdcYMeblxUuDohj4VluV_4R01saEWGPKIdMZB4_TwmD3tV7Ly2MA5o5PABSrat0-gJc1063Q’ failed: Error during WebSocket handshake: Unexpected response code: 404