Repository navigation
Websocket connection failed on community edition #3826
Replies: 15 comments 7 replies
|
π @svandeneertwegh Can you please share the latest logs from docker compose logs plausible and your networking configurations (reverse proxies, cdns, etc.)? |
|
plausible-1 | Loading plausible.. |
|
What about Google Chrome console logs? Does it include any kind of reason for the connection failure? |
|
What about the "Console" tab? |
|
Is there anything showed if you click on one of these log lines? |
|
No when clicking on it it attempts to open the wss link.. but doesnt work. |
|
I don't mean clicking on the link, but outside of it :) E.g. on the β€ symbol. |
|
Do you use any proxies? |
|
I use nginx and use the tracker /script.js proxied. Maybe i need to add some websocket stuff to the nginx from the stats server? |
|
Most likely, yes :) I'm going to move it to discussions since it doesn't seem to be an issue with Plausible itself. |
Plausible with Plesk + NGINX + WS (Websocket) ErrorFor all those who run the Plausible CE version on a server with Plesk, here is the way to get WS running in Plesk.
The dashboard should now work with Websocket. When copying the Docker rules, make sure that the port is correct if you have specified a different one and that the IP address is 0.0.0.0. Do not make any changes to the vHost template directly, these will be overwritten by Plesk. |
|
Just in case anyone else runs into this, if you have a location directive for At least that's what it took on my setup, not entirely sure why though, perhaps it has to do with other flags I have set. |







I've solved it.
I added this:
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
To the location / block in nginx vhost where proxy_pass is set.
With the above setting active it does then support websockets.