Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startup script error... #110

Open
PAOK1926 opened this issue Nov 16, 2022 · 3 comments
Open

Startup script error... #110

PAOK1926 opened this issue Nov 16, 2022 · 3 comments

Comments

@PAOK1926
Copy link

i followed the exact commands, but i get this error

systemctl status broadlink-mqtt.service

  • broadlink-mqtt.service - Broadlink MQTT Service
    Loaded: loaded (/lib/systemd/system/broadlink-mqtt.service; disabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Wed 2022-11-16 16:14:14 EET; 2s ago
    Process: 159885 ExecStart=/usr/bin/python3 /root/broadlink-mqtt/mqtt.py (code=exited, status=208/STDIN)
    Main PID: 159885 (code=exited, status=208/STDIN)
    CPU: 1ms

Nov 16 16:14:14 AD110-NOC systemd[1]: Started Broadlink MQTT Service.
Nov 16 16:14:14 AD110-NOC systemd[159885]: broadlink-mqtt.service: Failed to set up standard input: Operation not permitted
Nov 16 16:14:14 AD110-NOC systemd[159885]: broadlink-mqtt.service: Failed at step STDIN spawning /usr/bin/python3: Operation not permitted
Nov 16 16:14:14 AD110-NOC systemd[1]: broadlink-mqtt.service: Main process exited, code=exited, status=208/STDIN
Nov 16 16:14:14 AD110-NOC systemd[1]: broadlink-mqtt.service: Failed with result 'exit-code'.
Nov 16 16:14:14 AD110-NOC systemd[1]: broadlink-mqtt.service: Consumed 1ms CPU time.

@eschava
Copy link
Owner

eschava commented Nov 16, 2022

do you have python3 installed?

@PAOK1926
Copy link
Author

yes, this command runs normally

/usr/bin/python3 /root/broadlink-mqtt/mqtt.py

@PAOK1926
Copy link
Author

i finally did it the old fashioned way, in crontab...

@reboot /usr/bin/python3 /root/broadlink-mqtt/mqtt.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants