sshcode icon indicating copy to clipboard operation
sshcode copied to clipboard

report "version `GLIBCXX_3.4.20' not found"

Open fanzhi1977 opened this issue 5 years ago • 8 comments

I use sshcode in Macos,want to install vscode server to centos 7.5,report the following error: sent 1712186 bytes received 20 bytes 311310.18 bytes/sec total size is 955763838 speedup is 558.21 2019-04-30 19:23:14 INFO synced extensions in 7.344483678s 2019-04-30 19:23:14 INFO starting code-server... 2019-04-30 19:23:14 INFO Tunneling local port 26914 to remote port 36692 [email protected]'s password: /tmp/sshcode-code-server: /lib64/libstdc++.so.6: version GLIBCXX_3.4.20' not found (required by /tmp/sshcode-code-server) /tmp/sshcode-code-server: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by /tmp/sshcode-code-server) /tmp/sshcode-code-server: /lib64/libstdc++.so.6: version CXXABI_1.3.9' not found (required by /tmp/sshcode-code-server) 2019-04-30 19:23:30 FATAL error: code-server didn't start in time: context deadline exceeded`

fanzhi1977 avatar Apr 30 '19 11:04 fanzhi1977

full information is below: `✘ fanzhi@fanzhi-MBP  ~/vagrant/labs-elk-ansible  sshcode [email protected] 2019-04-30 19:23:04 INFO ensuring code-server is updated... [email protected]'s password:

  • mkdir -p /root/.local/share/code-server

  • cd /tmp

  • wget -N https://codesrv-ci.cdr.sh/latest-linux --2019-04-30 19:23:06-- https://codesrv-ci.cdr.sh/latest-linux 正在解析主机 codesrv-ci.cdr.sh (codesrv-ci.cdr.sh)... 104.27.132.26, 104.27.133.26, 2606:4700:30::681b:851a, ... 正在连接 codesrv-ci.cdr.sh (codesrv-ci.cdr.sh)|104.27.132.26|:443... 已连接。 已发出 HTTP 请求,正在等待回应... 200 OK 来自 codesrv-ci.cdr.sh 的 Cookie 尝试将域设置为 codesrv-ci.cdr.sh 长度:94698820 (90M) [application/octet-stream] 远程文件比本地文件 “latest-linux” 更老 -- 不获取。

  • '[' -f /tmp/sshcode-code-server ']'

  • rm /tmp/sshcode-code-server

  • ln latest-linux /tmp/sshcode-code-server

  • chmod +x /tmp/sshcode-code-server 2019-04-30 19:23:07 INFO syncing settings [email protected]'s password: building file list ... done

sent 329 bytes received 20 bytes 139.60 bytes/sec total size is 207024 speedup is 593.19 2019-04-30 19:23:09 INFO synced settings in 2.478132549s 2019-04-30 19:23:09 INFO syncing extensions [email protected]'s password: building file list ... done

sent 1712186 bytes received 20 bytes 311310.18 bytes/sec total size is 955763838 speedup is 558.21 2019-04-30 19:23:14 INFO synced extensions in 7.344483678s 2019-04-30 19:23:14 INFO starting code-server... 2019-04-30 19:23:14 INFO Tunneling local port 26914 to remote port 36692 [email protected]'s password: /tmp/sshcode-code-server: /lib64/libstdc++.so.6: version GLIBCXX_3.4.20' not found (required by /tmp/sshcode-code-server) /tmp/sshcode-code-server: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by /tmp/sshcode-code-server) /tmp/sshcode-code-server: /lib64/libstdc++.so.6: version CXXABI_1.3.9' not found (required by /tmp/sshcode-code-server) 2019-04-30 19:23:30 FATAL error: code-server didn't start in time: context deadline exceeded

fanzhi1977 avatar Apr 30 '19 11:04 fanzhi1977

try updating the packages on your server

SscSPs avatar Apr 30 '19 13:04 SscSPs

That tends to happen if you're running on an old linux distro, if you're using Ubuntu try a version >= 16.04

sreya avatar Apr 30 '19 15:04 sreya

We are left with no option but to use CentOS 7 for our development. It would be really good if this can be fixed.

srinathgs avatar May 02 '19 02:05 srinathgs

This is a problem with code-server not with sshcode itself, you could try opening an issue against that repo but I'm not sure it'll be fixed. I'll look into a workaround for Centos users

sreya avatar May 02 '19 16:05 sreya

I'll leave this open while I investigate

sreya avatar May 02 '19 16:05 sreya

Also seeing this trying to use on CentOS 7.

xgdgsc avatar Jul 17 '19 03:07 xgdgsc

It looks like the latest code-server actually works just fine! If I download https://github.com/cdr/code-server/releases/download/2.1523-vsc1.38.1/code-server2.1523-vsc1.38.1-linux-x86_64.tar.gz and copy the included code-server binary over the one downloaded by sshcode (~/.cache/sshcode/sshcode-server), then I'm able to use sshcode quite happily.

It only doesn't work with the version downloaded automatically by sshcode, so maybe updating that version will be enough to make sshcode work for CentOS users?

bitfield avatar Oct 12 '19 16:10 bitfield