You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.
● mqtt-gpio-monitor-service.service - MQTT Buttons
Loaded: loaded (/lib/systemd/system/mqtt-gpio-monitor-service.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2019-06-09 23:03:48 CEST; 24h ago
Main PID: 899 (code=exited, status=2)
Lip 09 23:03:48 WiseMagicMirror systemd[1]: mqtt-gpio-monitor-service.service: Unit entered failed state.
Lip 09 23:03:48 WiseMagicMirror systemd[1]: mqtt-gpio-monitor-service.service: Failed with result 'exit-code'.
Lip 09 23:03:48 WiseMagicMirror systemd[1]: mqtt-gpio-monitor-service.service: Service hold-off time over, scheduling restart.
Lip 09 23:03:48 WiseMagicMirror systemd[1]: Stopped MQTT Buttons.
Lip 09 23:03:48 WiseMagicMirror systemd[1]: mqtt-gpio-monitor-service.service: Start request repeated too quickly.
Lip 09 23:03:48 WiseMagicMirror systemd[1]: Failed to start MQTT Buttons.
Lip 09 23:03:48 WiseMagicMirror systemd[1]: mqtt-gpio-monitor-service.service: Unit entered failed state.
Lip 09 23:03:48 WiseMagicMirror systemd[1]: mqtt-gpio-monitor-service.service: Failed with result 'exit-code'.
When i try to run it via terminal with command /usr/bin/python3 /home/pi/gregorb/mqtt-gpio-monitor/mqtt-gpio-monitor.py
I get
Traceback (most recent call last):
File "/usr/lib/python3.5/configparser.py", line 1135, in _unify_values
sectiondict = self._sections[section]
KeyError: 'global'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/gregorb/mqtt-gpio-monitor/mqtt-gpio-monitor.py", line 30, in <module>
MODULE = config.get("global", "module")
File "/usr/lib/python3.5/configparser.py", line 778, in get
d = self._unify_values(section, vars)
File "/usr/lib/python3.5/configparser.py", line 1138, in _unify_values
raise NoSectionError(section)
configparser.NoSectionError: No section: 'global'
when i cd to root dir of script, I can run it with python3 mqtt-gpio-monitor.py.
Any ideas how to run it as service?
Thanks,
G.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
Im trying to run mqtt-gpio-monitor as service on boot @ rasbian (latest)
.service file (/lib/systemd/system/mqtt-gpio-monitor-service.service)
when i run enable and then status I get
When i try to run it via terminal with command
/usr/bin/python3 /home/pi/gregorb/mqtt-gpio-monitor/mqtt-gpio-monitor.py
I get
when i cd to root dir of script, I can run it with
python3 mqtt-gpio-monitor.py
.Any ideas how to run it as service?
Thanks,
G.
The text was updated successfully, but these errors were encountered: