systemctl relies on the definitions provided inside the systemd script at /etc/systemd/system/mineos.service.
If, for any reason, any of these values don’t work for your existing environment, that would explain the failure. I’m assuming then, that you have an unchanged service file, so that also suggests to me that systemctl start mineosnever worked, correct?
My best guess, therefore, is that you have multiple versions of node available.
This is because webui.js has as the shebang (first line of code):
Which is different from what the service file is invoking:
If you have multiple versions of node, env will instead use your $PATH and find the first available node binary, whereas the service file always will choose /usr/bin/node.
remove the system version of node (likely the version that doesn’t work) and replace /usr/bin/node with a symlink to your existing, working node.
change the service file to point directly to the node version that does work. You can find out this path by typing which node as root, or by echo $PATH and walking through each dir to find the first node binary.
Hello I also am having this exact issue, but I am unsure how to change “paths”. Specifically for the advice below, I do not know where to find the “service file”.
“change the service file to point directly to the node version that does work. You can find out this path by typing which node as root , or by echo $PATH and walking through each dir to find the first node binary.”
*Figured it out I just edited my path to /usr/local/bin/node in the mineos.service file