coder / sshcode

Run VS Code on any server over SSH.
MIT License
5.74k stars 216 forks source link

failed to start #165

Closed LucaGerlich closed 4 years ago

LucaGerlich commented 4 years ago

sshcode crashes immediately after start. Im trying to run it on a remote Server with ubuntu 18.04. I'm sorry if thats a dumb question but i'm a total nooby.

`./sshcode root@xx.xxx.xxxxxx:xxxx 2020-02-21 01:46:11 INFO starting SSH master connection... 2020-02-21 01:46:12 ERROR failed to start SSH master connection: SSH master wasn't ready on time: SSH master process is not running 2020-02-21 01:46:12 INFO ensuring code-server is updated... ssh: Could not resolve hostname xx.xxx.xxx.xxx:xxxx: Name or service not known 2020-02-21 01:46:12 FATAL error: failed to update code-server: ---ssh cmd--- ssh root@xx.xxx.xxx.xxx:xxxx '/usr/bin/env bash -l' ---download script--- set -euxo pipefail || exit 1

[ "$(uname -m)" != "x86_64" ] && echo "Unsupported server architecture $(uname -m). code-server only has releases for x86_64 systems." && exit 1 pkill -f ~/.cache/sshcode/sshcode-server || true mkdir -p ~/.local/share/code-server ~/.cache/sshcode cd ~/.cache/sshcode curlflags="-o latest-linux" if [ -f latest-linux ]; then curlflags="$curlflags -z latest-linux" fi curl $curlflags https://codesrv-ci.cdr.sh/latest-linux [ -f ~/.cache/sshcode/sshcode-server ] && rm ~/.cache/sshcode/sshcode-server ln latest-linux ~/.cache/sshcode/sshcode-server chmod +x ~/.cache/sshcode/sshcode-server: exit status 255`

joshpetit commented 4 years ago

Did you find your fix? If so could you post it, I'm getting the same error.

Merith-TK commented 4 years ago

What is your host OS? the client?

joshpetit commented 4 years ago

Host OS is Ubuntu 18.04 x86_64, client OS is ubuntu 20.04 x86_64.

Merith-TK commented 4 years ago

what is the error you are getting? can you pose in a codeblock?

joshpetit commented 4 years ago

`2020-04-27 07:49:39 INFO starting SSH master connection... 2020-04-27 07:49:40 ERROR failed to start SSH master connection: SSH master wasn't ready on time: SSH master process is not running 2020-04-27 07:49:40 INFO ensuring code-server is updated... ssh: Could not resolve hostname 192.168.1.72:39431: Name or service not known 2020-04-27 07:49:40 FATAL error: failed to update code-server: ---ssh cmd--- ssh 192.168.1.72:39431 '/usr/bin/env bash -l' ---download script--- set -euxo pipefail || exit 1

[ "$(uname -m)" != "x86_64" ] && echo "Unsupported server architecture $(uname -m). code-server only has releases for x86_64 systems." && exit 1 pkill -f ~/.cache/sshcode/sshcode-server || true mkdir -p ~/.local/share/code-server ~/.cache/sshcode cd ~/.cache/sshcode curlflags="-o latest-linux" if [ -f latest-linux ]; then curlflags="$curlflags -z latest-linux" fi curl $curlflags https://codesrv-ci.cdr.sh/latest-linux [ -f ~/.cache/sshcode/sshcode-server ] && rm ~/.cache/sshcode/sshcode-server ln latest-linux ~/.cache/sshcode/sshcode-server chmod +x ~/.cache/sshcode/sshcode-server: exit status 255 `

Merith-TK commented 4 years ago

Could be because it's trying to use the latest code-server which doesnt support this... Try using the --code-server-path to point to a code-server 2 release

On Mon, Apr 27, 2020, 4:52 AM Josh Petit notifications@github.com wrote:

`2020-04-27 07:49:39 INFO starting SSH master connection... 2020-04-27 07:49:40 ERROR failed to start SSH master connection: SSH master wasn't ready on time: SSH master process is not running 2020-04-27 07:49:40 INFO ensuring code-server is updated... ssh: Could not resolve hostname 192.168.1.72:39431: Name or service not known 2020-04-27 07:49:40 FATAL error: failed to update code-server: ---ssh cmd--- ssh 192.168.1.72:39431 '/usr/bin/env bash -l' ---download script--- set -euxo pipefail || exit 1

[ "$(uname -m)" != "x86_64" ] && echo "Unsupported server architecture $(uname -m). code-server only has releases for x86_64 systems." && exit 1 pkill -f ~/.cache/sshcode/sshcode-server || true mkdir -p ~/.local/share/code-server ~/.cache/sshcode cd ~/.cache/sshcode curlflags="-o latest-linux" if [ -f latest-linux ]; then curlflags="$curlflags -z latest-linux" fi curl $curlflags https://codesrv-ci.cdr.sh/latest-linux [ -f ~/.cache/sshcode/sshcode-server ] && rm ~/.cache/sshcode/sshcode-server ln latest-linux ~/.cache/sshcode/sshcode-server chmod +x ~/.cache/sshcode/sshcode-server: exit status 255 `

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cdr/sshcode/issues/165#issuecomment-619933933, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPQOXSVZ2FGPKVDKSOBEILROVWWDANCNFSM4KYZ47HA .