]]>http://forum.pimatic.org/post/22789http://forum.pimatic.org/post/22789Invalid DateThis is not working for me. I followed the instruction given on [https://pimatic.org/guide/getting-started/autostarting/](link url) but if i try to start pimatic with sudo service pimatic start following failure occurs.

Job for pimatic.service failed. See ‘systemctl status pimatic.service’ and ‘journalctl -xn’ for details.

This failure occurs on a fresh installation of pimatic. I just changed to v0.9.

]]>http://forum.pimatic.org/post/22793http://forum.pimatic.org/post/22793Invalid DateDid you also follow the step for installing globally? - https://pimatic.org/guide/getting-started/running/
]]>http://forum.pimatic.org/post/22794http://forum.pimatic.org/post/22794Invalid Dateyes, i have done all this. But i just tried again to make sure that have done no mistakes.

So i think everything is working fine up to this point. But the Autostart option is not working i think so

]]>http://forum.pimatic.org/post/22797http://forum.pimatic.org/post/22797Invalid DatePlease execute the given commands on the command line after that errorsystemctl status pimatic.service
andjournalctl -xn

and please report what they mention.

edit: and please do a ls -l /etc/init.d/pim* and see if there is a pimatic service script.

]]>http://forum.pimatic.org/post/22800http://forum.pimatic.org/post/22800Sat, 07 Jan 2017 14:22:06 GMTHi, thanks for helping me so far. I executed these commands and got the following responses:

]]>http://forum.pimatic.org/post/22802http://forum.pimatic.org/post/22802Invalid Dateplease do a cat /etc/init.d/pimatic and share the PATH statement with us.

and please do a node --version and a which node on the command line.
To see if the normal environment when starting pimatic calls other versions of node, then when called from the pimatic service script (setting its own PATH).

]]>http://forum.pimatic.org/post/22803http://forum.pimatic.org/post/22803Invalid Dateokay, i have done this
]]>http://forum.pimatic.org/post/22804http://forum.pimatic.org/post/22804Invalid Date@thost96 This doesn´t work for me. It doesn´t start after a reboot.

The only thing I can think off right now is to stop pimatic.
Then do a sudo service pimatic start (which will fail I assume).
If it doesn’t fail but start correctly I’m really confused.
If it doesn’t start correctly, please do a sudo egrep -i "pimatic|node" /var/log/syslog. This will check for all lines with node and/or pimatic in it and please check those for error messages.
If you find a message but it is not entitely clear from that one line then please do a sudo grep -B 3 -A 3 "search term" /var/log/syslog. (will show the line containing “search term” and the 3 lines before and after)
Note that if the search term contains strange characters like []()<> etc. you might need to escape them.

]]>http://forum.pimatic.org/post/22806http://forum.pimatic.org/post/22806Sat, 07 Jan 2017 16:03:40 GMTOh, this list me a lot of erros. There are some which are shown very often.

Error: Your node.js version v0.10.29 is too old. Please update node.js to version >=4.0.0 and run pimatic again.

==> But node.js is the version v4.6.2 like you have told me to check.

For example these errors are listed:

If i do sudo grep -B 3 -A 3 “Error” /var/log/syslog i got a lot more Error massages…
I try to get some more error idetifying information out of this. Thank you so far.

]]>http://forum.pimatic.org/post/22808http://forum.pimatic.org/post/22808Invalid DateThe issue is displayed in the logs: “… ERROR: Your node.js version 0.10.29 is too old …”.
This means that your old version of node is still available on your system and it is the standard Debian system version.
Please do a sudo apt-get purge node and if that one is not found do a sudo apt-get purge node.js
]]>http://forum.pimatic.org/post/22810http://forum.pimatic.org/post/22810Sat, 07 Jan 2017 16:43:40 GMT@thost96
Maybe my problem is to install pimatic globally.

I can run pimatic without problems, when I start it with sudo pimatic.js

I have tried to install it globaly . In node_modules I have no pimatic folder but a pimatic-homeduino folder.
When I do pi@raspberrypi:~/node_modules/pimatic-homeduino $ sudo npm link I got following message:

]]>http://forum.pimatic.org/post/22816http://forum.pimatic.org/post/22816Invalid Dateseems like root is running on a wrong node version.
do a sudo node --version and you might see 0.10.29
user pi is having node 4.6.2

if so, do the following :

delete node

sudo apt-get purge nodejs
after that you can check if node is still on your system and do the following steps:

Check where NodeJS is installed: whereis node.
This should output the path of node (for example /usr/local/bin/node).

The problem is indeed the standard Debian nodejs combined with an “inconvenient” PATH statement in the /etc/init.d/pimatic service script.
The PATH in the service script is PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/opt/node/bin
The PATH in a normal shell is PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games

From the command line /usr/local/bin comes first holding the new node.
In the service script /usr/bin comes first holding the old node.

Anyway, I have done it like @leader21 mentioned and reinstalled it.
Afterwards, I checked the /etc/init.d/pimatic and I got follwoing pathPATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/opt/node/bin

Is this the correct path or have I to edit the path. If I have to edit it, please tell me where.

That is the problem between the standard nodejs version and the version we need to install for pimatic 0.9 in combination with the incorrect pimatic service script.

If you would do a sudo which nodejs you would find the one in /usr/bin which the service script takes instead of the one pimatic wants. If the service script would maintain the sequence used in a normal PATH statement it would work.
Even more: If the pimatic service script would at least prefer the PATH where the necessary pimatic node version is installed, we would not have these issues all the time in the forum.

]]>http://forum.pimatic.org/post/22841http://forum.pimatic.org/post/22841Invalid DateThank you all for your help. At first i deleted node like @leader21 had posted before. This all works fine like @shgmongo has posted after reinstalling i also got the node versions v4.6.2 and the path /usr/local/bin/node.

But sudo service pimatic start doesn’t work!

So i tried to change the Path in /etc/init.d/pimatic/ like @Harry-van-der-Wolf recommanded for the patch.
=> But at least after doing sudo update-rc.d pimatic defaults it also doesn’t work to start pimatic with sudo service pimatic start

Then i tried to do what @shgmongo had posted at leastcurl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
=> But at least after doing sudo update-rc.d pimatic defaults it also doesn’t work to start pimatic with sudo service pimatic start

So at least i tried to install pimatic globally again
cd ./node_modules/pimatic
sudo npm link