Solved: New Pi HDD emoncms setup gains extra inputs on every reboot.

I've just added a hard disk to my rpi emoncms setup and installed the Rpi HDD ready built image.

Once It was all setup I ran php import_inputs.php and then php import_full.php to replicate my emoncms.org data I then updated the database in the admin page of my local emoncms.

At this point my local emoncms only showed 4 inactive node 10 inputs but when I deleted these all my inputs appeared and started updating the feeds. 

Everything seemed to be working well but when I subsequently rebooted the Rpi I gained an extra twelve duplicate node 10 inputs instead of the original four and the wrong ones where now updating ie the inputs without feeds associated.

I spent a couple of days trying to sort this but then gave up and wiped the disk and re-imaged it and set everything up fresh once again but the problem is still there on the new setup.

Can anyone suggest how I can sort this please.

TrystanLea's picture

Re: Solved: New Pi HDD emoncms setup gains extra inputs on every reboot.

hmm, it may be an issue with the input metadata not being in-sync between redis and mysql, I will look into it.

A couple of things to try would be first updating emoncms, there have been a few updates since the last pi image which may help solve the problem.

The other may be to clear redis after running import.

which can be done by typing:

$ redis-cli

and then:

flushall

this will force a reload of all metadata including inputs.

I will see if I can replicate the problem here.

ngbod's picture

Re: Solved: New Pi HDD emoncms setup gains extra inputs on every reboot.

I checked that Emoncms is up to date and I tried the redis-cli and flushall and then updated the database in Admin but when I rebooted I got another 2 x 4 duplicate inputs again.

ngbod's picture

Re: Solved: New Pi HDD emoncms setup gains extra inputs on every reboot.

Hi Trystan, thanks for the suggestions. I finally figured out what was happening.... I had modified the raspberrypi_run.php file incorrectly. I had been using a modified raspberrypi_run.php to upload to PVoutput.org for a long time but I tried to add in the latest redis modifications to my existing file and messed up. Since then I have worked backwards and added in the PVoutput mods to the Redis version and it appears to be working properly now. The original PVOutput.org upload mods where posted by nothing clever in this thread..  spam blocker won't let me post links

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.