Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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 connection failed on community edition #3824

Closed
2 tasks done
svandeneertwegh opened this issue Feb 25, 2024 · 13 comments
Closed
2 tasks done

Websocket connection failed on community edition #3824

svandeneertwegh opened this issue Feb 25, 2024 · 13 comments

Comments

@svandeneertwegh
Copy link

Past Issues Searched

  • I have searched open and closed issues to make sure that the bug has not yet been reported

Issue is a Bug Report

  • This is a bug report and not a feature request, nor asking for self-hosted support

Using official Plausible Cloud hosting or self-hosting?

Self-hosting

Describe the bug

app-7a5f917ab82642c1…42aaea32.js?vsn=d:6 WebSocket connection to 'wss:///live/websocket?_csrf_token=X39ZCnwaKDAuBBQUETAuCSF…UBMB0e67tK-jA_ojlgIrKVd7BtfJKv&_mounts=0&_live_referer=undefined&vsn=2.0.0' failed:

Expected behavior

Succesful made websocket connections for small charts

Screenshots

Schermafbeelding 2024-02-25 om 11 06 40

Environment

- OS: Ubuntu 23.10
- Browser: Google chrome
- Browser Version: latest
@ruslandoga
Copy link
Contributor

ruslandoga commented Feb 25, 2024

👋 @svandeneertwegh

Can you please share the latest logs from docker compose logs plausible and your networking configurations (reverse proxies, cdns, etc.)?

@svandeneertwegh
Copy link
Author

plausible-1 | Loading plausible..
plausible-1 | Starting dependencies..
plausible-1 | Starting repos..
plausible-1 | create Plausible.Repo database if it doesn't exist
plausible-1 | create Plausible.IngestRepo database if it doesn't exist
plausible-1 | Creation of Db successful!
plausible-1 | Loading plausible..
plausible-1 | Starting dependencies..
plausible-1 | Starting repos..
plausible-1 | Running migrations for Elixir.Plausible.Repo
plausible-1 | Running migrations for Elixir.Plausible.IngestRepo
plausible-1 | Migrations successful!

@ruslandoga
Copy link
Contributor

What about Google Chrome console logs? Does it include any kind of reason for the connection failure?

@svandeneertwegh
Copy link
Author

chrome-plausible-logs

@ruslandoga
Copy link
Contributor

What about the "Console" tab?

@svandeneertwegh
Copy link
Author

chrome-plausible-logs2

@ruslandoga
Copy link
Contributor

Is there anything showed if you click on one of these log lines?

@svandeneertwegh
Copy link
Author

No when clicking on it it attempts to open the wss link.. but doesnt work.

@ruslandoga
Copy link
Contributor

ruslandoga commented Feb 25, 2024

I don't mean clicking on the link, but outside of it :) E.g. on the ➤ symbol.

@svandeneertwegh
Copy link
Author

Schermafbeelding 2024-02-25 om 11 28 25

@ruslandoga
Copy link
Contributor

Do you use any proxies?

@svandeneertwegh
Copy link
Author

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?

@ruslandoga
Copy link
Contributor

Most likely, yes :)

I'm going to move it to discussions since it doesn't seem to be an issue with Plausible itself.

@plausible plausible locked and limited conversation to collaborators Feb 25, 2024
@ruslandoga ruslandoga converted this issue into discussion #3826 Feb 25, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants