This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Failed to auto start signalk-server on boot
#1
Hello,

I installed signalk via the command line instruction on signalk's github repo. However, I need to manually start "signalk-server" from the terminal in order to access the localhost signalk interface.

I would like to auto start the signalk-server on boot. I tried:

sudo systemctl enable signalk.service
sudo systemctl enable signalk.socket


But it did not auto start and the error is:

● signalk.service
    Loaded: loaded (/etc/systemd/system/signalk.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Fri 2023-11-24 00:40:02 CET; 5min ago
TriggeredBy: ● signalk.socket
    Process: 808 ExecStart=/home/pi/.signalk/signalk-server (code=exited, status=127)
  Main PID: 808 (code=exited, status=127)
        CPU: 7ms

Nov 24 00:40:02 openplotter systemd[1]: signalk.service: Scheduled restart job, restart counter is at 5.
Nov 24 00:40:02 openplotter systemd[1]: Stopped signalk.service.
Nov 24 00:40:02 openplotter systemd[1]: signalk.service: Start request repeated too quickly.
Nov 24 00:40:02 openplotter systemd[1]: signalk.service: Failed with result 'exit-code'.
Nov 24 00:40:02 openplotter systemd[1]: Failed to start signalk.service.

When I run signal-server-setup, I got:
"pi@openplotter:~ $ sudo signalk-server-setup
/usr/bin/env: ‘node’: No such file or directory"

But the node was installed:
"
pi@openplotter:~ $ node -v
v21.2.0
pi@openplotter:~ $ which node
/home/pi/.config/nvm/versions/node/v21.2.0/bin/node
"

Any ideas? Any hints to debug is helpful. Many thanks!
Reply


Messages In This Thread
[Solved] Failed to auto start signalk-server on boot - by volksbar - 2023-11-24, 01:21 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)