Emoncms_sync does not start :-(

Hi,
Somehow, I don’t get emoncms_sync to run.

Clicking on “Start” does not do anything !

System is up-to-date.

Hi @FredM67 - do you need Sync? This keeps defined feeds of two instances of emoncms in ‘sync’ with each other.

Have you configured any feeds to be synced? If not, that may be why it doesn’t start.

Personally I don’t use it :frowning:

Well, yes/no.

I’ve just created/added my heatpump on heatpumpmonitor.org, and I wanted to import all my local data.

If there’s another way to do that, I’m ok with it… but then how ? :smiley:

Ah, that I don’t know. @TrystanLea or @dMb may be able to help. Might be worth updating the thread title so the heat pump folk pick it up :slight_smile:

Well, I’ll create a new thread…
The start point of my problem is that the sync service does not start !

Have you configured any feeds to be synced?

@FredM67 as a matter of interest, how are you running your local instance? HA addon?

Well, the doc says, when the sync module is installed and started, then you can select what to sync…
Problem is, the module is not starting !!

BTW, I’ve found a thread from @TrystanLea ( Sharing heat pump data, An open heat pump dataset? - Emoncms - OpenEnergyMonitor Community), he writes just after the picture, “Im not uploading data to this account in realtime (hence the not live note). Im logging the data locally and then just doing a periodic upload using the emoncms sync module.”

That was exactly my idea :smiley:

Well, after going deeper, here’s what I see:

Jun 26 12:01:13 FreeboxVM systemd[1]: Started emoncms_sync service.
Jun 26 12:01:13 FreeboxVM emoncms_sync[3329]: PHP Warning:  include(Modules/sync/sync_model.php): failed to open stream: No such file or directory in /opt/emoncms/modules/sync/sync_upload.php on line 21
Jun 26 12:01:13 FreeboxVM emoncms_sync[3329]: Warning: include(Modules/sync/sync_model.php): failed to open stream: No such file or directory in /opt/emoncms/modules/sync/sync_upload.php on line 21
Jun 26 12:01:13 FreeboxVM emoncms_sync[3329]: PHP Warning:  include(): Failed opening 'Modules/sync/sync_model.php' for inclusion (include_path='.:/usr/share/php') in /opt/emoncms/modules/sync/sync_upload.php on line 21
Jun 26 12:01:13 FreeboxVM emoncms_sync[3329]: Warning: include(): Failed opening 'Modules/sync/sync_model.php' for inclusion (include_path='.:/usr/share/php') in /opt/emoncms/modules/sync/sync_upload.php on line 21
Jun 26 12:01:13 FreeboxVM emoncms_sync[3329]: PHP Fatal error:  Uncaught Error: Class 'Sync' not found in /opt/emoncms/modules/sync/sync_upload.php:22
Jun 26 12:01:13 FreeboxVM emoncms_sync[3329]: Stack trace:
Jun 26 12:01:13 FreeboxVM emoncms_sync[3329]: #0 {main}
Jun 26 12:01:13 FreeboxVM emoncms_sync[3329]:   thrown in /opt/emoncms/modules/sync/sync_upload.php on line 22
Jun 26 12:01:13 FreeboxVM emoncms_sync[3329]: Fatal error: Uncaught Error: Class 'Sync' not found in /opt/emoncms/modules/sync/sync_upload.php:22
Jun 26 12:01:13 FreeboxVM emoncms_sync[3329]: Stack trace:
Jun 26 12:01:13 FreeboxVM emoncms_sync[3329]: #0 {main}
Jun 26 12:01:13 FreeboxVM emoncms_sync[3329]:   thrown in /opt/emoncms/modules/sync/sync_upload.php on line 22
Jun 26 12:01:13 FreeboxVM systemd[1]: emoncms_sync.service: Main process exited, code=exited, status=255/EXCEPTION
Jun 26 12:01:13 FreeboxVM systemd[1]: emoncms_sync.service: Failed with result 'exit-code'.

Some paths are wrong but even adding and/copy duplication paths/files, it does not work !
The repo is up-to-date. I even erased it completely to be sure I’ve the latest stable version.

sync_model.php is located here /opt/emoncms/modules/sync/sync-module/sync_model.php

There’s no directory Modules but instead modules.