I did a fresh install on a freshly installed rock64 running ubuntu-minimal 64bit, nodejs 12.16.1 LTS.
I did everything as https://pimatic.teamemo.com/Guide tells me to, expect that I had some issues with sqlite3 and had to install it manually.
Everything worked fine, even “sudo pimatic.js start” but after that, that’s where the problems start. I sucessfully proceeded with installing the whole autostart thing, pimatic let itself stop by “sudo systemctl stop pimatic” but gives me an error when trying to start it
journalctl -xe output as follows:
Feb 28 23:13:01 servicepi systemd[1]: pimatic.service: Service hold-off time over, scheduling restart.
Feb 28 23:13:01 servicepi systemd[1]: pimatic.service: Scheduled restart job, restart counter is at 601.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Automatic restarting of the unit pimatic.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Feb 28 23:13:01 servicepi systemd[1]: Stopped Pimatic home automation framework.
-- Subject: Unit pimatic.service has finished shutting down
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit pimatic.service has finished shutting down.
Feb 28 23:13:01 servicepi systemd[1]: Starting Pimatic home automation framework...
-- Subject: Unit pimatic.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit pimatic.service has begun starting up.
Feb 28 23:13:01 servicepi systemd[2551]: pimatic.service: Failed to execute command: No such file or directory
Feb 28 23:13:01 servicepi systemd[2551]: pimatic.service: Failed at step EXEC spawning /usr/local/bin/pimatic.js: No such file or directory
-- Subject: Process /usr/local/bin/pimatic.js could not be executed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The process /usr/local/bin/pimatic.js could not be executed and failed.
--
-- The error number returned by this process is 2.
Feb 28 23:13:01 servicepi systemd[1]: pimatic.service: Control process exited, code=exited status=203
Feb 28 23:13:01 servicepi systemd[1]: pimatic.service: Failed with result 'exit-code'.
Feb 28 23:13:01 servicepi systemd[1]: Failed to start Pimatic home automation framework.
-- Subject: Unit pimatic.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit pimatic.service has failed.
--
-- The result is RESULT.
Whereas “Failed at step EXEC spawning /usr/local/bin/pimatic.js: No such file or directory” seems the problem for me. I’m kind of stuck here, any advice is highly apreciated. Cheers