Question

issue with Code-server installation

Posted May 8, 2020 631 views
Ubuntu 18.04VS Code

I’m trying to install code-server 3.2.0 on an Ubuntu droplet and I’m following also the guide/tuto –> https://www.digitalocean.com/community/tutorials/how-to-set-up-the-code-server-cloud-ide-platform-on-ubuntu-18-04-fr

but after the definition of the service , when I’m trying to start the service , I have the following result

sudo systemctl status code-server.service
● code-server.service - code-server
   Loaded: loaded (/lib/systemd/system/code-server.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2020-05-08 19:39:06 UTC; 7s ago
  Process: 16428 ExecStart=/usr/local/bin/code-server --host 127.0.0.1 --user-data-dir /var/lib/code-server --auth password (code=exited, status=127)
 Main PID: 16428 (code=exited, status=127)

May 08 19:39:06 ubuntu-s-1vcpu-1gb-ams3-01 systemd[1]: code-server.service: Main process exited, code=exited, status=127/n/a
May 08 19:39:06 ubuntu-s-1vcpu-1gb-ams3-01 systemd[1]: code-server.service: Failed with result 'exit-code'.
May 08 19:39:06 ubuntu-s-1vcpu-1gb-ams3-01 systemd[1]: code-server.service: Service hold-off time over, scheduling restart.
May 08 19:39:06 ubuntu-s-1vcpu-1gb-ams3-01 systemd[1]: code-server.service: Scheduled restart job, restart counter is at 5.
May 08 19:39:06 ubuntu-s-1vcpu-1gb-ams3-01 systemd[1]: Stopped code-server.
May 08 19:39:06 ubuntu-s-1vcpu-1gb-ams3-01 systemd[1]: code-server.service: Start request repeated too quickly.
May 08 19:39:06 ubuntu-s-1vcpu-1gb-ams3-01 systemd[1]: code-server.service: Failed with result 'exit-code'.
May 08 19:39:06 ubuntu-s-1vcpu-1gb-ams3-01 systemd[1]: Failed to start code-server.


so If I’m trying to start >> /usr/local/bin/code-server
I’m receiving the following error :

/usr/local/bin/code-server: 18: exec: /usr/local/bin/node: not found

So what I need to do in order to move on ?

Many thanks

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer
Show answer This answer has been marked as resolved by olivierSquid.
Submit an Answer