new emonpi does not show values after changng ip adress

emonhub says this after logging in through the web interface

 

<br />
<b>Warning</b>:  file_get_contents(/home/pi/data/emonhub.conf): failed to open stream: Permission denied in <b>/var/www/emoncms/Modules/config/config_controller.php</b> on line <b>32</b><br />

 

is there an easy way to fix this? 

 

 

 

thomasdb's picture

Re: new emonpi does not show values after changng ip adress

problem solved

Robert Wall's picture

Re: new emonpi does not show values after changng ip adress

It might help somebody else if you say what you did to solve the problem.

Bill Thomson's picture

Re: new emonpi does not show values after changng ip adress

Hi Thomas,

What was it that solved your static IP address issue?

Regards,

Bill

thomasdb's picture

Re: new emonpi does not show values after changng ip adress

 

hi ; to solve it i downloaded the image from the website, extracted it to another sd, then with linux (as root) rewritten the ip-settings to my desired fixed address, and all functioned okay. i think there went something wrong with ejecting the usbstick with the microsd after rewriting the ip info the first time. still have problem i cannot get the realtime graph to show anything in visualisations or dashboard, the 'app' - my electric, and nodes do come with values showing. i'l update the post if i get those functioning

yetanotherion's picture

Re: new emonpi does not show values after changng ip adress

I had the same issue.

EmonHub Config Editor in the UI

<br />
<b>Warning</b>:  file_get_contents(/home/pi/data/emonhub.conf): failed to open stream: Permission denied in <b>/var/www/emoncms/Modules/config/config_controller.php</b> on line <b>32</b><br />

I fixed it by logging by ssh

then:

pi@emonpi ~/data $ ls -lh emonhub.conf 

-rw-r----- 1 pi pi 8.9K Jan  5 21:53 emonhub.conf

pi@emonpi ~/data $ rpi-rw

Filesystem is unlocked - Write access

type ' rpi-ro ' to lock

pi@emonpi ~/data $ chmod a+r emonhub.conf 

pi@emonpi ~/data $ rpi-ro

Filesystem is locked - Read Only access

type ' rpi-rw ' to unlock

pi@emonpi ~/data $ ls -lh emonhub.conf 

-rw-r--r-- 1 pi pi 8.9K Jan  5 21:53 emonhub.conf

Then the content of emonhub.conf in the web ui, was the same as the one in the file system. It seems the file got wrong permissions at some point.

Comment viewing options

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