Sync process not starting

I am having some issues with the sync process.

The error reads “ emoncms_sync service is not running, please start the service to enable feed syncing.”

Seems to have been doing this for a little bit but I have been away and not noticed until today.

I checked the forum but only see some legacy posts that seem less relevant.

I have tried restarting the pi and home assistant but no dice, anyone else seen this?

@TrystanLea , is this something you would be able to advise on?

I have exactly the same problem. By chance I had a new SD card ready to install, so swapped it into my emonPi, upgraded, imported the old data and this issue is still there. Unfortunately I didn’t check that the sync service was running before importing data from old SD card.

Hello @KnightPhoenix @charlesty

It looks like you are running older module versions @KnightPhoenix, I wonder if there’s an issue caused by a partial update that’s blocking the sync module process from starting?

These are the version on my system with the sync module running ok:

Hello @TrystanLea

I’m running emonPi v1. I have the same module versions as per your screenshot, except:

Device (v2.3.6), Dynamic (not installed), Network Setup (v1.0.5), Demand Shaper (not installed), Heatpump controller (not installed), Useful scripts (v2.3.14), EmonPiLCD (v2.1.3), EmonPi (not installed).

[edit] in the update log there is a line that may or may not be relevent…

“Defaulting to user installation because normal site-packages is not writeable”. I’m not sure what this means or how to fix it.

In the sync section I have this.

Updating /opt/emoncms/modules/sync
- current branch: stable
- local changes: no
- git fetch: 
Already on 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- running module install/update script (user=pi)
[]
- reinstalling emoncms_sync.service
Removed "/etc/systemd/system/multi-user.target.wants/emoncms_sync.service".
Created symlink /etc/systemd/system/multi-user.target.wants/emoncms_sync.service → /lib/systemd/system/emoncms_sync.service.
- Service ActiveState=active
- component updated

Thank you.

Hello @charlesty can you try running the following command via SSH:

sudo systemctl status emoncms_sync.service

or perhaps:

journalctl -u emoncms_sync.service

let me know what you see

Hello @TrystanLea,

thanks for taking the time to help.

journalctl -u emoncms_sync.service

gives me

Sep 28 15:01:54 emonpi systemd[1]: emoncms_sync.service: Scheduled restart job, restart counter is at 2445.
Sep 28 15:01:54 emonpi systemd[1]: Stopped emoncms_sync.service - emoncms_sync service.
Sep 28 15:01:54 emonpi systemd[1]: Started emoncms_sync.service - emoncms_sync service.
Sep 28 15:01:54 emonpi emoncms_sync[30128]: PHP Fatal error:  Uncaught Error: Call to undefined function tr() in /var/www/emoncms/Modules/process/process_processlist.php:79
Sep 28 15:01:54 emonpi emoncms_sync[30128]: Stack trace:
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #0 /var/www/emoncms/Modules/process/process_model.php(218): Process_ProcessList->process_list()
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #1 /var/www/emoncms/Modules/process/process_model.php(91): Process->load_modules()
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #2 /var/www/emoncms/Modules/process/process_model.php(53): Process->get_process_list()
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #3 /var/www/emoncms/Modules/feed/engine/VirtualFeed.php(96): Process->__construct()
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #4 /var/www/emoncms/Modules/feed/feed_model.php(445): VirtualFeed->lastvalue()
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #5 /var/www/emoncms/Modules/feed/feed_model.php(411): Feed->redis_get_user_feeds()
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #6 /var/www/emoncms/Modules/feed/feed_model.php(507): Feed->get_user_feeds()
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #7 /opt/emoncms/modules/sync/sync-module/sync_model.php(166): Feed->get_user_feeds_with_meta()
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #8 /opt/emoncms/modules/sync/sync_upload.php(45): Sync->get_feed_list()
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #9 {main}
Sep 28 15:01:54 emonpi emoncms_sync[30128]:   thrown in /var/www/emoncms/Modules/process/process_processlist.php on line 79
Sep 28 15:01:54 emonpi emoncms_sync[30128]: Fatal error: Uncaught Error: Call to undefined function tr() in /var/www/emoncms/Modules/process/process_processlist.php:79
Sep 28 15:01:54 emonpi emoncms_sync[30128]: Stack trace:
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #0 /var/www/emoncms/Modules/process/process_model.php(218): Process_ProcessList->process_list()
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #1 /var/www/emoncms/Modules/process/process_model.php(91): Process->load_modules()
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #2 /var/www/emoncms/Modules/process/process_model.php(53): Process->get_process_list()
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #3 /var/www/emoncms/Modules/feed/engine/VirtualFeed.php(96): Process->__construct()
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #4 /var/www/emoncms/Modules/feed/feed_model.php(445): VirtualFeed->lastvalue()
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #5 /var/www/emoncms/Modules/feed/feed_model.php(411): Feed->redis_get_user_feeds()
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #6 /var/www/emoncms/Modules/feed/feed_model.php(507): Feed->get_user_feeds()
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #7 /opt/emoncms/modules/sync/sync-module/sync_model.php(166): Feed->get_user_feeds_with_meta()
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #8 /opt/emoncms/modules/sync/sync_upload.php(45): Sync->get_feed_list()
Sep 28 15:01:54 emonpi emoncms_sync[30128]: #9 {main}
Sep 28 15:01:54 emonpi emoncms_sync[30128]:   thrown in /var/www/emoncms/Modules/process/process_processlist.php on line 79
Sep 28 15:01:54 emonpi systemd[1]: emoncms_sync.service: Main process exited, code=exited, status=255/EXCEPTION
Sep 28 15:01:54 emonpi systemd[1]: emoncms_sync.service: Failed with result 'exit-code'.

and

sudo systemctl status emoncms_sync.service

gives me

pi@emonpi:~ $ sudo systemctl status emoncms_sync.service
● emoncms_sync.service - emoncms_sync service
     Loaded: loaded (/lib/systemd/system/emoncms_sync.service; enabled; preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Sun 2025-09-28 20:51:00 BST; 19s ago
    Process: 18834 ExecStart=/usr/bin/php /opt/emoncms/modules/sync/sync_upload.php sel bg (code=exited, status=255/EXCEPTION)
   Main PID: 18834 (code=exited, status=255/EXCEPTION)
        CPU: 261ms
pi@emonpi:~ $

thanks again.

It looks to be the same function causing the problem as this: Emoncms v11.9.8 stable release - #12 by Bramco

Hello @Robert.Wall @TrystanLea ,

Thanks again for your assistance with this.

I tried moving all the system components from Stable to Master, and back again (via the Admin/Components page). No difference.

I tried using the same commands as suggested in that other post on both the App and Sync modules.

pi@emonpi:/var/www/emoncms/Modules/app $ git status
On branch stable
Your branch is up to date with 'origin/stable'.

nothing to commit, working tree clean
pi@emonpi:/var/www/emoncms/Modules/app $ git pull origin stable
From https://github.com/emoncms/app
 * branch            stable     -> FETCH_HEAD
Already up to date.
pi@emonpi:/var/www/emoncms/Modules/app $ git checkout .
Updated 0 paths from the index
pi@emonpi:/var/www/emoncms/Modules/app $ 
pi@emonpi:/opt/emoncms/modules/sync/sync-module $ git status
On branch stable
Your branch is up to date with 'origin/stable'.

nothing to commit, working tree clean
pi@emonpi:/opt/emoncms/modules/sync/sync-module $ git pull origin stable
From https://github.com/emoncms/sync
 * branch            stable     -> FETCH_HEAD
Already up to date.
pi@emonpi:/opt/emoncms/modules/sync/sync-module $ git checkout .
Updated 0 paths from the index
pi@emonpi:

Here’s the most recent full upgrade log

Updating /var/www/emoncms
- current branch: master
- local changes: no
- git fetch: 
Switched to branch 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /var/www/emoncms/Modules/app
- current branch: master
- local changes: no
- git fetch: 
Switched to branch 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /var/www/emoncms/Modules/config
- current branch: master
- local changes: no
- git fetch: 
Switched to branch 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /var/www/emoncms/Modules/dashboard
- current branch: master
- local changes: no
- git fetch: 
Switched to branch 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /var/www/emoncms/Modules/device
- current branch: master
- local changes: no
- git fetch: 
Switched to branch 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /var/www/emoncms/Modules/graph
- current branch: master
- local changes: no
- git fetch: 
Switched to branch 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /var/www/emoncms/Modules/setup
- current branch: master
- local changes: no
- git fetch: 
Switched to branch 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /opt/emoncms/modules/backup
- current branch: master
- local changes: no
- git fetch: 
Switched to branch 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- running module install/update script (user=pi)
- config.cfg already exists, left unmodified
- creating /etc/php/8.1/mods-available/emoncmsbackup.ini
post_max_size = 3G
upload_max_filesize = 3G
upload_tmp_dir = /var/opt/emoncms/backup/uploads
- phpenmod emoncmsbackup
- restarting apache
- component updated
Updating /opt/emoncms/modules/network
- current branch: master
- local changes: no
- git fetch: 
Switched to branch 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- running module install/update script (user=pi)
This script must be run as root
Try "sudo /opt/emoncms/modules/network/install.sh"
- component updated
Updating /opt/emoncms/modules/postprocess
- current branch: master
- local changes: no
- git fetch: 
Switched to branch 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /opt/emoncms/modules/sync
- current branch: master
- local changes: no
- git fetch: 
Switched to branch 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- running module install/update script (user=pi)
[]
- reinstalling emoncms_sync.service
Removed "/etc/systemd/system/multi-user.target.wants/emoncms_sync.service".
Created symlink /etc/systemd/system/multi-user.target.wants/emoncms_sync.service → /lib/systemd/system/emoncms_sync.service.
- Service ActiveState=active
- component updated
Updating /opt/emoncms/modules/usefulscripts
- current branch: master
- local changes: no
- git fetch: 
Switched to branch 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /opt/openenergymonitor/avrdude-rpi
- current branch: master
- local changes: no
- git fetch: 
Switched to a new branch 'stable'
- git checkout: branch 'stable' set up to track 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /opt/openenergymonitor/emonhub
- current branch: master
- local changes: no
- git fetch: 
Switched to branch 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- running module install/update script (user=pi)
EmonHub directory: /opt/openenergymonitor/emonhub
emonSD_pi_env provided in arg = 1
user provided as arg = pi
installing or updating emonhub dependencies
Reading package lists...
Building dependency tree...
Reading state information...
python3-serial is already the newest version (3.5-1.1).
python3-configobj is already the newest version (5.0.8-1).
python3-pip is already the newest version (23.0.1+dfsg-1+rpt1).
python3-pymodbus is already the newest version (3.0.0-7).
bluetooth is already the newest version (5.66-1+rpt1+deb12u2).
python3-spidev is already the newest version (20200602~200721-1+bookworm).
0 upgraded, 0 newly installed, 0 to remove and 246 not upgraded.
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: paho-mqtt==1.6.1 in /home/pi/.local/lib/python3.11/site-packages (1.6.1)
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (2.28.1)
Requirement already satisfied: py-sds011 in /home/pi/.local/lib/python3.11/site-packages (0.9)
Requirement already satisfied: sdm_modbus in /home/pi/.local/lib/python3.11/site-packages (0.7.0)
Requirement already satisfied: minimalmodbus in /home/pi/.local/lib/python3.11/site-packages (2.1.1)
Requirement already satisfied: pyserial in /usr/lib/python3/dist-packages (from py-sds011) (3.5)
Requirement already satisfied: pymodbus>=3.5.0 in /home/pi/.local/lib/python3.11/site-packages (from sdm_modbus) (3.6.3)
Requirement already satisfied: pyserial-asyncio>=0.6.0 in /usr/lib/python3/dist-packages (from sdm_modbus) (0.6)
Remove console from /boot/cmdline.txt
Stop and disable serial service
Unit /etc/systemd/system/[email protected] is masked, ignoring.
/etc/emonhub directory already exists
Setting ownership of /var/log/emonhub to pi
Setting ownership of /var/log/emonhub/emonhub.log to pi and permissions to 644
Installing /usr/local/bin/emonhub symlink
emonhub.service already installed
- Service ActiveState=active
- component updated
Updating /opt/openenergymonitor/emonPiLCD
- current branch: master
- local changes: no
- git fetch: 
Switched to branch 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- running module install/update script (user=pi)
- installing python3-rpi-lgpio
Reading package lists...
Building dependency tree...
Reading state information...
python3-rpi-lgpio is already the newest version (0.6-0~rpt1).
0 upgraded, 0 newly installed, 0 to remove and 246 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
python3-smbus is already the newest version (4.3-2+b2).
i2c-tools is already the newest version (4.3-2+b2).
python3-gpiozero is already the newest version (2.0.1-0+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 246 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
libopenjp2-7 is already the newest version (2.5.0-2+deb12u2).
0 upgraded, 0 newly installed, 0 to remove and 246 not upgraded.
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: redis in /usr/local/lib/python3.11/dist-packages (5.0.1)
Requirement already satisfied: paho-mqtt in /home/pi/.local/lib/python3.11/site-packages (1.6.1)
Requirement already satisfied: xmltodict in /home/pi/.local/lib/python3.11/site-packages (0.13.0)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (2.28.1)
Requirement already satisfied: adafruit-circuitpython-ssd1306 in /home/pi/.local/lib/python3.11/site-packages (2.12.16)
Requirement already satisfied: Pillow in /home/pi/.local/lib/python3.11/site-packages (10.2.0)
Requirement already satisfied: async-timeout>=4.0.2 in /usr/local/lib/python3.11/dist-packages (from redis) (4.0.3)
Requirement already satisfied: Adafruit-Blinka in /home/pi/.local/lib/python3.11/site-packages (from adafruit-circuitpython-ssd1306) (8.31.0)
Requirement already satisfied: adafruit-circuitpython-busdevice in /home/pi/.local/lib/python3.11/site-packages (from adafruit-circuitpython-ssd1306) (5.2.6)
Requirement already satisfied: adafruit-circuitpython-framebuf in /home/pi/.local/lib/python3.11/site-packages (from adafruit-circuitpython-ssd1306) (1.6.5)
Requirement already satisfied: Adafruit-PlatformDetect>=3.53.0 in /home/pi/.local/lib/python3.11/site-packages (from Adafruit-Blinka->adafruit-circuitpython-ssd1306) (3.59.0)
Requirement already satisfied: Adafruit-PureIO>=1.1.7 in /home/pi/.local/lib/python3.11/site-packages (from Adafruit-Blinka->adafruit-circuitpython-ssd1306) (1.1.11)
Requirement already satisfied: pyftdi>=0.40.0 in /home/pi/.local/lib/python3.11/site-packages (from Adafruit-Blinka->adafruit-circuitpython-ssd1306) (0.55.0)
Requirement already satisfied: adafruit-circuitpython-typing in /home/pi/.local/lib/python3.11/site-packages (from Adafruit-Blinka->adafruit-circuitpython-ssd1306) (1.9.6)
Requirement already satisfied: RPi.GPIO in /home/pi/.local/lib/python3.11/site-packages (from Adafruit-Blinka->adafruit-circuitpython-ssd1306) (0.7.1)
Requirement already satisfied: rpi-ws281x>=4.0.0 in /home/pi/.local/lib/python3.11/site-packages (from Adafruit-Blinka->adafruit-circuitpython-ssd1306) (5.0.0)
Requirement already satisfied: sysv-ipc>=1.1.0 in /home/pi/.local/lib/python3.11/site-packages (from Adafruit-Blinka->adafruit-circuitpython-ssd1306) (1.1.0)
Requirement already satisfied: pyusb!=1.2.0,>=1.0.0 in /home/pi/.local/lib/python3.11/site-packages (from pyftdi>=0.40.0->Adafruit-Blinka->adafruit-circuitpython-ssd1306) (1.2.1)
Requirement already satisfied: pyserial>=3.0 in /usr/lib/python3/dist-packages (from pyftdi>=0.40.0->Adafruit-Blinka->adafruit-circuitpython-ssd1306) (3.5)
Requirement already satisfied: adafruit-circuitpython-requests in /home/pi/.local/lib/python3.11/site-packages (from adafruit-circuitpython-typing->Adafruit-Blinka->adafruit-circuitpython-ssd1306) (2.0.4)
Requirement already satisfied: typing-extensions~=4.0 in /home/pi/.local/lib/python3.11/site-packages (from adafruit-circuitpython-typing->Adafruit-Blinka->adafruit-circuitpython-ssd1306) (4.9.0)
- reinstalling emonPiLCD.service
Removed "/etc/systemd/system/emonPiLCD.service".
Removed "/etc/systemd/system/multi-user.target.wants/emonPiLCD.service".
- installing emonPiLCD.service
Created symlink /etc/systemd/system/emonPiLCD.service → /opt/openenergymonitor/emonPiLCD/emonPiLCD.service.
Created symlink /etc/systemd/system/multi-user.target.wants/emonPiLCD.service → /opt/openenergymonitor/emonPiLCD/emonPiLCD.service.
- Service ActiveState=active
- component updated
Updating /opt/openenergymonitor/EmonScripts
- current branch: master
- local changes: no
- git fetch: 
Switched to branch 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /opt/openenergymonitor/RFM2Pi
- current branch: master
- local changes: no
- git fetch: 
Switched to a new branch 'stable'
- git checkout: branch 'stable' set up to track 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
- all components updated

Not sure if this (from the log above) is an issue?

Defaulting to user installation because normal site-packages is not writeable

I don’t remember ever changing any ‘ini’ settings via SSH - all done via UI.

Also, I’m pretty sure ‘Demand Shaper’ module was installed before, although I wasn’t using it.

thanks again.

Apologies finally got to the bottom of this.

The reason I was not seeing the error about the missing tr() function was that I didnt have any virtual feeds on my system! Fix now implemented. The latest version of the sync module with this fix is version 3.2.4 available on both stable and master.

1 Like

Hello @TrystanLea

You’re a star! Thank you.

Sync service now running fine, after an update.

Hi @TrystanLea -

I’m running a rather old (but fingers crossed still working) rPi 2B with emonSD-02Oct2019 and did an update recently, after which the mqtt_input service fails to start, and cites the same error in /var/www/emoncms/Modules/process/process_processlist.php regarding the missing tr() function.

Is there any possibility that you fixed the problem for the Sync service, but not the mqtt_input? I’m on 3.2.4 for Sync and 2.4.9 for PostProcess, via Stable.

I would be really grateful for any guidance.

The odd thing is that the MQTT broker seems to work fine for internal emoncms things, but one non-emoncms device I have that talks to that MQTT broker to control some lighting, and which uses a different login/password than the emoncms defaults, no longer seems to work when the mqtt_input service is in this constant ‘retrying to start’ state.

This slightly ‘off-the-beaten-track’ use of the MQTT broker (which I grant you is not emoncms related, but simply utilising a very handy presence of an MQTT broker already in my house) might be why it’s not shown up in normal circumstances and been spotted, but then again, perhaps it’s entirely unrelated?

Either way, I’d really appreciate being able to bring up mqtt_input and correct this error if at all possible. Many thanks!

Nov 25 13:08:05 emonpi systemd[1]: Started Emoncms MQTT Input Script.

Nov 25 13:08:05 emonpi mqtt_input[2539]: PHP Fatal error: Uncaught Error: Call to undefined function tr() in /var/www/emoncms/Modules/process/process_processlist.php:79

Nov 25 13:08:05 emonpi mqtt_input[2539]: Stack trace:

Nov 25 13:08:05 emonpi mqtt_input[2539]: #0 /var/www/emoncms/Modules/process/process_model.php(218): Process_ProcessList->process_list()

Nov 25 13:08:05 emonpi mqtt_input[2539]: #1 /var/www/emoncms/Modules/process/process_model.php(91): Process->load_modules()

Nov 25 13:08:05 emonpi mqtt_input[2539]: #2 /var/www/emoncms/Modules/process/process_model.php(53): Process->get_process_list()

Nov 25 13:08:05 emonpi mqtt_input[2539]: #3 /var/www/emoncms/scripts/phpmqtt_input.php(115): Process->__construct(Object(mysqli), Object(Input), Object(Feed), ‘UTC’)

Nov 25 13:08:05 emonpi mqtt_input[2539]: #4 {main}

Nov 25 13:08:05 emonpi mqtt_input[2539]: thrown in /var/www/emoncms/Modules/process/process_processlist.php on line 79

Nov 25 13:08:05 emonpi mqtt_input[2539]: Fatal error: Uncaught Error: Call to undefined function tr() in /var/www/emoncms/Modules/process/process_processlist.php:79

Nov 25 13:08:05 emonpi mqtt_input[2539]: Stack trace:

Nov 25 13:08:05 emonpi mqtt_input[2539]: #0 /var/www/emoncms/Modules/process/process_model.php(218): Process_ProcessList->process_list()

Nov 25 13:08:05 emonpi mqtt_input[2539]: #1 /var/www/emoncms/Modules/process/process_model.php(91): Process->load_modules()

Nov 25 13:08:05 emonpi mqtt_input[2539]: #2 /var/www/emoncms/Modules/process/process_model.php(53): Process->get_process_list()

Nov 25 13:08:05 emonpi mqtt_input[2539]: #3 /var/www/emoncms/scripts/phpmqtt_input.php(115): Process->__construct(Object(mysqli), Object(Input), Object(Feed), ‘UTC’)

Nov 25 13:08:05 emonpi mqtt_input[2539]: #4 {main}

Nov 25 13:08:05 emonpi mqtt_input[2539]: thrown in /var/www/emoncms/Modules/process/process_processlist.php on line 79

Nov 25 13:08:05 emonpi systemd[1]: mqtt_input.service: Main process exited, code=exited, status=255/EXCEPTION

Nov 25 13:08:05 emonpi systemd[1]: mqtt_input.service: Failed with result ‘exit-code’.

Hi @TrystanLea - hope this is ok, but I resolved the issue (with a little help from a friend - thanks Pete), and I’ve made a pull-request for you, in case it lightens your load a little. No need to accept it if it’s not up to standard, but the process is there and easily reworked if needs be.

Many thanks!