question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue
  • 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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
kylecarbscommented, Mar 27, 2019

Will fix.

0reactions
5haycommented, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

1.408-vsc1.32.0 report error : TypeError: Path must be a string.
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/ ...
Read more >
Node.js TypeError: path must be a string or Buffer
I'm writting a command line program which calculates the total price of an order, using info from a CSV file. Data inside sample.catalog.csv:...
Read more >
Path must be a string. Received undefined - node-steam-user
Stack Trace: TypeError: Path must be a string. Received undefined at assertPath (path.js:28:11) at Object.join (path.js:489:7) at userData ...
Read more >
StarMirror/code-server - code-server - Kiritow Git Site
1.408-vsc1.32.0 ... Move tasks onBeforeShutdown to electron-browser Fixes #108649 e52382a0b3 findExecutable should check PATH in a case-insensitive way Fix ...
Read more >
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument ...
After saving the file getting Error: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found