Can't update EmonCMS

I’m trying to update my EmonCMS running on Ubuntu 18.04 LTS. Current EmonCMS version is 10.2.3. When I click on “Update Emoncms” in the admin panel, it flashes “invalid serial port type” and goes back to the last line of the previous log.

Below is my log file:

LAST ENTRIES ON THE LOG FILE
Starting update via service-runner-update.sh (v3.0) >
- Could not find emonSD version file
git pull /opt/openenergymonitor/EmonScripts
master
* stable
On branch stable
Your branch is up to date with 'origin/stable'.

nothing to commit, working tree clean
From https://github.com/openenergymonitor/EmonScripts
492af37..dec912b stable -> origin/stable
* [new branch] emonhub_python3 -> origin/emonhub_python3
e5b4e75..6e3d2b7 master -> origin/master
* [new tag] 1.0.4-beta -> 1.0.4-beta
* [new tag] 1.0.5-beta -> 1.0.5-beta
* [new tag] 1.0.6-beta -> 1.0.6-beta
Updating 492af37..dec912b
Fast-forward
defaults/etc/logrotate.d/00_defaults | 12 ++++++++++++
install/emonsd.config.ini | 2 +-
install/init_resize.sh | 26 +++++++++++++-------------
install/main.sh | 2 +-
install/rpi-install.md | 14 +++++++++++++-
update/emonhub.sh | 15 ++++++++++++---
update/emontxv3cm.sh | 36 ++++++++++++++++++++++++++++++++++++
update/main.sh | 5 +++++
update/rfm12pi.sh | 25 +++++++++++++++++++++++++
update/service-runner-update.sh | 7 ++++++-
10 files changed, 124 insertions(+), 20 deletions(-)
create mode 100755 update/emontxv3cm.sh
create mode 100755 update/rfm12pi.sh
-------------------------------------------------------------
Main Update Script
-------------------------------------------------------------
Date: Wed Jun 10 08:18:48 UTC 2020
EUID: 1000
openenergymonitor_dir: /opt/openenergymonitor
type: all
firmware: none
Start emonhub update script:
-------------------------------------------------------------
emonHub update
-------------------------------------------------------------
EmonHub not found

Start emoncms update:
-------------------------------------------------------------
Update Emoncms Core
-------------------------------------------------------------


Checking status of /var/www/emoncms git repository
- git branch: master
- no local changes
- running: git pull origin master

Fetching origin
From https://github.com/emoncms/emoncms
b248b528..a7ddc338 master -> origin/master
From https://github.com/emoncms/emoncms
* branch master -> FETCH_HEAD
Updating b248b528..a7ddc338
Fast-forward
Modules/admin/admin_controller.php | 10 ++++++++--
Modules/admin/admin_main_view.php | 23 ++++++++++++++++++++++-
2 files changed, 30 insertions(+), 3 deletions(-)

Update Emoncms database
[]

-------------------------------------------------------------
Update Emoncms Services
-------------------------------------------------------------
emoncms_mqtt.service already installed
feedwriter.service already installed
service-runner.service already installed

Reloading systemctl deamon
Restarting Services...
- sudo systemctl restart feedwriter.service
--- ActiveState=active ---
- sudo systemctl restart emoncms_mqtt.service
--- ActiveState=active ---

-------------------------------------------------------------
Update Emoncms Modules
-------------------------------------------------------------
------------------------------------------
Updating /var/www/emoncms/Modules/app module
------------------------------------------
- git branch: master
- git tags: 2.1.1-42-ge5d51a4
- no local changes
- running: git pull origin master

Fetching origin
Already on 'master'
Your branch is up to date with 'origin/master'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/dashboard module
------------------------------------------
- git branch: master
- git tags: 2.0.3-86-g7c73b21
- no local changes
- running: git pull origin master

Fetching origin
Already on 'master'
Your branch is up to date with 'origin/master'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/device module
------------------------------------------
- git branch: master
- git tags: 2.0.4-13-gbfc5de3
- no local changes
- running: git pull origin master

Fetching origin
Already on 'master'
Your branch is up to date with 'origin/master'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/graph module
------------------------------------------
- git branch: master
- git tags: 2.0.9-2-gb6e4ce1
- no local changes
- running: git pull origin master

Fetching origin
Already on 'master'
Your branch is up to date with 'origin/master'.
Already up to date.

------------------------------------------
Updating /opt/emoncms/modules/backup module
------------------------------------------
- git branch: master
- git tags: 2.0.0-68-gd65a722
- no local changes
- running: git pull origin master

Already up to date.
Already on 'master'
Your branch is up to date with 'origin/master'.

------------------------------------------
Updating /opt/emoncms/modules/postprocess module
------------------------------------------
- git branch: master
- git tags: 2.1.3-4-g5c50627
- no local changes
- running: git pull origin master

Already up to date.
Already on 'master'
Your branch is up to date with 'origin/master'.

------------------------------------------
Updating /opt/emoncms/modules/sync module
------------------------------------------
- git branch: master
- git tags: 2.0.3-10-g8096379
- no local changes
- running: git pull origin master

Already up to date.
Already on 'master'
Your branch is up to date with 'origin/master'.

------------------------------------------
Updating /opt/emoncms/modules/usefulscripts module
------------------------------------------
- git branch: master
fatal: No names found, cannot describe anything.
- git tags:
- no local changes
- running: git pull origin master

Already up to date.
Already on 'master'
Your branch is up to date with 'origin/master'.

--------------------------------------------
Backup module installation and update script
--------------------------------------------
- Loading EmonScripts config.ini
- Copying default.config.cfg to config.cfg
- Setting config.cfg settings
- Backup module symlink already exists
- PHP Version: 7.2
- Creating /etc/php/7.2/mods-available/emoncmsbackup.ini
post_max_size = 3G
upload_max_filesize = 3G
upload_tmp_dir = /var/opt/emoncms/backup/uploads
- phpenmod emoncmsbackup
- /var/opt/emoncms/backup already exists
- /var/opt/emoncms/backup/uploads already exists
- restarting apache

Update Emoncms database
[]


-------------------------------------------------------------
emonPi update done: Wed Jun 10 08:19:25 UTC 2020
-------------------------------------------------------------
restarting service-runner

I think this has cropped up recently, have a look to see if anything in this thread helps you.

@TrystanLea

Got the update to work by commenting out the if statement causing the invalid serial port error. Not a very elegant solution though.

Now everytime I click on update it just says trigger sent and nothing more happens.

Under services, service runner is red: activating Auto-restart

Update:

Looks like pip3 redis was not installed. Got it running by:

sudo apt install python3-pip
pip3 install redis

Yes that has been identified elsewhere - @TrystanLea

@TrystanLea - fix please.