Closed PaperLawyer closed 2 years ago
@PaperLawyer ok, I'll see if i can recreate this. More when I have news...
Update: I checked the contents of /opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py on my pi and it bore no resemblence to the file on github and so rm -rf /opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py and then I reinstalled the daemon. Now working perfectly.
Apologies for the wild good chase (but I have no idea why/how the file contents changed).
I havew been using the RPI-Reporter happily for a number of months on several raspberry pi devices - an original B, a pi 2 and a pi 4. It may be coincidence, but I appear to have issues following installation of NUT server on the pi B (as APCUPSD is deprecated - the pi's sole trask is to act as a master server in respect of a UPS). I've tried reloading the daemon, rebotting etc, all to no avail.
I'm out of my depth but I have the journal entry which may be helpful:
░░ A start job for unit isp-rpi-reporter.service has finished with a failure. ░░ ░░ The job identifier is 159198 and the job result is failed. Jan 23 21:43:34 raspberrypiups sudo[3878]: pam_unix(sudo:session): session closed for user root Jan 23 21:43:37 raspberrypiups systemd[1]: isp-rpi-reporter.service: Scheduled restart job, restart counter is at 2301. ░░ Subject: Automatic restarting of a unit has been scheduled ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ Automatic restarting of the unit isp-rpi-reporter.service has been scheduled, as the result for ░░ the configured Restart= setting for the unit. Jan 23 21:43:37 raspberrypiups systemd[1]: Stopped RPi Reporter MQTT Client/Daemon. ░░ Subject: A stop job for unit isp-rpi-reporter.service has finished ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ A stop job for unit isp-rpi-reporter.service has finished. ░░ ░░ The job identifier is 159336 and the job result is done. Jan 23 21:43:37 raspberrypiups systemd[1]: Starting RPi Reporter MQTT Client/Daemon... ░░ Subject: A start job for unit isp-rpi-reporter.service has begun execution ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ A start job for unit isp-rpi-reporter.service has begun execution. ░░ ░░ The job identifier is 159336. Jan 23 21:43:37 raspberrypiups python3[3882]: File "/opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py", line 4 Jan 23 21:43:37 raspberrypiups python3[3882]: . /usr/share/debconf/confmodule Jan 23 21:43:37 raspberrypiups python3[3882]: ^ Jan 23 21:43:37 raspberrypiups python3[3882]: SyntaxError: invalid syntax Jan 23 21:43:37 raspberrypiups systemd[1]: isp-rpi-reporter.service: Main process exited, code=exited, status=1/FAILURE ░░ Subject: Unit process exited ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ An ExecStart= process belonging to unit isp-rpi-reporter.service has exited. ░░ ░░ The process' exit code is 'exited' and its exit status is 1. Jan 23 21:43:37 raspberrypiups systemd[1]: isp-rpi-reporter.service: Failed with result 'exit-code'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ The unit isp-rpi-reporter.service has entered the 'failed' state with result 'exit-code'. Jan 23 21:43:37 raspberrypiups systemd[1]: Failed to start RPi Reporter MQTT Client/Daemon. ░░ Subject: A start job for unit isp-rpi-reporter.service has failed ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ A start job for unit isp-rpi-reporter.service has finished with a failure. ░░ ░░ The job identifier is 159336 and the job result is failed.