I am trying to debug 2 issues I am having with the emoncms I am running on the raspberry pi w
I had to do a manual built because the raspbian which emonpi sd build is based on won’t load the wifi driver, so you are kind of stuck without wifi and obviously without ethernet
so the build seems to work fine, I even implemented the low-write EXCEPT for 2 issues:
“create backup” button does nothing
“run process” button from post processor module does nothing
occasionally if I keep pressing “run process” button I get a error: "uncaught typeerror: cannot read property process of undefined
url: ip/emoncms/Modules/postprocess/view.js
Line 171, column 34
If I create backup from shell emoncms-export.sh it works, creates the backup and I can see it and download it form the backup module
If I manually run sudo php /home/pi/postprocess/postprocess_run.php then the module data gets processed and i can see the data generated.
I get nothing in logs
So basically it’s one or two issues where pressing the button does noting.
Is there any debug mode I could enable to see why this happens?
Or any other advice?
The backup and post process are separate Modules that need to be installed independently.
What instructions did you follow? - whatever you followed needs to be updated so if you could let us know it would be very useful.
Firstly you also need to install service-runner. You will find the files are already there and also the newer emoncms-mqtt service (instructions in same place.
We are in the process of reworking the install and update process to make it easier for circumstances like yours.
when I reboot I get some log entries in /var/log/service-runner
Could not connect to Redis at 127.0.0.1:6379: Connection refused
Could not connect to Redis at 127.0.0.1:6379: Connection refused
Could not connect to Redis at 127.0.0.1:6379: Connection refused
Could not connect to Redis at 127.0.0.1:6379: Connection refused
Could not connect to Redis at 127.0.0.1:6379: Connection refused
starting service-runner
Could not connect to Redis at 127.0.0.1:6379: Connection refused
Could not connect to Redis at 127.0.0.1:6379: Connection refused
Could not connect to Redis at 127.0.0.1:6379: Connection refused
Could not connect to Redis at 127.0.0.1:6379: Connection refused
I tried killing the process and restarting manually. Log seems to be fine when I do that
Terminated
starting service-runner
Am I running the right service-runner?
About mqtt: houston, we may have a problem!
Mar 28 20:14:43 emonpi mqtt_input[948]: PHP Warning: Module ‘redis’ already loaded in Unknown on line 0
I installed the new services
I got an error about redis not running, so I reinstalled it (or might it have not been installed in the first place?)
After I installed the new services: emoncms_mqtt, Feedwriter, Service Runner now backup works, buttons from post processor work
not sure if post processor runs automatically to update, but that should be easy fix
thanks all for help and pointing me to the right direction!