tamsin
(Tamsin Slinn)
1
Hi, I just set up the emonPi after not using it for over a year due to moving house. The power inputs/feeds I’d previously set up all worked fine. Then I thought I’d click the upgrade button and now the inputs just say “n/a NULL” where I think they should have a time and a value.
I’m not sure how to start debugging. A couple of things I noticed in the admin:
-
It can’t find the log file. It says:
The log file has no write permissions or does not exists.
To fix, log-on on shell and do:
touch /var/log/emoncms/emoncms.log
chmod 666 /var/log/emoncms/emoncms.log
I sshed in and the log file appears to be at /var/log/emoncms.log - I tried creating the emoncms subdirectory but it gets removed (on reboot I think?)
-
mqtt input says mqtt_input Activating Auto-restart
If I run sudo systemctl status emoncms_mqtt.service the output is:
emoncms_mqtt.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
I’m not sure how to proceed so any advice gratefully received, thanks!
Welcome back, Tamsin.
There have been BIG changes recently. I think the recommendation will be to back up your data, get the brand new image (on a new SD card, keeping the old one as a backup), then import all your old data. There have been quite a few others with more-or-less the same problem lately, so a search should show them.
I’m not an emonCMS expert, so I’ll stop there.
1 Like
tamsin
(Tamsin Slinn)
3
Ah ok, thanks! I’m not too fussed about the old data anyway, so I’ll just do a fresh build.
I’d still start with a new SD card - wear and all that.
And beware - your troubles might not be over - there seem to be a few teething problems still.
borpin
(Brian Orpin)
7
What version is emoncms reporting it as being at?
[edit] Can you click on the button ‘copy as markdown’ next to ‘Server Information’ and paste here (no further formatting required)
borpin
(Brian Orpin)
9
It looks like the update of the MQTT input script has gone arwy.
systemctl status mqtt_input
systemctl status emoncms_mqtt
output please.
borpin
(Brian Orpin)
10
Just noticed this. I suggest the easiest way will be to get the new image if you are not bothered about the old data.
If you have a 16GB card it will just work.
if you want to build yourself then use the new scripts. There is an issue on partition sizing on anything other than 16GB.
tamsin
(Tamsin Slinn)
11
Thanks all - up and running with the new image now 
3 Likes