Service was running fine for months and is running into WebSocket error all of a sudden.
See original GitHub issue⚠️ Please verify that this bug has NOT been raised before.
- I checked and didn’t find similar issue
🛡️ Security Policy
- I agree to have read this project Security Policy
📝 Describe your problem
My site has been up and running fine for months, but I recently noticed that I am running into the Websockets error again.
Cannot connect to the socket server. [Error: timeout] Reconnecting...
Using a Reverse Proxy? Check how to config it for WebSocket
I did make the changes required for nginx back when installing for the first time and didn’t make any changes to the nginx config since, at least I can’t remember. I just now copied the nginx settings from your link just in case, but no change I am afraid. Here’s what I’m running with:
server {
server_name status.mydomain.de;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:3001/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/status.mydomain.de/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/status.mydomain.de/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = status.mydomain.de) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name status.mydomain.de;
listen 80;
return 404; # managed by Certbot
}
Nothing in the nginx error log, nothing outstanding in the access log. Tried different browsers
Is there anything else which might block Websockets?
Environment:
- Docker
cat docker-compose.yml
version: '2.3'
services:
uptime-app:
container_name: uptime-app
image: louislam/uptime-kuma:1
restart: always
volumes:
- ./data:/app/data
ports:
- 3001:3001
🐻 Uptime-Kuma Version
Latest docker image
💻 Operating System and Arch
Ubuntu 20.04.4 LTS x86_64
🌐 Browser
Chromium, Firefox
🐋 Docker Version
Docker version 20.10.14, build a224086
🟩 NodeJS Version
Not that I know
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
[WARNING] data websocket error, restarting connection: no ...
I have searched the existing issues Current Behavior websocket connection ... run with all available coins +500 live, for 7 months with no ......
Read more >Websocket stopped receiving data all of a sudden - Random
No code changes. Websocket has been running for months fine. Last Thursday (yesterday) all of a sudden data stopped arriving.
Read more >WebSocket connection failed: Error during ... - Stack Overflow
I'm loading the client side JavaScript files using Grunt in the following order: dist: { src: [ public/bower_components/angular/angular.min.js, ...
Read more >Error with WebSocket - Microsoft Q&A
Hello I get the error: WebSocket connection to 'wss://localhost:54970/Dashboard.Server/' failed: Error in connection establishment: net::ERR_ ...
Read more >Troubleshooting Cloudflare 5XX errors
The error cause is not always found in the origin server error logs. Check logs of all load balancers, caches, proxies, or firewalls...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Good find, that TLS 1.3 sounds promising, I’ll definitely check this out and will report back! Coincidentally I am running Mattermost on a different server, so this is good to know anyway.
Edit: It doesn’t seem to be related to TLS 1.3 unfortunately. I turned it off and still can’t get through. In case someone wants to try as well, here’s what I did:
Edit2: I moved things over to a free Oracle Cloud Ubuntu instance, using Traefik instead of nginx. All up and running again, unfortunately this also means I can’t troubleshoot the original instance any longer -> Hence I need to close the case.
By the way, it looks to me that the free virtual server Oracle offers fits Uptime-Kuma well, as often one will want to monitor “outside in” but not spend money on firing up a dedicated VM with a different provider.
It may be a nginx issue. https://github.com/mattermost/mattermost-mobile/issues/4557