Thanks Gordon. I had one system that was running the latest version fall out of sync a couple of days back unfortunately, so it’s looks like this is still not a solved issue.
I watched my problem node after restarting the sync service and the message “No response from remote server” would pop up every 10-30 seconds, then go away for 10-30, and repeat.
The status would continue to increase the number of points that the local is ahead.
So, it seems for some reason, emonCMS cloud is not responding to the local node request for sync?
Are there any logs or debug scripts that I can run to assist in diagnosing this issue?
Hi Trystan, unfortunately, this sync issue seems to be worsening. I am having sites fall behind almost every other day, and each time, I have to restart sync to resolve the issue.
I was planning on re-inserting the cron job you suggested a while back, but I wanted to see if there is anything I could do to assist in diagnosing this issue, such as collecting logs or further troubleshooting.
I had thought it might be related to weak cellular connections, but I also have an ethernet system that has fallen behind.
The cron job you suggested earlier is.
sudo crontab -e
and then add:
0 0 * * * systemctl restart emoncms_sync.service
Please advise.
thanks,
Gordon
Thanks Gordon, I had to restart one of my systems using this earlier. Agreed that there is still an issue here!
Hi Trystan,
is there any troubleshooting that I can assist with?
Wanted to update you on my latest activity on this subject.
I added the cron job to all my systems, and I have not had an issue with sync since. The systems have the sync setup AND the cron job both active, and none of the systems are running behind.
Thanks @grod55 that’s good to know, this is still on my todo list, I would like to fix this properly so that the cron solution is not needed but it is still an issue at the moment and so keeping that cron in place is best for now. Thanks again!
Hi Trystan,
Well, my issue is more related to network connectivity issues. Adding the corn job solved the problem for all but one location, and this is the one with the weakest signal (we use cellular routers to connect to the internet). I have noticed that this site lags behind at least once a week.
Below is a snapshot of today’s sync status. Even though the sync service is running, it hasn’t uploaded for 21 hours prior.
Once I log in to the admin panel and restart the sync service, it catches up in approximately 1 minute. It is interesting that restarting sync through the admin panel works, whereas cron does not always work.
I wonder if reducing the upload size at this location to 50kb vs 100kb would assist?
Thoughts?
Thanks,
Gordon