Upgrade emonpi created a brick: settings.php error

Hi Glyn. I have a problem I can’t find a answer to and hoped you could help.

I ‘upgraded’ my emonpi to the latest software and it returned an error -

settings.php file error

settings.php config file has new settings for this version. Copy default.settings.php to settings.php and modify the later.

To fix, check that the settings are set in settings.php or try re-creating your settings.php file from default.settings.php template

I found a community discussion between two users who have had the same problem. However, they write about changing the settings file through an editor. I have only ever communicated with the emonpi through the emoncms and I have no longer access to it. When I enter the emonpi IP address, it just returns the same error message. Even if I can get to the emoncms, will I be able to fix the problem from there?

Hope you can help
Mark

Hi Mark,

I recent update required an update to emoncms settings.php file. This file is located in /var/www/emoncms/settings.php, the update script looks to see if there are any user changes to the settings file and if not the settings.php can safely be updated with default.emonpi.settings.php.

What I think has happened in your case is easier you had made a customisation to settings.php or your are running an old version of emonSD.

This fix this, you will need to connect via SSH and manually update the settings file (creating a backup first):

$ rpi-rw
$ cp /var/www/emoncms/settings.php /var/www/emoncms/backup.settings.php
$ cp /var/www/emoncms/default.emonpi.settings.php /var/www/emoncms/settings.php
$ rpi-ro

Emoncms should now load up. I would be interested to see your emonpiupdate.log logfile to work out exactly what has happened during the update. This can be downloaded from the Setup > Admin > Download log. Please could you attach the logfile to this email.

If emoncms is still not running you will need to copy and paste emonpi update log file manually via ssh this can be done using

$ cat ~/data/emonpiupdate.log

Then copy the text on display

Thanks heaps Glyn!

I was completely lost, but it is now all working. Curiously, it seems that data was still logging to emoncms.org – so I’m extra happy that I don’t have any data gaps. The download log did not work. I have attached the log from PuTTY. Should I append the community topic with your procedure?

Mark

emonUpdateLog.txt (39.1 KB)

··· From: Glyn Hudson Sent: Friday, April 28, 2017 11:17 PM To: [email protected] Subject: [Community] [PM] Upgrade emonpi created a brick
          glyn.hudson Glyn Hudson 
        April 28  
 
  Hi Mark, 

  I recent update required an update to emoncms settings.php file. This file is located in /var/www/emoncms/settings.php, the update script looks to see if there are any user changes to the settings file and if not the settings.php can safely be updated with default.emonpi.settings.php. 

  What I think has happened in your case is easier you had made a customisation to settings.php or your are running an old version of emonSD. 

  This fix this, you will need to connect via SSH and manually update the settings file (creating a backup first):

$ rpi-rw
$ cp /var/www/emoncms/settings.php /var/www/emoncms/backup.settings.php
$ cp /var/www/emoncms/default.emonpi.settings.php /var/www/emoncms/settings.php
$ rpi-roEmoncms should now load up. I would be interested to see your emonpiupdate.log logfile to work out exactly what has happened during the update. This can be downloaded from the Setup > Admin > Download log. Please could you attach the logfile to this email.

  If emoncms is still not running you will need to copy and paste emonpi update log file manually via ssh this can be done using 

  $ cat ~/data/emonpiupdate.log

  Then copy the text on display

Visit Message or reply to this email to respond.

To unsubscribe from these emails, click here.

Yes please, that would be great.

  • sent from my mobile device
··· On 29 Apr 2017 06:03, "Mark" wrote:

EnergyX https://community.openenergymonitor.org/u/energyx Mark
https://community.openenergymonitor.org/u/energyx
April 29

Thanks heaps Glyn!

I was completely lost, but it is now all working. Curiously, it seems that
data was still logging to emoncms.org – so I’m extra happy that I don’t
have any data gaps. The download log did not work. I have attached the log
from PuTTY. Should I append the community topic with your procedure?

Mark

emonUpdateLog.txt
https://community.openenergymonitor.org/uploads/default/original/2X/8/8a499ae03816ecc9673002fccbcd7809edfc9317.txt
(39.1 KB)

Visit Message
https://community.openenergymonitor.org/t/upgrade-emonpi-created-a-brick/3850/3
or reply to this email to respond.

In Reply To
glyn.hudson https://community.openenergymonitor.org/u/glyn.hudson Glyn
Hudson https://community.openenergymonitor.org/u/glyn.hudson
April 28
Hi Mark, I recent update required an update to emoncms settings.php file.
This file is located in /var/www/emoncms/settings.php, the update script
looks to see if there are any user changes to the settings file and if not
the settings.php can safely be updated with default.emonpi.settings.php
https://github.com/emoncms/emoncms/blob/master/default.emonpi.settings.php.
… Previous Replies
glyn.hudson https://community.openenergymonitor.org/u/glyn.hudson Glyn
Hudson https://community.openenergymonitor.org/u/glyn.hudson
April 28

Hi Mark,

I recent update required an update to emoncms settings.php file. This
file is located in /var/www/emoncms/settings.php, the update script looks
to see if there are any user changes to the settings file and if not the
settings.php can safely be updated with default.emonpi.settings.php
https://github.com/emoncms/emoncms/blob/master/default.emonpi.settings.php.

What I think has happened in your case is easier you had made a
customisation to settings.php or your are running an old version of emonSD.

This fix this, you will need to connect via SSH
https://guide.openenergymonitor.org/technical/credentials/#ssh and
manually update the settings file (creating a backup first):

$ rpi-rw
$ cp /var/www/emoncms/settings.php /var/www/emoncms/backup.settings.php
$ cp /var/www/emoncms/default.emonpi.settings.php /var/www/emoncms/settings.php
$ rpi-ro

Emoncms should now load up. I would be interested to see your
emonpiupdate.log logfile to work out exactly what has happened during the
update. This can be downloaded from the Setup > Admin > Download log.
Please could you attach the logfile to this email.

If emoncms is still not running you will need to copy and paste emonpi
update log file manually via ssh this can be done using

$ cat ~/data/emonpiupdate.log

Then copy the text on display

Visit Message
https://community.openenergymonitor.org/t/upgrade-emonpi-created-a-brick/3850/3
or reply to this email to respond.

To unsubscribe from these emails, click here
https://community.openenergymonitor.org/email/unsubscribe/e0d3ba1cdb0bce844ab29564531364ecd8bbaf71041e9c66bb263e55a8cd1998
.

I will make this message thread public.