Community
OpenEnergyMonitor

Community

Problems after upgrade to 10.1.10

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:

  1. 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?)

  1. 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

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.

@tamsin, did you reboot?

Several times :slight_smile:

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)

Server Information

Server Information

Services

  • emonhub :- Active Running
  • mqtt_input :- Activating Auto-restart
  • feedwriter :- Active Running - sleep 60s 0 feed points pending write
  • emonPiLCD :- Active Running
  • redis-server :- Active Running
  • mosquitto :- Active Running

Emoncms

  • Version :- low-write 10.1.10
  • Modules :- Administration | App v1.0.0 | Config v1.0.0 | Dashboard v2.0.5 | EventProcesses | Feed | Graph v2.0.5 | Input | postprocess | CoreProcess | Schedule | Time | User | Visualisation | WiFi v2.0.0
  • Git :-

Server

  • OS :- Linux 4.1.19-v7+
  • Host :- emonpi | emonpi | (192.168.1.120)
  • Date :- 2019-10-26 15:40:57 UTC
  • Uptime :- 15:40:57 up 21 min, 1 user, load average: 0.21, 0.24, 0.20

Memory

  • RAM :- Used: 25.80%
    • Total :- 973.37 MB
    • Used :- 251.12 MB
    • Free :- 722.25 MB
      Write Load Period

Disk

  • / :- Used: 66.56%
    • Total :- 3.33 GB
    • Used :- 2.22 GB
    • Free :- 975.13 MB
    • Write Load :- 501.42 B/s (20 mins)
  • /boot :- Used: 33.22%
    • Total :- 59.95 MB
    • Used :- 19.91 MB
    • Free :- 40.03 MB
    • Write Load :- 0 B/s (20 mins)
  • /home/pi/data :- Used: 9.66%
    • Total :- 3.57 GB
    • Used :- 353.33 MB
    • Free :- 3.04 GB
    • Write Load :- 62.68 B/s (20 mins)

HTTP

  • Server :- Apache/2.4.10 (Raspbian) HTTP/1.1 CGI/1.1 80

MySQL

  • Version :- 5.5.44-0+deb8u1
  • Host :- localhost:6379 (127.0.0.1)
  • Date :- 2019-10-26 15:40:57 (UTC 00:00‌​)
  • Stats :- Uptime: 1279 Threads: 2 Questions: 1981 Slow queries: 0 Opens: 57 Flush tables: 1 Open tables: 50 Queries per second avg: 1.548

Redis

  • Version :-
    • Redis Server :- 2.8.17
    • PHP Redis :- 2.2.7
  • Host :- localhost:6379
  • Size :- 87 keys (504.56K)
  • Uptime :- 0 days

MQTT Server

  • Version :- Mosquitto 1.4.8
  • Host :- localhost:1883 (127.0.0.1)

PHP

  • Version :- 5.6.20-0+deb8u1 (Zend Version 2.6.0)
  • Modules :- apache2handler | bcmath | bz2 | calendar | Core v5.6.20-0+deb8u1 | ctype | curl | date v5.6.20-0+deb8u1 | dba | dio v0.0.4RC4 | dom v20031129 | ereg | exif v1.4 $Id: f94e075e5a1ebe5108ef2729498d2f198df3c078 $ | fileinfo v1.0.5 | filter v0.11.0 | ftp | gettext | hash v1.0 | iconv | json v1.3.6 | libxml | mbstring | mcrypt | mhash | mosquitto v0.3.0 | mysql v1.0 | mysqli v0.1 | openssl | pcre | PDO v1.0.4dev | pdo_mysql v1.0.2 | Phar v2.0.2 | posix | readline v5.6.20-0+deb8u1 | redis v2.2.7 | Reflection v$Id: fbcf7a77ca8e3d4cd7501de8025235b947b8240f $ | session | shmop | SimpleXML v0.1 | soap | sockets | SPL v0.2 | standard v5.6.20-0+deb8u1 | sysvmsg | sysvsem | sysvshm | tokenizer v0.1 | wddx | xml | xmlreader v0.1 | xmlwriter v0.1 | Zend OPcache v7.0.6-devFE | zip v1.12.5 | zlib v2.0

Pi

  • Model :- Raspberry Pi 3 Model B Rev 1.2 - 1GB (Sony UK)

  • Serial num. :- 886F7466

  • Temperature :- 42.93°C - N/A (to show GPU temp execute this command from the console “sudo usermod -G video www-data” )

  • emonpiRelease :- emonSD-03May16

  • File-system :- read-write

Client Information

Client Information

HTTP

  • Browser :- Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36
  • Language :- en-GB,en;q=0.9,cy;q=0.8

Window

  • Size :- 1352 x 697

Screen

  • Resolution :- 1440 x 900

It looks like the update of the MQTT input script has gone arwy.

systemctl status mqtt_input
systemctl status emoncms_mqtt

output please.

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.

Thanks all - up and running with the new image now :+1:

3 Likes