Skip to content

Websocket connection failed on community edition #3824

Closed

Description

@svandeneertwegh

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

Activity

  1. ruslandoga commented on Feb 25, 2024

    @ruslandoga
    Contributor

    👋 @svandeneertwegh

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

  2. svandeneertwegh commented on Feb 25, 2024

    @svandeneertwegh
    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!

  3. ruslandoga commented on Feb 25, 2024

    @ruslandoga
    Contributor

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

  4. svandeneertwegh commented on Feb 25, 2024

    @svandeneertwegh
    Author

    chrome-plausible-logs

  5. ruslandoga commented on Feb 25, 2024

    @ruslandoga
    Contributor

    What about the "Console" tab?

  6. svandeneertwegh commented on Feb 25, 2024

    @svandeneertwegh
    Author

    chrome-plausible-logs2

  7. ruslandoga commented on Feb 25, 2024

    @ruslandoga
    Contributor

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

  8. svandeneertwegh commented on Feb 25, 2024

    @svandeneertwegh
    Author

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

  9. ruslandoga commented on Feb 25, 2024

    @ruslandoga
    Contributor

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

  10. svandeneertwegh commented on Feb 25, 2024

    @svandeneertwegh
    Author
    Schermafbeelding 2024-02-25 om 11 28 25
  11. ruslandoga commented on Feb 25, 2024

    @ruslandoga
    Contributor

    Do you use any proxies?

  12. svandeneertwegh commented on Feb 25, 2024

    @svandeneertwegh
    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?

  13. ruslandoga commented on Feb 25, 2024

    @ruslandoga
    Contributor

    Most likely, yes :)

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

  14. locked and limited conversation to collaborators on Feb 25, 2024
  15. converted this issue into a discussion #3826 on Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions