Problem with autostarting EspruinoHub.service #2238
Replies: 9 comments
-
Posted at 2017-06-21 by @gfwilliams @tom.gidden do you have any ideas about this? (Tom originally added the code for running the hub as a service - personally I still tend to run it so the Pi boots up and displays it on the screen) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-06-21 by Trisk3lion I should say that I had to modify the installation process a bit because the node-red installation script didn't work because the command: sudo npm, didn't work. So I had to install it with:
and then use pm2 to autostart node-red because the "node-red-start" service didn't work either, probably because of the installation path. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-06-21 by @gfwilliams That's odd - what did It definitely works on the Pi I have here, but I haven't updated the OS in a month or two. Things get changed all the time and it's a constant battle to keep documentation up to date :( |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-06-21 by tom.gidden Hi,
Since you say Did you start with a Raspbian that has Node and Node-RED preinstalled? If not, I'd start by redoing the installation of Node. If so, maybe there's a problem with our script and that Please can you try: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-06-21 by @gfwilliams Thanks! Just a thought but you could try installing the |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-06-21 by Wilberforce In later it is installed as |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-06-22 by tom.gidden Hmm. Okay, I'll try to take a look at this when I next get a chance, if no-one else gets there first: a fresh install of Raspbian without my usual install. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-06-26 by Trisk3lion Thanks for the explanation @tom.gidden and you perfectly correct, my nodejs installation is non-standard. I going to try to have PM2 start EspruinoHub instead, as I do with Node-Red right now, but if I can't get that to work I guess I have to remove and reinstall node, npm and node-red! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-06-26 by tom.gidden If I remember correctly, Node-RED actually needs an old version of Node at the moment.. well, not older as such, but I think it only runs on Node 6.x (the long-term stable release), rather than the state-of-the-art Node 7.x. As a result, it doesn't support Promises and a host of other ES6 features. One option is to use My version of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-06-20 by Trisk3lion
Hello
I trying to get the EspruinoHub.service to autostart by following the instructions on the Github page. But when i run the command I get this:
I can run the start.sh file normally by
and everyhting works as promised but I just can't get the systemdb to work.
Any ideas?
Edit: EspruinoHub is installed in /home/pi/EspruinoHub.
Beta Was this translation helpful? Give feedback.
All reactions