Skip to content
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 issue #2486

Closed
runescapejon opened this issue Oct 12, 2020 · 15 comments
Closed

WebSocket issue #2486

runescapejon opened this issue Oct 12, 2020 · 15 comments

Comments

@runescapejon
Copy link

runescapejon commented Oct 12, 2020

Background (please complete the following information):
I was upgrading between 0.7 to 1.0 following the guide. Until the issue that I can come up. It's all coming from connection issues from something. Base on my research the Laravel log is spamming with error's that are coming from curl. I am unsure. I don't know what to do in terms of fixing this. I tried changing the node port and copy/paste config then reboot wings. Didn't work. Also, tried changing the URL that didn't work. I'm on OVH so the firewall is pretty much not a problem I even check to see what was wrong with it but it seems that the firewall was off the whole time so that wasn't an issue. I am on Cloudflare but it wasn't an issue before on panel 0.7. That I even tried switching between Behind Proxy and not Behind Proxy nothing had work. and I don't understand where I am doing wrong when I am updating from 7 to 1.0 Any idea?

Laravel Log: https://hastebin.com/cuharosoku.less - Contain errors this stacktrace
Wings Diagnostics: https://ptero.co/canimupiho - doesn't seem to be a wings issue
Browser console: https://gyazo.com/fd3b3a13f8a997679fea5744062298c2 - Contains 504 error

  • Panel or Daemon: 1.0
  • Version of Panel/Daemon: 1.0
  • Server's OS: Ubuntu
  • Your Computer's OS & Browser: Windows 10 and Google Chrome

Describe the bug
A clear and concise description of what the bug is.
Please provide additional information too, depending on what you have issues with:
Panel: php -v (the php version in use). PHP 7.4.10
Daemon: uname -a and docker info (your kernel version and information regarding docker)
Linux ns508205 4.15.0-111-generic #112-Ubuntu SMP Thu Jul 9 20:32:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
https://pastebin.com/raw/8yXqKmpP
To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Sadly I don't know how to reproduce. I as was simply following the guide once I was finish with both Upgrading panel and Wings 1.0 from Migrating to 0.7 the error regarding about Webshocket came up.
Expected behavior
A clear and concise description of what you expected to happen. If applicable, add screenshots or a recording to help explain your problem.
Unable to see the console output or interact with it (image above)

@Crinisus
Copy link

Crinisus commented Oct 12, 2020

We are having the same issue on a Debian 10 system
Linux pterodactyl-debian 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux
getting 500s on the websocket

ERROR: [Oct 12 00:49:56.181] encountered HTTP/500 error while handling request error=websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header error_id=0459d337-e984-4e9b-be00-2e9b93f1a9de server=7a738c1f-0f57-407e-a33d-35ac5caae497

Stacktrace:
github.com/apex/log.(*Entry).Error
        /home/runner/go/pkg/mod/github.com/apex/[email protected]/entry.go:96
github.com/pterodactyl/wings/router.(*RequestError).AbortWithStatus
        /home/runner/work/wings/wings/router/error.go:76
github.com/pterodactyl/wings/router.(*RequestError).AbortWithServerError
        /home/runner/work/wings/wings/router/error.go:97
github.com/pterodactyl/wings/router.getServerWebsocket
        /home/runner/work/wings/wings/router/router_server_ws.go:17
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161

am unable to describe how to reproduce other than following upgrade guide from 0.7 to 1.0

@parkervcp
Copy link
Member

have you logged out and back in on the panel yet?

@Crinisus
Copy link

yes

@Crinisus
Copy link

5997972e12.png891d80ca56.png

@Crinisus
Copy link

those go with the daemon debug error

@runescapejon
Copy link
Author

runescapejon commented Oct 12, 2020

Yes, I have tried to log out and log in back in. I even tried using google incognito, nothing at work.

@runescapejon
Copy link
Author

It appears that Wings was bugging out, even if I was to systemctl stop wings that the port was still open in somewhat. I'd run the command to kill this process

sudo kill -9 `sudo lsof -t -i:8080`

and then

systemctl start wings

My panel is now working. I don't know what happen that made WebSocket bug out. Feel free to close this issue, or to leave it open for a possible bug in Websocket.

@Crinisus
Copy link

didn't fix it for me

@DaneEveritt
Copy link
Member

@SmallEngineMechanic your issue is completely unrelated to this. You likely have a firewall or service running that is stripping required headers out of the request, note the:

the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header

That is completely different than what this issue is about.

@Crinisus
Copy link

I fixed it

@Lele991
Copy link

Lele991 commented Dec 12, 2020

I fixed it

how you fixed it?

@chrispro-21
Copy link

I fixed it

please tell us on how

@FurJorden
Copy link

in my case the problem was with nginx proxy, you mus in the wings domain enable the "Websockets Support"
image

@kshchukin
Copy link

Hello
Have a similar problem with panel
Although, wss in nginx is enabled but with empty proxy_pass
Снимок экрана 2022-12-11 в 20 16 48
Снимок экрана 2022-12-11 в 20 17 01
Where is my mistake?

@arturgoms
Copy link

@FurJorden ty a lot bro, you solved my problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants