Problem updating emoncms.org after sudo apt-get upgrade on a raspberry pi

Hi all.

My raspberry pi was happily updating emoncms.org until I did a sudo apt-get upgrade/update.

Since then my feeds (on both the local pi and emoncms.org show as inactive)

Tailing the /var/log/rfm12piphp.log shows updates and the sending remote data message. The pi page shows the scripts is running message and authentication is successful.

Where should I look from here please?

Thank you.

Duchess

Paul Reed's picture

Re: Problem updating emoncms.org after sudo apt-get upgrade on a raspberry pi

Are there any error messages in the log?

I presume that you were updating/upgrading the Raspberry Pi (not emoncms).

Paul

Duchess's picture

Re: Problem updating emoncms.org after sudo apt-get upgrade on a raspberry pi

Hi Paul

The log just shows the following after a reboot:

00,21,03,00s
Sending remote data00,21,04,00s
00,21,04,00s
Sending remote data00,21,04,00s
00,21,08,00s
Sending remote data00,21,08,00

git pull origin master returns with

fatal: Not a git repository (or any of the parent directories): .git

I also noticed the following error appearing once:

PHP Fatal error:  Call to a member function fetch_object() on a non-object in /var/www/emoncms/Modules/raspberrypi/raspberrypi_model.php on line 29

Thank you for the help.

 

Penny

 

Duchess's picture

Re: Problem updating emoncms.org after sudo apt-get upgrade on a raspberry pi

My bad, once I cd'd to the /var/www/emoncms folder the git pull origin master does an update. However the feed status on the local pi still shows inactive :-(

 

Penny

 

Duchess's picture

Re: Problem updating emoncms.org after sudo apt-get upgrade on a raspberry pi

Ok, fixed it. What I needed to do was as follows:

sudo service rfm12piphp stop
cd /var/www/emoncms
git pull
cd /var/www/emoncms/Modules
git pull
cd /var/www/emoncms/Modules/raspberrypi
git pull
sudo cp /var/www/emoncms/Modules/raspberrypi/rfm12piphp /etc/init.d/
sudo chmod 755 /etc/init.d/rfm12piphp
sudo update-rc.d rfm12piphp defaults
sudo service rfm12piphp start
sudo reboot

All good now, thanks for listening guys :-)

Penny

Paul Reed's picture

Re: Problem updating emoncms.org after sudo apt-get upgrade on a raspberry pi

It looks as though you've updated and almost reinstalled emoncms, but great news that you are back working OK.

Paul

Comment viewing options

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