Hi
The problem:
I am unable to start service runner. I get “service-runner Activating loaded activating auto-restart” in system information
What have I done/tried:
-
I installed on a fresh ubuntu-24.04.2-server and EmonCMS using scripts and instructions on: EmonCMS Install Scripts — OpenEnergyMonitor 0.0.1 documentation.
-
I ran the ./main several times. Some folks have reported it appears to help to ensure things install…
-
When I register to EmonCMS and go over to system information The above problem shows.
-
Using instructions from: “emoncms/scripts/services/install-service-runner-update.md at master · emoncms/emoncms · GitHub”:
I ran: sudo systemctl edit service-runner.servicEe and added (the text inside the “” marks):
[Service] User= << I left the User= null
And then executed:
sudo systemctl enable service-runner.service
sudo systemctl start service-runner.service
systemctl status service-runner.service
When I copy/paste all 3 instructions at the same time, the service appears to start. The readout shows:
● service-runner.service - Emoncms service-runner Input Script << Green dot
If I immediately run again ONLY: “systemctl status service-runner.service”, display shows:
● service-runner.service - Emoncms service-runner Input Script << white dot, and further down
Process: 10339 ExecStart=/usr/bin/python3 /var/www/emoncms/scripts/services/service-runner/service-runner.py (code=exited, status=1/FAILURE)
So the process appears to start and then stop.
I then executed: journalctl -f -u service-runner and the display as follows:
Jul 07 16:39:57 emonpi systemd[1]: service-runner.service: Scheduled restart job, restart counter is at 245.
Jul 07 16:39:57 emonpi systemd[1]: Started service-runner.service - Emoncms service-runner Input Script.
Jul 07 16:39:58 emonpi service-runner[10481]: Traceback (most recent call last):
Jul 07 16:39:58 emonpi service-runner[10481]: File "/var/www/emoncms/scripts/services/service-runner/service-runner.py", line 13, in <module>
Jul 07 16:39:58 emonpi service-runner[10481]: import redis
Jul 07 16:39:58 emonpi service-runner[10481]: ModuleNotFoundError: No module named 'redis'
Jul 07 16:39:58 emonpi systemd[1]: service-runner.service: Main process exited, code=exited, status=1/FAILURE
Jul 07 16:39:58 emonpi systemd[1]: service-runner.service: Failed with result 'exit-code'.
Jul 07 16:40:28 emonpi systemd[1]: service-runner.service: Scheduled restart job, restart counter is at 246.
Jul 07 16:40:28 emonpi systemd[1]: Started service-runner.service - Emoncms service-runner Input Script.
Jul 07 16:40:28 emonpi service-runner[10499]: Traceback (most recent call last):
Jul 07 16:40:28 emonpi service-runner[10499]: File "/var/www/emoncms/scripts/services/service-runner/service-runner.py", line 13, in <module>
Jul 07 16:40:28 emonpi service-runner[10499]: import redis
Jul 07 16:40:28 emonpi service-runner[10499]: ModuleNotFoundError: No module named 'redis'
Jul 07 16:40:28 emonpi systemd[1]: service-runner.service: Main process exited, code=exited, status=1/FAILURE
Jul 07 16:40:28 emonpi systemd[1]: service-runner.service: Failed with result 'exit-code'.
- So, apparently there’s an issue w/ redis. So I executed: “redis-cli ping” and the reply is PONG…
Any pointers or help appreciated!!
Tks in advance,
P



