sshcode icon indicating copy to clipboard operation
sshcode copied to clipboard

{"error":"Exited unexpectedly"}

Open jperelli opened this issue 6 years ago • 5 comments

I get a blank screen. The window opens, but it has no content at all (not even menus or any ui thing)

I'm using ubuntu mate 19.04 with go version go1.10.4 linux/amd64

jperelli@coffee~ $ /home/jperelli/go/bin/sshcode [email protected]
2019-04-23 20:19:04 INFO	ensuring code-server is updated...
INFO  WebSocket closed / {"client":1,"code":1001}
INFO  Retrying shared process in 3s {"error":"Exited unexpectedly"}
INFO  Lost connection to shared process. Retrying in 3s.
+ mkdir -p /root/.local/share/code-server
+ cd /tmp
+ wget -N https://codesrv-ci.cdr.sh/latest-linux
--2019-04-23 20:19:18--  https://codesrv-ci.cdr.sh/latest-linux
Resolving codesrv-ci.cdr.sh (codesrv-ci.cdr.sh)... 104.27.133.26, 104.27.132.26, 2606:4700:30::681b:851a, ...
Connecting to codesrv-ci.cdr.sh (codesrv-ci.cdr.sh)|104.27.133.26|:443... connected.
HTTP request sent, awaiting response... 304 Not Modified
File ‘latest-linux’ not modified on server. Omitting download.

+ '[' -f /tmp/codessh-code-server ']'
+ rm /tmp/codessh-code-server
+ ln latest-linux /tmp/codessh-code-server
+ chmod +x /tmp/codessh-code-server
2019-04-23 20:19:18 INFO	syncing settings
sending incremental file list

sent 394 bytes  received 15 bytes  272.67 bytes/sec
total size is 329,108  speedup is 804.67
2019-04-23 20:19:19 INFO	synced settings in 1.071178972s
2019-04-23 20:19:19 INFO	syncing extensions
INFO  Starting shared process [9]... {"error":"Exited unexpectedly"}
sending incremental file list
WARN  stderr {"data":"(node:26933) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.\n"}
INFO  Retrying shared process in 3s {"error":"Exited unexpectedly"}
INFO  Lost connection to shared process. Retrying in 3s.

sent 1,095,124 bytes  received 5,376 bytes  146,733.33 bytes/sec
total size is 545,895,636  speedup is 496.04
2019-04-23 20:19:26 INFO	synced extensions in 8.255285033s
2019-04-23 20:19:26 INFO	starting code-server...
(node:27135) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
INFO  code-server v1.903-vsc1.33.1
INFO  Additional documentation: http://github.com/codercom/code-server
INFO  Initializing {"data-dir":"/root/.local/share/code-server","extensions-dir":"/root/.local/share/code-server/extensions","working-dir":"/root","log-dir":"/root/.cache/code-server/logs/20190423181928338"}
INFO  Starting webserver... {"host":"127.0.0.1","port":"10666"}
WARN  No certificate specified. This could be insecure.
WARN  Documentation on securing your setup: https://github.com/codercom/code-server/blob/master/doc/security/ssl.md
WARN  Launched without authentication.
INFO   
INFO  Started (click the link below to open):
INFO  http://localhost:10666/
INFO   
INFO  Starting shared process [1/5]...
INFO  Starting shared process [10]... {"error":"Exited unexpectedly"}
WARN  stderr {"data":"(node:27150) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.\n"}
INFO  WebSocket opened / {"client":1,"ip":"127.0.0.1"}
Error: ENOENT: no such file or directory, open '/home/travis/build/codercom/code-server/packages/server/build/web/favicon.ico'
INFO  WebSocket opened / {"client":2,"ip":"127.0.0.1"}
INFO  WebSocket closed / {"client":1,"code":1006}
INFO  Starting shared process [2/5]... {"error":"Exited unexpectedly"}
WARN  stderr {"data":"(node:27158) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.\n"}
INFO  Retrying shared process in 3s {"error":"Exited unexpectedly"}
INFO  Lost connection to shared process. Retrying in 3s.
INFO  WebSocket opened / {"client":3,"ip":"127.0.0.1"}
Error: ENOENT: no such file or directory, open '/home/travis/build/codercom/code-server/packages/server/build/web/favicon.ico'
WARN  stderr {"data":"(node:27201) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.\n"}
INFO  Starting shared process [11]... {"error":"Exited unexpectedly"}

jperelli avatar Apr 23 '19 18:04 jperelli

I'm seeing a /home/travis/build/c... in the log, maybe the build is having some hardcoded travis paths?

jperelli avatar Apr 23 '19 18:04 jperelli

That error message is a red-herring it shouldn't affect code-server's ability to start up. I'm not able to replicate this using a GCP instance running Ubuntu 19.04, would you mind ensuring that all code-server processes are killed and then try again?

sreya avatar Apr 30 '19 19:04 sreya

is is possible you're running out of memory on the Host? I ran into this when I tried to run sshcode on a smaller AWS EC2 host. I added some swap space and the problem went away. (the "machine" had 512MB mem, and I added a 8GB swap file) (on ubuntu)

xt0fer avatar May 01 '19 17:05 xt0fer

It might be good for us to update the README with some recommended specs to avoid such issues

sreya avatar May 03 '19 17:05 sreya

I can confirm, adding more memory as suggested by @xt0fer worked for me.

Also received a {"error":"Exited unexpectedly"} on a EC2 host with 512MB memory. Adding a 1GB swap file fixed the problem.

@sreya92 I would def. suggest to add this to the README - would safe some time 👍

kristianmitk avatar Jun 16 '19 13:06 kristianmitk