pimatic / pimatic-homeduino

Pimatic plugin for using 433mhz devices and sensors with a connected Arduino with homeduino sketch
https://pimatic.org/
GNU General Public License v2.0
37 stars 29 forks source link

Enabling pimatic-homeduino gives EACCES exception on startup. #62

Closed Noxeus closed 8 years ago

Noxeus commented 8 years ago

Yesterday everything worked fine, but now when I restart pimatic I get this error:

14:30:08.466 [pimatic] info: New device "Zitkamer RF"... 14:30:09.866 [pimatic] error: A uncaught exception occured: Error: spawn EACCES 14:30:09.866 [pimatic] error:> at errnoException (child_process.js:980:11) 14:30:09.866 [pimatic] error:> at Process.ChildProcess._handle.onexit (child_process.js:771:34)

I tried installing the old version npm install pimatic-homeduino@0.8.78 but that didn't work sadly. I know it's homeduino because when I disable the plugin pimatic loads fine.

mwittig commented 8 years ago

but that didn't work sadly.

What did not work? Try to rempove the plugin directory before re-installing it, e.g.

cd pimatic-app/node_modules
sudo rm -rf pimatic-homeduino
sudo npm i --unsafe-perm pimatic-homeduino@0.8.78
sudo service pimatic restart

Please check the log then and let me know if the EACCES exception still occurs. Can you also provide a full log, e.g. by adding it to a Gist, please?

EDIT: Do you use GPIO devices with pimatic-homeduino?

Kalekulan commented 8 years ago

I got the same issue when I installed 0.8.80.

mwittig commented 8 years ago

@Kalekulan ok, can you pleease provide me with more info then? Thanks!

Kalekulan commented 8 years ago

Sorry for that. Yes, I use GPIOs with homeduino.

https://gist.github.com/Kalekulan/cd75734d049fed5ddc5894b61f264619

If you want any other specific logs, let me know.

mwittig commented 8 years ago

No worries. I think I have found the problem. When the GPIO driver is used, it execute the vhduino binary. For some reason the binary has no execute bits set which causes the EACCESS error. I have added a post-install script to ensure the execute bits will beset and will publish a new release shortly.

mwittig commented 8 years ago

I think the issue should be fixed now with version 0.8.82. Please let me know if it solves the issue for you

Kalekulan commented 8 years ago

It works. Thanks!