-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
websocket inconsistency #1858
Comments
I have also since tried reverting back to traefik:v1.2.1 where it sounds like sockets were supposed to be working and fixed other peoples' problems. I simply stopped, rm'ed, and restarted this image label, otherwise same setup. Home-assistant now magically works. Interestingly portainer (which I've seen others ask about) doesn't work now, but did for me in v1.3.3. This is what the chrome debugger has to say, but didn't see anything in traefik log.
Since there seems to be inconsistencies between the two different apps working I'm suspicious of traefik. |
I'm seeing the exact same behaviour with the following traefik versions:
However it does work for the following!
So if looking to narrow down what is breaking the ws request is somewhere between v1.3.1 and v1.3.2. Also worth noting that at v1.3.1, both Home Assistant and Portainer work just fine. |
In a quick look at the change log, the only thing that looks like it could be relevant would be #1782, however I have no clue if that's actually the culprit. Trying to spin up my dev environment again to test... |
Logs from my test for the failed version (f99f3b9)
And for the working version (fe4d0e9):
They look just the same... This is with debug on and logging at debug level. I'm not sure how to view the logs from oxy since it looks like the only change would be if |
@ViViDboarder thanks for the hard work in bisecting and narrowing down the cause of the problem. 👏 Likely related to containous/oxy#17 then. /cc @juliens |
Any idea when will the next version be released? We had to downgrade to 1.2.3 due to this issue, and that version freezes when our swarm has too many stacks on it, forcing us to restart the service. |
@Korrd before release we need to fix 😉 (a PR coming soon). Seems you have another problem (freezes with swarm), come explain your problem on the Traefik community Slack channel. |
Cool. Thanks! I'll give The issue we are having with 1.2.3 occurs when we provision or deprovision many stacks at a time, some of the services from each stack having traefik labels. I'm still doing some research, and will present a reproducible case once I can properly pinpoint it. |
I can also confirm that using 1.3.1 fixes the problem (no need to go down to 1.2.X) |
closed by #1896 |
Do you want to request a feature or report a bug?
bug
What did you do?
I first tried to get support on stackoverflow, but I think there's something else going on.
Post here for ref, but I'll restate below
https://stackoverflow.com/questions/44981861/websockets-in-traefik-opening-handshake-timed-out
I'm trying to get home-assistant in docker running behind traefik and I think I've had similar issues with other apps using websockets in the past (linuxserver/unifi controller and https://github.com/Division42LLC/division42llc-dotnet-webca/issues/2). The front page loads but when I try to login it just says connecting... and keeps spinning.
I open up the debugger in chrome and see this:
WebSocket connection to 'ws://home-assistant.docker.int.xxx.com/api/websocket' failed: WebSocket opening handshake timed out
If I pass the port through directly to the host (i.e. http://docker.int.xxx.com:8123) it works.
What did you expect to see?
websockets pass through successfully for app to work
What did you see instead?
page loads but no connection to backend through websocket
Output of
traefik version
: (What version of Traefik are you using?)What is your environment & configuration (arguments, toml, provider, platform, ...)?
Docker in a Photon VM on esxi 5.5
Version: 1.13.1 API version: 1.26 (minimum version 1.12) Go version: go1.8.1 Git commit: 092cba3 Built: Fri May 5 02:08:33 2017 OS/Arch: linux/amd64
If applicable, please paste the log output in debug mode (
--debug
switch)The text was updated successfully, but these errors were encountered: