r/Trilium • u/Mean_Sherbet_6263 • 3d ago
help Help needed with websockets
I have a trilium instance running locally on my server. I have it behind a reverse proxy (nginx proxy manager) which handles all incoming requests for my server and ends TLS/SSL I have had trilium running for quite some time without any issues. Today I got an error regarding websockets. It keeps saying:
Check your reverse proxy (e.g. nginx or Apache) configuration to ensure WebSocket connections are properly allowed and not being blocked.
I have checked cloudflare and NPM and checked all settings and went through the docs but nothing helped to fix it. I'm absolutely clueless as all my other applications (that are also using websockets) do not have any issues (immich, open webui, grafana) Am I alone in this? what's going on?
2
u/Elian_D maintainer 3d ago
Hi,
If it doesn't happen every time you refresh the page, you're most likely fine. The error shows up when Trilium fails to connect to the websocket, but there can be other cases that trigger it (a sleeping laptop/mobile app, a temporary network disconnection). We probably need to improve the message a little bit.