[SOLVED] Out of the Box : All nodes inactives

I received a brand new emonpi this week and all nodes are inactive... The problem may be related to some permissions issue on the emonhub.conf file : http://openenergymonitor.org/emon/node/12012 Anyway the problem look similar to : http://openenergymonitor.org/emon/node/11959 http://openenergymonitor.org/emon/node/10771 Except that I didn't update the machine. The problem appear out of the box. The emonhub log is empty I checked and the 2 commits below are applied on my emonpi : https://github.com/openenergymonitor/emonhub/commit/2a8664a5eef57fba9907... https://github.com/openenergymonitor/emonhub/commit/0f8ba5ef9c414a204553... Any help is welcome

Paul Reed's picture

Re: [SOLVED] Out of the Box : All nodes inactives

Daamien, you appear to have started 2 threads basically dealing with the same problem. Which one do you want to keep?

Paul

pb66's picture

Re: [SOLVED] Out of the Box : All nodes inactives

@Daamien, can you set "loglevel = DEBUG" in emonhub.conf and provide us with some emonhub.log,

Can you also confirm if the emonhub service is running  in case the change of permissions (in your other thread) has caused emonhub to fail to start. if so the discussion should be merged with that one.

sudo service emonhub status

If emonhub is running and loglevel set to debug there should always be something in the log and it is usally quite good at telling you what's going on (or not)

The 22Dec image has a "firstbootupdate" script so that the first time you power up the emonPi with an active internet connection it automatically updates without any user intervension, the idea is you should always get the "very" latest up to the minute software the very first time you power up.

Paul 

daamien's picture

Re: [SOLVED] Out of the Box : All nodes inactives

I'm not sure the 2 problems are related, but if you really need to remove one the 2 threads please delete the other one and keep this one.

daamien's picture

Re: [SOLVED] Out of the Box : All nodes inactives

Hi Paul Thanks for the answers.

The problem is fixed and the node 5 is now active.

First, I ran an upgrade with the web interface and then 

$ sudo service emonhub status
[FAIL] Checking OpenEnergyMonitor emonHub: emonhub process has failed!

$ sudo service emonhub start

Unable to load configuration file: /home/pi/data/emonhub.conf
 

$ ls -lh /home/pi/data/emonhub.conf

-rw-rw---- 1 pi www-data 8.9K Jan 16 17:20 /home/pi/data/emonhub.conf

$ sudo chmod a+r /home/pi/data/emonhub.conf

 

So the emonhub was not running because of the permission problems. 

As far as I remember the initial permissions were 640 with user pi and group pi...

Thanks again for your help !

 

Comment viewing options

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