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.

Code-server is not starting

See original GitHub issue
  • Binary : code-server-1.32.0-310-linux-x64.tar.gz
  • OS Version : CentOS Linux 7 (VM)

Description

  • Code server is not starting, getting following error :
[root@desk code-server-1.32.0-310-linux-x64]# ./code-server files/
INFO  code-server v1.32.0-310
INFO  Additional documentation: http://github.com/codercom/code-server
INFO  Initializing {"data-dir":"/root/.local/share/code-server","working-dir":"/root/m/code-server-1.32.0-310-linux-x64/files","log-dir":"/root/.cache/code-server/logs/20190322113304427"}
INFO  Starting webserver... {"host":"0.0.0.0","port":8443}
WARN  No certificate specified. This could be insecure.
WARN  Documentation on securing your setup: https://coder.com/docs
INFO
INFO  Password: 3f5ac8877349cfe5d5254c00
INFO
INFO  Started (click the link below to open):
INFO  http://localhost:8443/
INFO
INFO  Starting shared process [1/5]...
/root/m/code-server-1.32.0-310-linux-x64/code-server:340
 */var r=/["'&<>]/;e.exports=function(e){var t,n=""+e,i=r.exec(n);if(!i)return n;var o="",a=0,s=0;for(a=i.index;a<n.length;a++){switch(n.charCodeAt(a)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#39;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}s!==a&&(o+=n.substring(s,a)),s=a+1,o+=t}return s!==a?o+n.substring(s,a):o}},function(e,t,n){"use strict";e.exports=function(e,t){if(null==t)return function e(t,n){for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?e(i,n):n.push(i)}return n}(e,[]);return function e(t,n,r){for(var i=0;i<t.length;i++){var o=t[i];r>0&&Array.isArray(o)?e(o,n,r-1):n.push(o)}return n}(e,[],t)}},function(e,t){e.exports=function(e,t){if(e&&t)for(var n in t)e[n]=t[n];return e}},function(e,t,n){"use strict";const r=n(803),i=n(202),o=n(210),a=n(96),s=Buffer.from([0,0,255,255]),c=Buffer.from([0]),u=Symbol("permessage-deflate"),l=Symbol("write-in-progress"),p=Symbol("pending-close"),d=Symbol("t

TypeError: Cannot read property 'on' of undefined
    at t.emitLines (/root/m/code-server-1.32.0-310-linux-x64/code-server:340:7474)
    at t.async (/root/m/code-server-1.32.0-310-linux-x64/code-server:721:37259)
    at e.exports (/root/m/code-server-1.32.0-310-linux-x64/code-server:721:36678)
    at e (/root/m/code-server-1.32.0-310-linux-x64/code-server:721:35480)
    at Timeout.c [as _onTimeout] (/root/m/code-server-1.32.0-310-linux-x64/code-server:721:35773)
    at ontimeout (timers.js:498:11)
    at tryOnTimeout (timers.js:323:5)
    at Timer.listOnTimeout (timers.js:290:5)
[root@desk code-server-1.32.0-310-linux-x64]# 

Steps to Reproduce

  1. extract code-server-1.32.0-282-linux-x64.tar.gz
  2. cd into folder
  3. Run ./codes-server folder

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
mahirchavdacommented, Mar 26, 2019

On Ubuntu, it is working fine. Thank you. @Multishifties, @nol166, @sr229

2reactions
nol166commented, Mar 22, 2019

Others have said installing net-tools resolves the issue @mahirchavda

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code-server is starting but cannot be opened in browser ...
After starting the code-server it's not reachable via browser (endless loading). Last output from code-server: INFO Starting shared process ...
Read more >
FAQ - code-server v4.8.0 docs - Coder
Frequently asked questions on installing and running code-server.
Read more >
VS Code not starting on WSL - Stack Overflow
Yesterday when I tried to open my VS Code then WSL started ... -server/bin/d045a5eda657f4d7b676dedbfa7aab8207f8a075/bin/code: not found.
Read more >
Troubleshoot Terminal launch failures - Visual Studio Code
Troubleshooting steps · Test your shell directly. Try running your designated integrated terminal shell outside VS Code from an external terminal or command ......
Read more >
Get started using VS Code with WSL - Microsoft Learn
Install Visual Studio Code on Windows (not in your WSL file system). ... libraries that are required by the VS Code server to...
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