Skip to content

1.408-vsc1.32.0 report error : TypeError: Path must be a string. #351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fnoopv opened this issue Mar 27, 2019 · 8 comments
Closed

1.408-vsc1.32.0 report error : TypeError: Path must be a string. #351

fnoopv opened this issue Mar 27, 2019 · 8 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@fnoopv
Copy link

fnoopv commented Mar 27, 2019

  • code-server version:
$code-server --version 
1.408-vsc1.32.0
  • OS Version:
CentOS 7.3

Description

update 1.32.0-310to1.408-vsc1.32.0,error report:

$./code-server /home/code-server/workspace -h 127.0.0.1 -p 8444 --cert /home/ssl/code/cert.crt --cert-key /home/ssl/code/cert.key --allow-http --password=Secret8866.
ERROR { TypeError: Path must be a string. Received true
    at assertPath (path.js:28:11)
    at Object.resolve (path.js:1168:7)
    at /home/travis/build/codercom/code-server/packages/server/out/cli.js:340:50624
    at <anonymous>
  [stack]: 'TypeError: Path must be a string. Received true\n    at assertPath (path.js:28:11)\n    at Object.resolve (path.js:1168:7)\n    at /home/travis/build/codercom/code-server/packages/server/out/cli.js:340:50624\n    at <anonymous>',
  [message]: 'Path must be a string. Received true' }
*** Error in `./code-server': free(): invalid pointer: 0x00007f69b98651c0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x81489)[0x7f69b951f489]
./code-server(_ZN4node5StartEiPPc+0x3d9)[0x858a89]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f69b94c03d5]
./code-server(_start+0x29)[0x81e7b9]
======= Memory map: ========
00400000-01fdf000 r-xp 00000000 fd:01 526141                             /home/code-server/code-server
021df000-021e0000 r--p 01bdf000 fd:01 526141                             /home/code-server/code-server
021e0000-021fa000 rw-p 01be0000 fd:01 526141                             /home/code-server/code-server
021fa000-02210000 rw-p 00000000 00:00 0 
03c3b000-0420c000 rw-p 00000000 00:00 0                                  [heap]
......
......

Steps to Reproduce

  1. get binary package
    wget https://github.com/codercom/code-server/releases/download/1.408-vsc1.32.0/code-server1.408-vsc1.32.0-linux-x64.tar.gz
  2. unzip package
    tar -xvzf code-server1.408-vsc1.32.0-linux-x64.tar.gz
  3. replace code-server binary
    cp code-server1.408-vsc1.32.0-linux-x64/code-server code-server/
  4. start code-server
    ./code-server /home/code-server/workspace -h 127.0.0.1 -p 8444 --cert /home/ssl/code/cert.crt --cert-key /home/ssl/code/cert.key --allow-http --password=Secret8866.
  5. then ,it report error
@fnoopv fnoopv added the bug Something isn't working label Mar 27, 2019
@mengjuleu
Copy link

Hi,
Sorry for replying things that's unrelated to your issue.

How do you solve the problem running code-server binary on CentOS ?

code-server: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by code-server)
code-server: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by code-server)

@fnoopv
Copy link
Author

fnoopv commented Mar 27, 2019

Hi,
Sorry for replying things that's unrelated to your issue.

How do you solve the problem running code-server binary on CentOS ?

code-server: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by code-server)
code-server: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by code-server)

use strings /usr/lib64/libstdc++.so.6|grep GLIBCXX query GLIBCXX's include version,
you should update your gcc version,newer gcc will provide GLIBCXX high version,

@5hay
Copy link

5hay commented Mar 27, 2019

Same error when code-server is started via Docker.

Ubuntu 18.04 x64, latest Docker version.

@fnoopv
Copy link
Author

fnoopv commented Mar 27, 2019

Same error when code-server is started via Docker.

Ubuntu 18.04 x64, latest Docker version.

$ find / -name libstdc++.so.6
......
$strings /path/to/libstdc++.so.6 | grep GLIBCXX

it will show all GLIBCXX's version, if not your want, you need newer libstdc++.so, because libstdc++.so.6' is a soft connection with libstdc++.so`. i will update gcc , Because the new version will provide a new version of libstdc++.so
Above are guesses, because I am not using ubuntu now, you can try it

@kmahyyg
Copy link

kmahyyg commented Mar 27, 2019

GLIBCXX 3.4 to 3.4.25.

Same error, running on Arch Linux latest.

Error occurs only when append --cert --cert-key Params.

@kylecarbs
Copy link
Member

Will fix.

@kylecarbs kylecarbs self-assigned this Mar 27, 2019
@kylecarbs kylecarbs added this to the March 2019 milestone Mar 27, 2019
@wuzzapcom
Copy link

Have you updated docker image with this fix?
Here is what I get right now:

> docker run -t -p 8443:8443 -v "${PWD}:/root/project" codercom/code-server code-server --port 8443 --cert "certs/vscode-cert.crt" --cert-key="certs/vscode-cert.key"
Unable to find image 'codercom/code-server:latest' locally
latest: Pulling from codercom/code-server
e58ad9fd24ca: Already exists
0a4c669d2dea: Already exists
ab60767ef52b: Already exists
8cc3b738fbea: Already exists
3fa26e854312: Already exists
dec824975a6a: Already exists
5f4dc2891447: Already exists
efba7b779ad8: Already exists
Digest: sha256:a5a8d639e412d91e7caa1df6652dc1696c3cb838cf7afcd064968bd757b8eebc
Status: Downloaded newer image for codercom/code-server:latest
ERROR { TypeError: Path must be a string. Received true
    at assertPath (path.js:28:11)
    at Object.resolve (path.js:1168:7)
    at /src/packages/server/out/cli.js:325:50620
    at <anonymous>
  [stack]: 'TypeError: Path must be a string. Received true\n    at assertPath (path.js:28:11)\n    at Object.resolve (path.js:1168:7)\n    at /src/packages/server/out/cli.js:325:50620\n    at <anonymous>',
  [message]: 'Path must be a string. Received true' }
free(): invalid pointer

@5hay
Copy link

5hay commented Mar 30, 2019

No it's not released yet. You could build your own docker image though, that's what I did for now.

$ git clone https://github.com/codercom/code-server
$ docker image build -t coder-selfcompiled .
$ <your docker run command, just replace codercom/code-server with the chosen name in the build command>

The docker build command may take some time to complete, took around 20 mins on a 2core vps.

code-asher pushed a commit that referenced this issue Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants