Hello specialists
I’m currently setting up my Pimatic from scratch on a Raspi 4B with buster (node v10.20.1, npm 6.14.4)
That far the whole installation went well on basis on the installation Wiki
… incl. also re-installation of all modules, after copying of my already existing ‘config.json’ into the ‘pimatic-app’ directory and then starting Pimatic. Also the WEB.Gui works fine.
But: I’m not able to get Pimatic running as a service, resp. as autstart after a reboot.
Starting/Stopping it manually by ‘sudo pimatic.js start/stop’ works fine, so I guess the installation itself is fine.
For making it available as service (incl. autostart), I also used the commands from the Wiki: https://pimatic.teamemo.com/Guide/Autostarting
Some detailed output for maybe investigations:
(I skipped the return on ‘systemctl status pimatic.service’ as it shows the same result as ‘sudo service pimatic status’)
pi@raspberrypi:/ $ sudo wget https://raw.githubusercontent.com/pimatic/pimatic/master/install/pimatic.service
--2020-05-08 08:21:52-- https://raw.githubusercontent.com/pimatic/pimatic/master/install/pimatic.service
Auflösen des Hostnamens raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.112.133
Verbindungsaufbau zu raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 427 [text/plain]
Wird in »pimatic.service« gespeichert.
pimatic.service 100%[==================================>] 427 --.-KB/s in 0s
2020-05-08 08:21:53 (5,97 MB/s) - »pimatic.service« gespeichert [427/427]
pi@raspberrypi:/ $ sudo cp pimatic.service /lib/systemd/system/
pi@raspberrypi:/ $ sudo chown root:root /lib/systemd/system/pimatic.service
pi@raspberrypi:/ $ sudo systemctl daemon-reload
pi@raspberrypi:/ $ sudo systemctl enable pimatic
Created symlink /etc/systemd/system/multi-user.target.wants/pimatic.service → /lib/systemd/system/pimatic.service.
pi@raspberrypi:/ $ sudo systemctl restart pimatic
Job for pimatic.service failed because the control process exited with error code.
See "systemctl status pimatic.service" and "journalctl -xe" for details.
pi@raspberrypi:~ $ sudo reboot
pi@raspberrypi:~ $ sudo service pimatic status
● pimatic.service - Pimatic home automation framework
Loaded: loaded (/lib/systemd/system/pimatic.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2020-05-08 08:27:46 CEST; 8s ago
Process: 1119 ExecStart=/usr/local/bin/pimatic.js start (code=exited, status=203/EXEC)
pi@raspberrypi:~ $ sudo service pimatic start
Job for pimatic.service failed because the control process exited with error code.
See "systemctl status pimatic.service" and "journalctl -xe" for details.
pi@raspberrypi:~ $ journalctl -xe
-- Subject: Process /usr/local/bin/pimatic.js could not be executed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The process /usr/local/bin/pimatic.js could not be executed and failed.
--
-- The error number returned by this process is ERRNO.
Mai 08 08:34:57 raspberrypi systemd[1]: pimatic.service: Control process exited, code=exited, status
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit pimatic.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 203.
Mai 08 08:34:57 raspberrypi systemd[1]: pimatic.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit pimatic.service has entered the 'failed' state with result 'exit-code'.
Mai 08 08:34:57 raspberrypi systemd[1]: Failed to start Pimatic home automation framework.
-- Subject: A start job for unit pimatic.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit pimatic.service has finished with a failure.
--
-- The job identifier is 3668 and the job result is failed.
lines 4541-4569/4569 (END)
Would be very happy about any helpful hint, as that seems to go too deep into Raspbian for me, with my poor Linux knowledge
Pedder