pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.61k stars 1.66k forks source link

WebSocket issue #2486

Closed runescapejon closed 3 years ago

runescapejon commented 3 years ago

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

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 commented 3 years ago

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/log@v1.8.0/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/gin@v1.6.3/context.go:161

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

parkervcp commented 3 years ago

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

Crinisus commented 3 years ago

yes

Crinisus commented 3 years ago

5997972e12.png891d80ca56.png

Crinisus commented 3 years ago

those go with the daemon debug error

runescapejon commented 3 years ago

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

runescapejon commented 3 years ago

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 commented 3 years ago

didn't fix it for me

DaneEveritt commented 3 years ago

@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 commented 3 years ago

I fixed it

Lele991 commented 3 years ago

I fixed it

how you fixed it?

chrispro-21 commented 3 years ago

I fixed it

please tell us on how

FurJorden commented 3 years ago

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

kshchukin commented 1 year ago

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 commented 7 months ago

@FurJorden ty a lot bro, you solved my problem