What is the problem?
I'm getting very frequent "Server is offline" really annoying modals, or the tabs change back to "Temperature", all this very frequently (usually after a few minutes).
What did you already try to solve it?
Updating octoprint/plugins (apt update/upgrade too) and it didn't help.
Complete Logs
Browser console says:
Firefox can’t establish a connection to the server at wss://octoprint.xxx/sockjs/523/msv14e1l/websocket. packed_libs.js:1206:23008
GETwss://octoprint.xxx/sockjs/229/4i5f0n5n/websocket
[HTTP/1.1 403 Forbidden 85711ms]
Firefox can’t establish a connection to the server at wss://octoprint.xxx/sockjs/229/4i5f0n5n/websocket. packed_libs.js:1206:23008
The connection to https://octoprint.xxx/sockjs/051/umsoeqwh/eventsource was interrupted while the page was loading. packed_libs.js:1206:29834
The connection to https://octoprint.xxx/sockjs/051/f1ml2idk/eventsource was interrupted while the page was loading. eventsource.js:18
The connection to https://octoprint.xxx/sockjs/523/af1rlo0n/eventsource was interrupted while the page was loading. packed_libs.js:1206:29834
Connected to the server packed_core.js:702:350
Triggering reconnect on all view models packed_core.js:707:67
Server (re)connect processed
All I have in .octoprint/logs/octoprint.log
is lines like that:
2020-08-17 11:14:14,665 - tornado.access - WARNING - 403 GET /sockjs/008/g0isk1vx/websocket (192.168.10.1) 4.28ms
Additional information about your setup
Octoprint: 1.4.2
Octopi: 0.15.0, running on Raspberry Pi 3 Model B Plus Rev 1.3
Plugins (according to about/plugins licenses)
Bed Visualizer
Cost Estimation
Filament Manager
Firmware Updater
Fullscreen Plugin
OctoFlat Theme
Octolapse
Print History Plugin
Printer Stats
PrintTimeGenius Plugin
Pushover
TouchUI
Webcam Tab
Nginx vhost acting as proxy:
upstream "octoprint" {
server 192.168.10.182;
}
server {
listen 443;
listen [::]:443;
access_log /var/log/nginx/octoprint.access.log;
error_log /var/log/nginx/octoprint.error.log error;
ssl on;
ssl_certificate /srv/letsencrypt/certs/lan.xxx/fullchain.pem;
ssl_certificate_key /srv/letsencrypt/certs/lan.xxx/privkey.pem;
root /usr/var/www/html;
index index.php index.html index.htm index.nginx-debian.html;
server_name octoprint.xxx;
location / {
proxy_http_version 1.1;
client_max_body_size 50M;
proxy_pass http://octoprint/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /sockjs {
proxy_pass http://octoprint;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Any ideas on what could causes that or to fix it ?