Did you reload the daemon as stated?
Or do a reboot and see if it works then
-
[solved]Pimatic v0.9 autostart not functioning
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
yes i have reload the daemon and i have make a reboot.
with “sudo pimatic.js start” it´s ok
-
systemctl status pimatic.service
● pimatic.service - LSB: pimatic service
Loaded: loaded (/etc/init.d/pimatic)
Active: failed (Result: exit-code) since Mi 2016-06-29 00:59:21 CEST; 3min 54s ago
Process: 349 ExecStart=/etc/init.d/pimatic start (code=exited, status=1/FAILURE) -
- Did you execute “npm link” as described in https://pimatic.org/guide/getting-started/running/? See section “Installing Globally”
- Make sure you only have one nodeJS version installed on your system. It looks like you have different version installed at the same
- Install the latest LTS version (4.4.5). The message “Please update node.js to version >=4.0.0” is misleading as early 4.0.x version are known to cause problems.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
sudo pimatic.js [start|stop|status|restart]
so i can start or stop but not with the /etc/init.d/pimatic -
/usr/bin/env node --version
v4.4.5 -
Had the same problem. My solution was to check if pimatic was running, if not, do pimatic.js. Cant Edit the config from webpage if started by daemon so yeah, better solution for me.
-
at the beginning i had the same problem. node was 4.xx and pimatic gives a warn that say it is v0.10.29.
so you have to do this:
Removing the old NodeJS (v0.10) installation
Check where NodeJS is installed:
whereis node
. This should output the path of node (for example/usr/local/bin/node
).
Remove all binaries and the node_modules folder:sudo rm -r /usr/local/bin/node /usr/local/bin/npm /usr/local/lib/node_modules
Check that NodeJS is gone:node --version
. It should output command not found.then install the new node like described here:
https://pimatic.org/guide/getting-started/installation/ -
Thx p4co86,
this worked out! I dont know what went wrong during installation due to it was a clean image…?
But I think this topic can be closed as solved. -
Same problem here,
it was solved with:
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs -
I have taken a slightly different approach to daemonizing - I run things under runit, find it much much simpler http://smarden.org/runit/
-
Im getting the error when npm link
npm ERR! Linux 4.4.13-v7+
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” "link"
npm ERR! node v4.4.5
npm ERR! npm v2.15.5
npm ERR! path /usr/local/lib/node_modules/npm/node_modules/glob/package.jsonnpm ERR! Error parsing /usr/local/lib/node_modules/npm/node_modules/glob/package.json: Unexpected token a
And yes i have installed node according manual and tried all options above. none is working
-
I had problems with npm to.
after runningsudo apt-get remove nodejs
and
sudo rm -r /usr/local/bin/node /usr/local/bin/npm /usr/local/lib/node_modules
I managed to install it with the guide https://pimatic.org/guide/getting-started/installation/
Follow my domotica project on http://maredana.nl
-
@stingone said in [solved]Pimatic v0.9 autostart not functioning:
npm ERR! Error parsing /usr/local/lib/node_modules/npm/node_modules/glob/package.json: Unexpected token a
Looks like something nasty is going here. Make sure you don’t have left overs from another nodejs installation - see earlier posts on this thread.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig Not even able to reinstall…:( i used the lite distribution of jessie. Maybe need a fresh install of the full distribution.
-
I am using the lite also, shouldn’t be a problem
Follow my domotica project on http://maredana.nl
-
hmmm i did a fresh install of lite did all the steps again and now it works
-
Glitch in the matrix
Follow my domotica project on http://maredana.nl
-
Hello,
my autostart doesnt work too.
Dis is the error message :
sudo service pimatic start
Job for pimatic.service failed. See ‘systemctl status pimatic.service’ and ‘journalctl -xn’ for details.systemctl status pimatic.service
● pimatic.service - LSB: pimatic service
Loaded: loaded (/etc/init.d/pimatic)
Active: failed (Result: exit-code) since Fr 2016-08-05 20:43:37 CEST; 42s ago
Process: 19892 ExecStart=/etc/init.d/pimatic start (code=exited, status=1/FAIL URE)Can you help me ?
-
does pimatic start manually without issues?
sudo node /home/pi/pimatic-app/node_modules/pimatic/pimatic.js
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !