Migration from v3 to v6

Hi,

Im' using EmonCMS since more than 1 year linked with my OpenRemote domotic project. So I can input KNX values into EmonCMS.

Today I wanted to upgrade my EmonCMS v3 to the current v6 version following the instructions; http://emoncms.org/site/docs/upgrading

So, I've installed the new version, updated the setting.php file with DB info and the "update" parameter, ... but the values, feeds are no more available. I've seen that a migrate.php script is required, but it's no more available in the GitHub repository. 

Does anyone could point me to this file or send me the DB script to recover my values in the new v6 schema?

Thanks for your help,

Regards

Paul Reed's picture

Re: Migration from v3 to v6

Try this guide, it's more up to date.

Paul

PhilThy's picture

Re: Migration from v3 to v6

How do you proceed if you have the pre-installed version of emoncms?

I have got as far as building/starting timestore, but when trying to upgrade emoncms I get the following:

root@emoncmspi:/var/www# git clone https://github.com/emoncms/emoncms.git
fatal: destination path 'emoncms' already exists and is not an empty directory.
root@emoncmspi:/var/www# git pull
fatal: Not a git repository (or any of the parent directories): .git

Do I just skip this part?

Paul Reed's picture

Re: Migration from v3 to v6

You need to run;

git pull origin master

from WITHIN the emoncms folder.

ie /var/www/emoncms

I can see why you ran it from /var/www though - its a typo in the installation guide.

Paul

PhilThy's picture

Re: Migration from v3 to v6

Thanks Paul, conversion to timestore is now in progress........ :)

PhilThy's picture

Re: Migration from v3 to v6

All done but things are not working :(

I am not getting any feed data and the raspberry pi/config page has the following message:

No data has been recieved from the RFM12Pi in the last 30s. Check if the Pi interface script is running, if not you may need to configure cron

I've tried restarting the script but I get the following error:

PHP Fatal error:  Cannot redeclare class ProcessArg in /var/www/emoncms/Lib/enum.php on line 3

Going to have to revert to a backup image for now, long day at work tomorrow (today)

DaveF's picture

Re: Migration from v3 to v6

Paul
I have found a similar result - all installed ok up to the point of "No data has been received from the RFM12Pi."

The method I have always used to restart the cron script was to reboot the PI - this does not work as it has in the past

This is all from the starting point of the image 2/5/13

Thanks for your patience and help Paul

 

 

 

Paul Reed's picture

Re: Migration from v3 to v6

Have you also updated your raspberry pi module?

$ cd /var/www/emoncms/Modules/raspberrypi/

$ git pull origin master

The new raspberry pi module was updated to work with Timestore.

(you will also need to update your event module - if installed)

Paul

PhilThy's picture

Re: Migration from v3 to v6

I am now getting feed data but all timestore feeds are only showing 0.3kb of data in the feeds table. No timestore feeds are showing anything in the visualisations, and also I am getting:

Notice: Undefined variable: timestore_adminkey in /var/www/emoncms/Modules/feed/feed_model.php on line 34

in the events page (though it now seems to be working)

I believe I have updated the event module:

cd /var/www/emoncms/Modules

git pull origin master

and that is showing as up to date.

My pi is running really sluggishly, though that may be down to a change of usb drive.

PhilThy's picture

Re: Migration from v3 to v6

Fixed the event error, I was in the wrong folder :)

PhilThy's picture

Re: Migration from v3 to v6

I've just tried this again with the same results, no timestore visualisations and the timestore feed sizes all = 0.3kb

Paul Reed's picture

Re: Migration from v3 to v6

It's probably worth checking that Timestore is actually running;

$ pidof timestore

should return the process ID number, but if not, start the Timestore daemon by;

cd /home/pi/timestore/src

sudo ./timestore

Paul

PhilThy's picture

Re: Migration from v3 to v6

Thanks for your help Paul, but Timestore is running.

Paul Reed's picture

Re: Migration from v3 to v6

Hi Phil, my system appeared to be running OK until now, but whilst trying to find a solution to your problem, I found that I've now got the same issue - http://openenergymonitor.org/emon/node/2806

Hopefully Trystan will pick this up.

Paul

PhilThy's picture

Re: Migration from v3 to v6

Ok Paul. I have also noticed that if I try to make a change to the process list on the input screen, the following is displayed, is this correct?

Read down the process column.

DaveF's picture

Re: Migration from v3 to v6

Paul

Thanks for you reply - need to restart the process - timestore ID is not there :(

The pi started receiving without a change however

Will go though things systematically this week end.

Dave

 

Comment viewing options

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