I’m having some issues updating using the GUI - “Full Update”, “Update Emoncms” etc buttons don’t seem to do anything.
I’ve installed via the EmonScripts onto a Proxmox LXC of Ubuntu 22.04.
From the CLI, if I run …
/opt/openenergymonitor/EmonScripts/update/service-runner-update.sh all
… then it runs just fine and updates correctly.
If I echo to /var/log/emoncms/update.log, then its shows in the GUI “Update Log” output.
Does anyone happen to know what’s triggered when you hit the “Full Update” button please? Assuming its a bash script, am hoping to next check that it’s in the correct folder location and has correct permissions etc.
Having the same problem here, last update run on 19th October worked fine. “Full update” and “Update EmonCMS” buttons now just open a blank log window, the log file is precisely 0 bytes long !
I’ve been running the standard Emon system on an RPi3b for several years, nothing unusual so I assume it’s a problem introduced by the last software update ?
Any thoughts before I resort to using the CLI to run the update ?
Oct 21 07:56:28 emoncms service-runner[88092]: Connected to redis server
Oct 24 19:11:00 emoncms systemd[1]: redis-server.service: Deactivated successfully.
Oct 24 19:11:00 emoncms systemd[1]: redis-server.service: Consumed 19min 38.552s CPU time.
Oct 24 19:11:04 emoncms service-runner[185]: Connected to redis server
Oct 24 19:42:15 emoncms systemd[1]: redis-server.service: Deactivated successfully.
Oct 24 19:42:15 emoncms systemd[1]: redis-server.service: Consumed 2.160s CPU time.
Oct 24 19:44:10 emoncms service-runner[232]: Connected to redis server
Oct 24 19:51:45 emoncms systemd[1]: redis-server.service: Deactivated successfully.
Oct 24 20:03:07 emoncms service-runner[235]: Connected to redis server
Oct 25 23:19:54 emoncms systemd[1]: redis-server.service: Deactivated successfully.
Oct 25 23:19:54 emoncms systemd[1]: redis-server.service: Consumed 2min 4.621s CPU time.
Oct 25 23:21:27 emoncms service-runner[256]: Connected to redis server
I believe so, please see above?
Also ran the below …
➜ ~ sudo systemctl status redis-server
* redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2024-10-25 23:21:26 BST; 1 week 2 days ago
Docs: http://redis.io/documentation,
man:redis-server(1)
Main PID: 118 (redis-server)
Status: "Ready to accept connections"
Tasks: 5 (limit: 115460)
Memory: 4.0M
CPU: 13min 31.335s
CGroup: /system.slice/redis-server.service
`-118 "/usr/bin/redis-server 127.0.0.1:6379" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
Oct 25 23:21:26 emoncms systemd[1]: Starting Advanced key-value store...
Oct 25 23:21:26 emoncms systemd[1]: Started Advanced key-value store.
➜ ~ sudo systemctl status service-runner
* service-runner.service - Emoncms service-runner Input Script
Loaded: loaded (/etc/systemd/system/service-runner.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/service-runner.service.d
`-override.conf
/usr/lib/systemd/system/service-runner.service.d
`-service-runner.conf
Active: active (running) since Fri 2024-10-25 23:21:26 BST; 1 week 2 days ago
Docs: https://github.com/emoncms/emoncms/blob/master/scripts/services/install-service-runner-update.md
Main PID: 256 (python3)
Tasks: 1 (limit: 115460)
Memory: 14.4M
CPU: 81ms
CGroup: /system.slice/service-runner.service
`-256 /usr/bin/python3 /var/www/emoncms/scripts/services/service-runner/service-runner.py
Oct 25 23:21:26 emoncms systemd[1]: Started Emoncms service-runner Input Script.
Oct 25 23:21:27 emoncms service-runner[256]: Starting service-runner
Oct 25 23:21:27 emoncms service-runner[256]: Connected to redis server
➜ ~
I tried the instructions on that thread to change over to python2 in the service-runner.py and service-runner.service.
It didn’t seem to like it that much … so have changed it back.
➜ ~ journalctl -f -u service-runner
Nov 04 09:14:19 emoncms systemd[1]: service-runner.service: Failed with result 'exit-code'.
Nov 04 09:14:49 emoncms systemd[1]: service-runner.service: Scheduled restart job, restart counter is at 5.
Nov 04 09:14:49 emoncms systemd[1]: Stopped Emoncms service-runner Input Script.
Nov 04 09:14:49 emoncms systemd[1]: Started Emoncms service-runner Input Script.
Nov 04 09:14:49 emoncms service-runner[569]: File "/var/www/emoncms/scripts/services/service-runner/service-runner.py", line 23
Nov 04 09:14:49 emoncms service-runner[569]: print("Connected to redis server", flush=True)
Nov 04 09:14:49 emoncms service-runner[569]: ^
Nov 04 09:14:49 emoncms service-runner[569]: SyntaxError: invalid syntax
Nov 04 09:14:49 emoncms systemd[1]: service-runner.service: Main process exited, code=exited, status=1/FAILURE
Nov 04 09:14:49 emoncms systemd[1]: service-runner.service: Failed with result 'exit-code'.
Nov 04 09:15:19 emoncms systemd[1]: service-runner.service: Scheduled restart job, restart counter is at 6.
Nov 04 09:15:19 emoncms systemd[1]: Stopped Emoncms service-runner Input Script.
Nov 04 09:15:19 emoncms systemd[1]: Started Emoncms service-runner Input Script.
Nov 04 09:15:19 emoncms service-runner[615]: File "/var/www/emoncms/scripts/services/service-runner/service-runner.py", line 23
Nov 04 09:15:19 emoncms service-runner[615]: print("Connected to redis server", flush=True)
Nov 04 09:15:19 emoncms service-runner[615]: ^
Nov 04 09:15:19 emoncms service-runner[615]: SyntaxError: invalid syntax
Nov 04 09:15:19 emoncms systemd[1]: service-runner.service: Main process exited, code=exited, status=1/FAILURE
Nov 04 09:15:19 emoncms systemd[1]: service-runner.service: Failed with result 'exit-code'.
^C```
OK, this is way cleverer than I am - I surrender! haha
Just to check, I appreciate it should be run on a Pi, but is there any Linux distro / version that’s known to work on a VM / Proxmox LXC without issue? I’ve seen a few threads each with what seems like their own lists of things that either work or not.