code-server icon indicating copy to clipboard operation
code-server copied to clipboard

Blank Page after Login with HTTPS

Open s94285 opened this issue 7 years ago • 21 comments

  • code-server version: 2.1650-vsc1.39.2
  • OS Version: Ubuntu 16.04 under Windows 10 subsystem of Linux

Description

I got a blank screen after login with HTTPS enabled, but everything works well without HTTPS.

Steps to Reproduce

Command : ~/code-server2.1650-vsc1.39.2-linux-x86_64/code-server --host 192.168.2.200 --port 20080 --cert /etc/letsencrypt/live/s94285vscode.ddns.net/fullchain.pem --cert-key /etc/letsencrypt/live/s94285vscode.ddns.net/privkey.pem --verbose -s --log trace

Output : info Server listening on https://192.168.2.200:20080 info - Password is fa7271ff44002589737f939e info - To use your own password, set the PASSWORD environment variable info - To disable use --auth none info - Using provided certificate and key for HTTPS

Then open browser and login.

Trace from Chrome's console

workbench.web.api.js:1460 TRACE [remote-connection][Management ][813ed…][initial][s94285vscode.ddns.net:80] 1/6. invoking socketFactory.connect(). workbench.web.api.js:1460 TRACE [remote-connection][Management ][813ed…][initial][s94285vscode.ddns.net:80] 2/6. socketFactory.connect() was successful. workbench.web.api.js:1460 TRACE [remote-connection][Management ][813ed…][initial][s94285vscode.ddns.net:80] 3/6. sending AuthRequest control message. workbench.web.api.js:1460 TRACE [remote-connection][Management ][813ed…][initial][s94285vscode.ddns.net:80] 4/6. received SignRequest control message. workbench.web.api.js:1460 TRACE [remote-connection][Management ][813ed…][initial][s94285vscode.ddns.net:80] 5/6. sending ConnectionTypeRequest control message. workbench.web.api.js:1460 TRACE [remote-connection][Management ][813ed…][initial][s94285vscode.ddns.net:80] 6/6. handshake finished, connection is up and running after 563 ms! workbench.web.api.js:1460 INFO [remote-connection][Management ][813ed…][reconnect] starting reconnecting loop. You can get more information with the trace log level. workbench.web.api.js:1460 INFO [remote-connection][Management ][813ed…][reconnect] waiting for 5 seconds before reconnecting... workbench.web.api.js:1460 INFO [remote-connection][Management ][813ed…][reconnect] resolving connection... workbench.web.api.js:1460 INFO [remote-connection][Management ][813ed…][reconnect] connecting to s94285vscode.ddns.net:80... workbench.web.api.js:1460 TRACE [remote-connection][Management ][813ed…][reconnect][s94285vscode.ddns.net:80] 1/6. invoking socketFactory.connect(). workbench.web.api.js:1605 WebSocket connection to 'wss://s94285vscode.ddns.net/?reconnectionToken=813ed4cd-4e00-4373-8169-decf8b45ce94&reconnection=true&skipWebSocketFrames=false' failed: WebSocket opening handshake timed out create @ workbench.web.api.js:1605 connect @ workbench.web.api.js:1606 (anonymous) @ workbench.web.api.js:1606 d @ workbench.web.api.js:1606 h @ workbench.web.api.js:1608 u @ workbench.web.api.js:1609 _reconnect @ workbench.web.api.js:1615 _runReconnectingLoop @ workbench.web.api.js:1613 workbench.web.api.js:1460 ERR [remote-connection][Management ][813ed…][reconnect][s94285vscode.ddns.net:80] socketFactory.connect() failed. Error: workbench.web.api.js:1460 ERR Error: WebSocket close with status code 1006 at WebSocket. (workbench.web.api.js:1605) workbench.web.api.js:1460 INFO [remote-connection][Management ][813ed…][reconnect] A temporarily not available error occured while trying to reconnect, will try again... workbench.web.api.js:1460 TRACE Error: WebSocket close with status code 1006 at WebSocket. (workbench.web.api.js:1605) workbench.web.api.js:1460 INFO [remote-connection][Management ][813ed…][reconnect] waiting for 5 seconds before reconnecting... workbench.web.api.js:1460 INFO [remote-connection][Management ][813ed…][reconnect] resolving connection... workbench.web.api.js:1460 INFO [remote-connection][Management ][813ed…][reconnect] connecting to s94285vscode.ddns.net:80... workbench.web.api.js:1460 TRACE [remote-connection][Management ][813ed…][reconnect][s94285vscode.ddns.net:80] 1/6. invoking socketFactory.connect(). workbench.web.api.js:1460 ERR [remote-connection] The time limit has been reached for a connection. Error: workbench.web.api.js:1460 ERR Error: Time limit reached at workbench.web.api.js:1615 workbench.web.api.js:1460 INFO [remote-connection][Management ][813ed…][reconnect] A network error occured while trying to reconnect, will try again... workbench.web.api.js:1460 TRACE Error: Time limit reached at workbench.web.api.js:1615 workbench.web.api.js:1460 INFO [remote-connection][Management ][813ed…][reconnect] waiting for 10 seconds before reconnecting...

s94285 avatar Oct 28 '19 19:10 s94285

Hi @Eternity714 - if you're seeing issues, please open a new bug report ticket and fill out the template. That'll help us help you faster! Thanks!

jsjoeio avatar Apr 01 '21 16:04 jsjoeio