Websocket connection failed on community edition #3826
-
Beta Was this translation helpful? Give feedback.
Replies: 14 comments 6 replies
-
Can you please share the latest logs from docker compose logs plausible and your networking configurations (reverse proxies, cdns, etc.)? |
Beta Was this translation helpful? Give feedback.
-
plausible-1 | Loading plausible.. |
Beta Was this translation helpful? Give feedback.
-
What about Google Chrome console logs? Does it include any kind of reason for the connection failure? |
Beta Was this translation helpful? Give feedback.
-
What about the "Console" tab? |
Beta Was this translation helpful? Give feedback.
-
Is there anything showed if you click on one of these log lines? |
Beta Was this translation helpful? Give feedback.
-
No when clicking on it it attempts to open the wss link.. but doesnt work. |
Beta Was this translation helpful? Give feedback.
-
I don't mean clicking on the link, but outside of it :) E.g. on the ➤ symbol. |
Beta Was this translation helpful? Give feedback.
-
Do you use any proxies? |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
Most likely, yes :) I'm going to move it to discussions since it doesn't seem to be an issue with Plausible itself. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
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.