Community
OpenEnergyMonitor

OpenEnergyMonitor Community

Service-runner stuck on Activating Auto-restart after full update

Tags: #<Tag:0x00007fc9adc8e0c8>

Hello.

I have an emonBase that was flashed with image emonSD-30Oct18 and everything was running fine until I did a full update last Sunday. Afterwards, I noticed 2 issues:

  • the update didn’t updated any OS packages as I ran apt update and there where 141 packages not updated
  • in the Admin page I see that service-runner is stuck on Activating Auto-restart. I checked the status of the service and it’s not started and shows a failure. A restart of the service doesn’t do anything.
[email protected]:~ $ sudo systemctl status service-runner
● service-runner.service - Emoncms service-runner Input Script
   Loaded: loaded (/var/www/emoncms/scripts/services/service-runner/service-runner.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Tue 2020-08-25 21:59:47 WEST; 6s ago
     Docs: https://github.com/emoncms/emoncms/blob/master/scripts/services/install-service-runner-update.md
  Process: 3353 ExecStart=/usr/bin/python3 /var/www/emoncms/scripts/services/service-runner/service-runner.py (code=exited, status=1/FAILURE)
 Main PID: 3353 (code=exited, status=1/FAILURE)

Aug 25 21:59:47 emonpi systemd[1]: service-runner.service: Failed with result 'exit-code'.

Running the update again just shows “service-runner trigger sent” in the log window and then nothing happens.

Can anyone please let me know how can I fix this? Thanks!

Full update log.

[email protected]:~ $ cat /var/log/emoncms/emonpiupdate.log
Starting update via service-runner-update.sh (v2.0) >
- emonSD version: emonSD-30Oct18
emonSD base image check passed...continue update
git pull /home/pi/emonpi
  enable-ssh
  enable-ssh-button
  gpiozero-enable-ssh
  greeebs-patch-1
* master
  python-systemd-servicerunner
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
From https://github.com/openenergymonitor/emonpi
   73a63d2..16e4876  master      -> origin/master
 * [new branch]      python3_lcd -> origin/python3_lcd
Updating 73a63d2..16e4876
Fast-forward
 .gitignore                          |    1 +
 firmware/compile.sh                 |   12 -
 firmware/compiled/archive/README.md |    3 +
 firmware/compiled/latest.hex        | 2264 ++++++++++++++++++-----------------
 firmware/compiled/readme.md         |    5 +-
 firmware/compiled/update            |    2 +-
 firmware/platformio.ini             |    2 +-
 firmware/platformio.md              |    4 +
 firmware/readme.md                  |   19 +-
 lcd/README.md                       |   37 +-
 lcd/disablessh.sh                   |    2 -
 lcd/emonPiLCD.cfg                   |    4 +
 lcd/emonPiLCD.py                    |  447 +++----
 lcd/emonPiLCD.service               |   40 +-
 lcd/emonPiLCD_detect.py             |   14 +
 lcd/emonPiLCD_detect.sh             |   11 +-
 lcd/emonPiLCD_update.py             |   41 +-
 lcd/emonPiLCD_write.py              |   29 +
 lcd/enablessh.sh                    |    2 -
 lcd/gsmhuaweistatus.py              |   20 +-
 lcd/i2c_lib.py                      |   35 -
 lcd/install.sh                      |   45 +
 lcd/lcd_test.py                     |   14 +-
 lcd/lcddriver.py                    |   37 +-
 lcd/testing/emonPiLCD.py            |  191 ++-
 lcd/testing/lcd_test_IPclock.py     |  113 +-
 lcd/testing/push_and_hold.py        |   12 +-
 lcd/testing/test.py                 |   63 +-
 md5sum.py                           |   28 +-
 factoryreset => old-factoryreset.sh |    0
 wifiAP/networklog.sh                |    2 +-
 31 files changed, 1744 insertions(+), 1755 deletions(-)
 delete mode 100755 firmware/compile.sh
 create mode 100644 firmware/compiled/archive/README.md
 create mode 100755 lcd/emonPiLCD_detect.py
 create mode 100755 lcd/emonPiLCD_write.py
 delete mode 100755 lcd/i2c_lib.py
 create mode 100755 lcd/install.sh
 rename factoryreset => old-factoryreset.sh (100%)
-------------------------------------------------------------
Main Update Script
-------------------------------------------------------------
Date: Sun 23 Aug 20:42:22 WEST 2020
EUID: 1000
usrdir: /home/pi
type: all
firmware: none
Checking environment:
- pi user found

EUID: 1000
Hardware detected: rfm2pi
Stopping emonPiLCD service
Display update message on LCD
-------------------------------------------------------------
Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
rng-tools is already the newest version (2-unofficial-mt.14-1).
python-gpiozero is already the newest version (1.5.0).
python-rpi.gpio is already the newest version (0.6.5~stretch-1).
The following packages were automatically installed and are no longer required:
  libarchive13 liblzo2-2
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 141 not upgraded.
Requirement already up-to-date: paho-mqtt in /usr/local/lib/python2.7/dist-packages
-------------------------------------------------------------
git pull /home/pi/RFM2Pi
* master
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
From https://github.com/openenergymonitor/RFM2Pi
   e5d874d..1658310  master     -> origin/master
Updating e5d874d..1658310
Fast-forward
 hardware/readme.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

git pull /home/pi/usefulscripts
* master
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
Already up-to-date.

git pull /home/pi/huawei-hilink-status
* master
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
Already up-to-date.

git pull /home/pi/oem_node-red
* master
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
Already up-to-date.

Start emonhub update script:
-------------------------------------------------------------
emonHub update started
-------------------------------------------------------------
- usr directory: /home/pi
git pull /home/pi/emonhub
* emon-pi
On branch emon-pi
Your branch is up-to-date with 'origin/emon-pi'.
Untracked files:
  (use "git add <file>..." to include in what will be committed)

        src/src

nothing added to commit but untracked files present (use "git add" to track)
From https://github.com/openenergymonitor/emonhub
   bbd2e71..e443b94  emon-pi                -> origin/emon-pi
 * [new branch]      MQTTSubscriberInterfacer -> origin/MQTTSubscriberInterfacer
 * [new branch]      SDS011                 -> origin/SDS011
 * [new branch]      Tx3e_calibration       -> origin/Tx3e_calibration
   5d239b3..a97f849  env_example            -> origin/env_example
 * [new branch]      include_serial_number  -> origin/include_serial_number
   cb798e7..0a82be4  lanip-status           -> origin/lanip-status
 * [new branch]      master                 -> origin/master
   5e0fa7d..1a49197  redis_config_interface -> origin/redis_config_interface
 * [new branch]      stable                 -> origin/stable
   f3f78d8..1ce386a  unitless_decoder       -> origin/unitless_decoder
 * [new tag]         2.1.6                  -> 2.1.6
 * [new tag]         2.1.3                  -> 2.1.3
 * [new tag]         2.1.4                  -> 2.1.4
 * [new tag]         2.1.5                  -> 2.1.5
Updating bbd2e71..e443b94
Fast-forward
 conf/emonpi.default.emonhub.conf                   |   2 +-
 .../directserial-serialtx3e/readme.md              |   2 +
 configuration.md                                   |  57 ++++++----
 src/interfacers/EmonHubTeslaPowerWallInterfacer.py | 118 +++++++++++++++++++++
 src/interfacers/__init__.py                        |   1 +
 5 files changed, 156 insertions(+), 24 deletions(-)
 create mode 100644 src/interfacers/EmonHubTeslaPowerWallInterfacer.py
Creating emonhub logfile
Symlinking emonhub.conf to /etc/emonhub/emonhub.conf
emonhub.service already installed

Running emonhub automatic node addition script
[[5]]
Node 5 already present
[[6]]
Node 6 already present
[[7]]
Node 7 already present
[[8]]
Node 8 already present
[[9]]
Node 9 already present
[[10]]
Node 10 already present
[[11]]
Node 11 already present
[[12]]
Node 12 already present
[[13]]
Node 13 already present
[[14]]
Node 14 already present
[[15]]
Node 15 already present
[[16]]
Node 16 already present
[[19]]
Node 19 already present
[[20]]
Node 20 already present
[[21]]
Node 21 already present
[[22]]
Node 22 already present
[[23]]
Node 23 already present
[[24]]
Node 24 already present
[[25]]
Node 25 already present
[[26]]
Node 26 already present

Start emoncms update:

-------------------------------------------------------------
Emoncms update started
Emoncms update script V1.3 (26th March 2019)
-------------------------------------------------------------
- usr directory: /home/pi
- emoncms directory: /var/www/emoncms

current settings.php md5: 59e80f731935867f5f93753d49c0fe86
Default settings.php md5: 59e80f731935867f5f93753d49c0fe86
settings.php has NOT been user modifed

Checking status of /var/www/emoncms git repository
Fetching origin
From https://github.com/emoncms/emoncms
 - [deleted]           (none)     -> origin/csv_export_phpfina_fix_dmy
   0767740f..bc0e6c25  stable                  -> origin/stable
 * [new branch]        auto_detect_timezone    -> origin/auto_detect_timezone
 * [new branch]        emoncms_component_table -> origin/emoncms_component_table
 * [new branch]        kwh_hh                  -> origin/kwh_hh
   0de83f1d..bc0e6c25  master                  -> origin/master
 * [new branch]        timezone_support_csv_export -> origin/timezone_support_csv_export
 * [new tag]           10.2.5                  -> 10.2.5
 * [new tag]           10.2.3                  -> 10.2.3
 * [new tag]           10.2.4                  -> 10.2.4
- git branch: stable
- no local changes
- running: git pull origin stable

Branch stable set up to track remote branch stable from origin.
Updating 0767740f..bc0e6c25
Fast-forward
 .travis.yml                                        |   5 +
 Lib/EmonLogger.php                                 |  59 +-
 Lib/dbschemasetup.php                              |  55 +-
 Lib/email.php                                      |  89 +-
 Lib/enum.php                                       |  29 +-
 Lib/process_old_settings.php                       |  22 +-
 Lib/units.php                                      |   6 +-
 Modules/admin/admin_controller.php                 |  27 +-
 Modules/admin/admin_main_view.php                  |  26 +-
 Modules/admin/admin_model.php                      |  69 +-
 Modules/feed/Views/feedlist_view.php               |   2 -
 Modules/feed/engine/MysqlMemory.php                |  11 +-
 Modules/feed/engine/MysqlTimeSeries.php            | 936 ++++++++++++---------
 Modules/feed/engine/TemplateEngine.php             |  67 +-
 Modules/feed/feed_model.php                        |  41 +-
 Modules/input/input_methods.php                    |   1 +
 Modules/process/Views/process_ui.js                |  30 +-
 Modules/process/Views/process_ui.php               |  14 +-
 Modules/process/process_processlist.php            |  76 +-
 Modules/user/login_block.php                       |   9 +-
 Modules/user/user.js                               |   4 +-
 Modules/user/user_controller.php                   |   2 +-
 Modules/user/user_menu.php                         |   5 +-
 Modules/user/user_model.php                        |  20 +-
 Theme/emoncms-logo.svg                             | 381 +++++++++
 composer.json                                      |  12 +-
 core.php                                           | 180 ++--
 default-settings.php                               |   6 +-
 docs/RaspberryPi/language_support.md               |  49 ++
 example.settings.php                               |   6 +-
 index.php                                          | 702 ++++++++--------
 locale.php                                         |  25 +-
 param.php                                          |  71 +-
 php-info.php                                       |   2 +-
 process_settings.php                               |  20 +-
 readme.md                                          |  40 +-
 route.php                                          |   8 +-
 scripts/examples/mqtt_input_publisher.php          |  25 +-
 scripts/services/emoncms_mqtt/emoncms_mqtt.php     |  11 +-
 scripts/services/install-service-runner-update.md  |   6 +-
 scripts/services/service-runner/service-runner.py  | 115 +--
 .../services/service-runner/service-runner.service |   4 +-
 version.txt                                        |   2 +-
 43 files changed, 2108 insertions(+), 1162 deletions(-)
 create mode 100755 Theme/emoncms-logo.svg
 create mode 100644 docs/RaspberryPi/language_support.md

NEW default settings.php md5: 59e80f731935867f5f93753d49c0fe86
settings.php not updated

-------------------------------------------------------------
Updating Emoncms Modules
-------------------------------------------------------------

------------------------------------------
Updating /var/www/emoncms/Modules/app module
------------------------------------------
Fetching origin
From https://github.com/emoncms/app
 - [deleted]         (none)     -> origin/octopus_outgoing
   90a3dc4..e5d51a4  stable     -> origin/stable
   6727a6e..e5d51a4  master     -> origin/master
 * [new tag]         2.1.6      -> 2.1.6
- git branch: stable
- git tags: 2.1.1
- no local changes
- running: git pull origin stable

Branch stable set up to track remote branch stable from origin.
Updating 90a3dc4..e5d51a4
Fast-forward
 Readme.md                                          |   29 +-
 Views/css/app.css                                  |    6 +-
 app_controller.php                                 |   19 +-
 app_model.php                                      |    2 +-
 apps/OpenEnergyMonitor/graph-nav.php               |    3 +-
 apps/OpenEnergyMonitor/myelectric2/myelectric2.php |    2 +
 apps/OpenEnergyMonitor/myenergy/myenergy.php       |    1 +
 apps/OpenEnergyMonitor/mysolarpv/mysolarpv.php     |    2 +
 apps/OpenEnergyMonitor/mysolarpvbattery/app.json   |    5 +
 .../mysolarpvbattery/mysolarpvbattery.php          | 1210 ++++++++++++++++++++
 .../mysolarpvdivert/mysolarpvdivert.php            |   39 +-
 apps/OpenEnergyMonitor/octopus/octopus.php         |  311 +++--
 apps/template/app.json                             |    6 +-
 apps/template/template.php                         |   20 +-
 composer.json                                      |    5 +-
 module.json                                        |    2 +-
 16 files changed, 1515 insertions(+), 147 deletions(-)
 create mode 100644 apps/OpenEnergyMonitor/mysolarpvbattery/app.json
 create mode 100644 apps/OpenEnergyMonitor/mysolarpvbattery/mysolarpvbattery.php

------------------------------------------
Updating /var/www/emoncms/Modules/config module
------------------------------------------
Fetching origin
From https://github.com/emoncms/config
   8d278bc..d28ff1e  stable     -> origin/stable
- git branch: stable
- git tags: 2.0.5
- no local changes
- running: git pull origin stable

Branch stable set up to track remote branch stable from origin.
Updating 8d278bc..d28ff1e
Fast-forward
 .travis.yml   |  14 ++
 LICENSE.txt   | 619 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 composer.json |  17 ++
 3 files changed, 650 insertions(+)
 create mode 100644 .travis.yml
 create mode 100644 LICENSE.txt
 create mode 100644 composer.json

------------------------------------------
Updating /var/www/emoncms/Modules/dashboard module
------------------------------------------
Fetching origin
From https://github.com/emoncms/dashboard
   3b92632..3f3404f  stable     -> origin/stable
   7c73b21..81772de  master     -> origin/master
 * [new tag]         2.0.8      -> 2.0.8
- git branch: stable
- git tags: 2.0.7
- no local changes
- running: git pull origin stable

Branch stable set up to track remote branch stable from origin.
Updating 3b92632..3f3404f
Fast-forward
 Views/js/render.js                         |  19 +++++-
 composer.json                              |   2 +-
 dashboard_controller.php                   |   2 +-
 module.json                                |   2 +-
 widget/bar/bar_render.js                   |  10 ---
 widget/battery/battery_render.js           |  13 +---
 widget/button/button_render.js             |   9 +--
 widget/cylinder/cylinder_render.js         |  20 +++---
 widget/dewpoint/dewpoint_render.js         |   9 ---
 widget/dial/dial_render.js                 |  98 +++++++++++++--------------
 widget/feedtime/feedtime_render.js         |   9 ---
 widget/feedvalue/feedvalue_render.js       |  67 ++++++++-----------
 widget/frostpoint/frostpoint_render.js     |   9 ---
 widget/heatindex/heatindex_render.js       |   9 ---
 widget/humidex/humidex_render.js           |   8 ---
 widget/isactivefeed/isactivefeed_render.js |   8 ---
 widget/jgauge/jgauge_render.js             |  74 +++++++++++---------
 widget/jgauge2/jgauge2_render.js           | 104 ++++++++++++++++++-----------
 widget/kwhperiod/kwhperiod_render.js       |  15 -----
 widget/led/led_render.js                   |  16 ++---
 widget/signal/signal_render.js             |  10 ---
 widget/sun/sun_render.js                   |   8 ---
 widget/thermometer/thermometer_render.js   |  13 ----
 widget/thresholds/thresholds_render.js     |   8 ---
 widget/windrose/windrose_render.js         |  45 ++++++++-----
 25 files changed, 251 insertions(+), 336 deletions(-)

------------------------------------------
Updating /var/www/emoncms/Modules/device module
------------------------------------------
Fetching origin
From https://github.com/emoncms/device
   34f09b1..97b763e  stable     -> origin/stable
   bfc5de3..f08ba45  master     -> origin/master
 * [new tag]         2.0.6      -> 2.0.6
- git branch: stable
- git tags: 2.0.5
- no local changes
- running: git pull origin stable

Branch stable set up to track remote branch stable from origin.
Updating 34f09b1..97b763e
Fast-forward
 LICENSE.txt           | 619 ++++++++++++++++++++++++++++++++++++++++++++++++++
 composer.json         |   5 +-
 device_controller.php |   8 +
 device_model.php      |  62 +++++
 module.json           |   2 +-
 5 files changed, 693 insertions(+), 3 deletions(-)
 create mode 100644 LICENSE.txt

------------------------------------------
Updating /var/www/emoncms/Modules/graph module
------------------------------------------
Fetching origin
From https://github.com/emoncms/graph
   5124499..6c18b0c  stable     -> origin/stable
   2635583..b6e4ce1  master     -> origin/master
- git branch: stable
- git tags: 2.0.9
- no local changes
- running: git pull origin stable

Branch stable set up to track remote branch stable from origin.
Updating 5124499..6c18b0c
Fast-forward
 graph.css     |  4 ++++
 graph.js      | 17 +++++++++++++++--
 view.php      |  1 +
 vis.helper.js |  4 ++--
 4 files changed, 22 insertions(+), 4 deletions(-)

------------------------------------------
Updating /var/www/emoncms/Modules/wifi module
------------------------------------------
Fetching origin
From https://github.com/emoncms/wifi
   274bcd5..0fd4a54  stable     -> origin/stable
   2b69da7..b9b0dbf  master     -> origin/master
 * [new tag]         2.0.3      -> 2.0.3
- git branch: stable
- git tags: 2.0.0-29-g274bcd5
- no local changes
- running: git pull origin stable

Branch stable set up to track remote branch stable from origin.
Updating 274bcd5..0fd4a54
Fast-forward
 LICENSE.txt         | 619 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 composer.json       |   5 +-
 module.json         |   2 +-
 view.html           |  59 +++--
 wifi.php            |   7 +-
 wifi_controller.php |   2 +-
 6 files changed, 670 insertions(+), 24 deletions(-)
 create mode 100644 LICENSE.txt

------------------------------------------
Updating postprocess module
------------------------------------------
Fetching origin
From https://github.com/emoncms/postprocess
   0e2d78f..5c50627  stable     -> origin/stable
   6363aeb..5c50627  master     -> origin/master
 * [new tag]         2.1.4      -> 2.1.4
 * [new tag]         2.1.3      -> 2.1.3
- git branch: stable
- git tags: 2.1.0-21-g0e2d78f
- no local changes
- running: git pull origin stable

Branch stable set up to track remote branch stable from origin.
Updating 0e2d78f..5c50627
Fast-forward
 common.php                                    | 184 +++++++++++++++++++--
 composer.json                                 |   2 +-
 postprocess-module/module.json                |   2 +-
 postprocess-module/postprocess_controller.php |  59 ++++++-
 postprocess-module/view.js                    | 127 ++++++++-------
 processes/average.php                         | 120 ++++++++++++++
 processes/basic_formula.php                   | 224 ++++++++++++++++----------
 processes/batterysimulator.php                | 185 +++++++++++++++++++++
 processes/constantflow_tokwh.php              |  32 ++--
 processes/liquidorairflow_tokwh.php           |  26 +--
 10 files changed, 770 insertions(+), 191 deletions(-)
 create mode 100644 processes/average.php
 create mode 100644 processes/batterysimulator.php

------------------------------------------
Updating sync module
------------------------------------------
Fetching origin
From https://github.com/emoncms/sync
   afd953d..109816f  stable     -> origin/stable
- git branch: stable
- git tags: 2.0.5
- no local changes
- running: git pull origin stable

Branch stable set up to track remote branch stable from origin.
Updating afd953d..109816f
Fast-forward
 composer.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

------------------------------------------
Updating backup module
------------------------------------------
Fetching origin
From https://github.com/emoncms/backup
   70894e1..da23f08  stable     -> origin/stable
   d65a722..439c981  master     -> origin/master
 * [new tag]         2.2.4      -> 2.2.4
- git branch: stable
- git tags: 2.2.2-6-g70894e1
- no local changes
- running: git pull origin stable

Branch stable set up to track remote branch stable from origin.
Updating 70894e1..da23f08
Fast-forward
 backup-module/module.json | 2 +-
 composer.json             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

------------------------------------------
Auto Installation of Emoncms Modules
------------------------------------------
- graph module already installed
- device module already installed
- postprocess module already installed
- sync module already installed
- backup module already installed

/home/pi/emonpi/sudoers.d/emoncms-rebootbutton: parsed OK

emoncms-rebootbutton sudoers entry installed
/home/pi/emonpi/sudoers.d/emoncms-filesystem: parsed OK

emoncms-filesystem sudoers entry installed
/home/pi/emonpi/sudoers.d/wifi-sudoers: parsed OK

wifi-sudoers sudoers entry installed
www-data : www-data video systemd-journal

------------------------------------------
SERVICES
------------------------------------------
emoncms_mqtt.service already installed
feedwriter.service already installed
service-runner.service already installed
------------------------------------------
Reloading systemctl deamon
Update Emoncms database
[]

Restarting Services...
- sudo systemctl restart feedwriter.service
--- ActiveState=active ---
- sudo systemctl restart emoncms_mqtt.service
--- ActiveState=active ---
- sudo systemctl restart emonhub.service
--- ActiveState=active ---
Symlinking emonpiupdate.log
Installing emoncms logrotate...

Now setting up Logrotate...
Backing up old logrotate configuration...
Linked to new logrotate configuration...
Backing up old logrotate cron job...
mv: cannot stat '/etc/cron.daily/logrotate': No such file or directory
Linked to new logrotate cron job...

Completed


Completed

Running logrotate...

set log rotate config owner to root

------------------------------------------
Emoncms update script complete
------------------------------------------


Starting emonPi LCD service..


-------------------------------------------------------------
emonPi update done: Sun 23 Aug 20:43:29 WEST 2020
-------------------------------------------------------------
restarting service-runner
service-runner: no process found

Can you do which python3 please.

The 2018 image is a Stretch image IIRC so potentially there are some Python3 conflicts (but I could be wrong on both counts).

Hi @borpin

Thank you very much for your quick reply. Here is the output.

[email protected]:~ $ which python3
/usr/bin/python3

Can you try running this command from the command line please.

@borpin Here is the output

[email protected]:~ $ /usr/bin/python3 /var/www/emoncms/scripts/services/service-runner/service-runner.py
Traceback (most recent call last):
  File "/var/www/emoncms/scripts/services/service-runner/service-runner.py", line 13, in <module>
    import redis
ImportError: No module named 'redis'

Looks like the update did not run properly - actually @TrystanLea I don’t think the update forces a pip3 install of redis.

@etricky try

pip3 install redis

then try that command to start service-runner again

1 Like

@borpin I don’t have pip3 installed, should I install it manually?

Hello @etricky do you by any chance have a spare SD card that you could use to do a full image upgrade via the method described here: https://guide.openenergymonitor.org/setup/update/#upgrading-to-a-new-emonsd-image?

Looks like I’ve missed an issue with the upgrade method on older images. It might not be easy to fix. You will likely get back up and running faster with the SD card upgrade method.

Should the service-runner release be pulled then?

Running the emonhub update should install pip3.

Exactly same issue here.
Done a full upgrade from 30Oct18 yesterday, everything seems to work but the LCD panel is blank and service-runner isn’t working. Further upgrade attempts do nothing.

I see the latest July20 image is listed as beta, is it safer to use the Oct19?.

I would say so as a quick fix.

Having just done the update of a script install, I can confirm there is a problem.

For me I solved it by doing an update/upgrade (which installed Python3) and then install pip3 followed by the pip3 redis package.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python3-pip
pip3 install redis
1 Like

@borpin I have done the steps you mention and the service runner service is now running, however, if I try to run a full update in the Admin page I get this:

LAST ENTRIES ON THE LOG FILE

Starting update via service-runner-update.sh (v2.0) >

Yes you will (see the pinned message). What is your install method? I was in a particular situation in that this is an install on a Proxmox VE Ubuntu container.

@borpin Not sure what you mean by install method. As I stated in my first comment, I have the emonSD-30Oct18 image which was working fine until the last update. I was getting ready to flash the new image on a new SD card when I saw your pinned message and assumed that by installing pip3 and redis it would fix the issue.

If you had used the scripts things would be different.

Assumptions are the mother of all f%&* ups.

It will mean that service-runner will start, but you will still not be able to run an update as that image has been removed from the updates list.

It doesn’t look like this got answered?
I just updated from 10.2.4 to 10.2.6 and hit the issue of a missing python3 redis library.

pip3 install redis

sorted it for me (thanks @borpin), @TrystanLea that step really needs to be handled by the update or this will break break a lot of service-runners, which are required to trigger any future updates, including any that might fix this :slight_smile:

It is not just the python redis, it could also be python3 & pip3 as well. Only happens on non SD based installs.

Fair point. Mine is a non-SD based install but I already had python3 and pip3.

Yes me too. That was more for any follow on readers :wink:.