[SOLVED] Problem with emoncms.org db replication

Hello everybody,

I'm trying to copy my db from emoncms.org to a local server.

The command "php import_inputs.php"  apparently works: I have all my inputs replicated even if PHP returns the following message:

"PHP Notice:  Undefined property: stdClass::$record in /home/usr/usefulscripts/replication/import_inputs.php on line 16"

The command "sudo php import_full.php" gives no errors and it seems that it fetches all the timestore layers. Checking the /var/lib/timestore directory I see all the expected .dat files.

The problem is that the visualization of the feeds doesn't work (except for the mysql feed).

Another hint: the feeds list shows all feeds as inactive.

Can someone please point me in the right direction?

Thanks.

Federico.

TrystanLea's picture

Re: [SOLVED] Problem with emoncms.org db replication

Hello Federico, do you have timestore running on your local server?

If your local server is a raspberrypi this might apply: https://github.com/emoncms/emoncms/issues/112

 

efidi13's picture

Re: [SOLVED] Problem with emoncms.org db replication

Hi Trystan, your advice was the right one!

My local server is a Debian virtual machine (VBox) and not a raspberrypi. Anyway the debugging done by threldor is useful for my case too.

Stripping away the last 4 bytes of the tsdb files I have my nice visualizations back.

Thanks a lot to you and to threldor.

Regards,

Federico.

Comment viewing options

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