Theia Troubleshooting#

Theia stuck at loading screen#

Enable websocket in the reverse proxy. Check out jupyter's guide.

Theia stuck on loading screen on an iPad iOS.#

In my case, Theia is behind traefik and basic auth. Additionally, websocket is enabled. However, synology's reverse proxy is ignoring the authentication, resulting in a 401 unauthorized error...

My guess is iPad isn't sending the right commands with basic auth to the synology because the set jup works fine on Android and macOS. Gotta check whether iPad or Synology or Traefik is the cause.

No fix yet, will switch to forward auth instead.

Update: Found a post documenting the issue:

This issue also leads to very high CPU load and energy consumption because of the high frequency of retry attempts for the websocket connection (with a simple javascript). Also, no workaround seems to be possible to prevent this behaviour.

So, are there still no plans to implement this? All other browsers / devices except Safari and/or iOS support this.

192.168.1.146 - - [11/Apr/2020:12:17:24 +0000] "GET /services HTTP/1.1" 401 17 "-" "-" 216 "theia@docker" "-" 0ms
192.168.1.146 - - [11/Apr/2020:12:17:34 +0000] "GET /services HTTP/1.1" 401 17 "-" "-" 217 "theia@docker" "-" 0ms
192.168.1.146 - - [11/Apr/2020:12:17:44 +0000] "GET /services HTTP/1.1" 401 17 "-" "-" 218 "theia@docker" "-" 0ms
192.168.1.146 - - [11/Apr/2020:12:17:54 +0000] "GET /services HTTP/1.1" 401 17 "-" "-" 219 "theia@docker" "-" 0ms