Question

issue with Code-server installation

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

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

ok I found that node and npm were not installled successfully .

I have reinstalled them but after I have also to make a link

sudo ln -s /usr/bin/node /usr/local/bin/node

in order to succeed it

now my service is started