Stranged thing happened two days ago.
My emoncms.org (so logging to the hosting environment, not local) stopped logging data. Reset did not work.
I checked this issue:
Any further suggestions?
Beste regards,
Antoine
Stranged thing happened two days ago.
My emoncms.org (so logging to the hosting environment, not local) stopped logging data. Reset did not work.
I checked this issue:
Any further suggestions?
Beste regards,
Antoine
Hello @Antoine_Maartens
Any indication of what might be the issue from the emonhub log emonHub Overview — OpenEnergyMonitor 0.0.1 documentation?
Check that /var/log/
isn’t full (100%).
df -h
For a reason yet unknown to me I lost my wired ethernet connection from the emonhub / pi.
For now I switched to wireless and re-established the connectivity.
I now see data moving again - I think I lost a day or two.
I’ll work on the wired connectivity later.
Thanx for the help!
Best regards,
Antoine
Goodevening,
Upload stopped again since 43 hours.
I believe there is enough diskspace on the device:
/dev/root 4.1G 2.5G 1.5G 64% /
devtmpfs 430M 0 430M 0% /dev
tmpfs 462M 0 462M 0% /dev/shm
tmpfs 462M 47M 415M 11% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 462M 0 462M 0% /sys/fs/cgroup
tmpfs 1.0M 8.0K 1016K 1% /var/lib/php/sessions
tmpfs 1.0M 0 1.0M 0% /var/tmp
tmpfs 30M 0 30M 0% /tmp
/dev/mmcblk0p3 9.9G 259M 9.1G 3% /var/opt/emoncms
/dev/mmcblk0p1 253M 50M 203M 20% /boot
log2ram 50M 2.4M 48M 5% /var/log
tmpfs 93M 0 93M 0% /run/user/1000
I am more or less at a loss where to look to get the upload process to emoncms.org going again. Any suggestions very welcome.
Best regards,
Antoine
And it started working again by fiddling with the emonbase / emonpi.
What could be going on?
Depends what ‘fiddling’ you did.
You need to look at the logs. If on the Input page, the last update time has stopped updating, check the emonhub log and see what that says.
[edit]
Was it just the online data or the local data as well?
Goodafternoon,
Same problem again - local data seems to get collected but does not get written to emoncms.org
Local data seems to be refreshing.
The Feedwriter tells me it has 75 datapoints to write and that number is growing.
Restart of the feedwriter did solve the situation
The log is empty and is set to Warnings - a bit in the dark where to change to info but I’ll find out.
Any ideas very welcome.
BTW: the fiddling was a systemupdate and a restart of the processes
Which Log?
Set to debug. (emonhub log)
Because you can see it on the Inputs Page and the Feeds page?
Of course it is. That is by design. It buffers a load of data points and writes them to disk. Has no impact on the data sent emoncms.org
.
It solved nothing, you just potentially lost that data in the buffer.
Restarting emonhub may solve the issue but not the root cause.
Thanx Brian,
It now started working again.
I’ll put some effort into getting the logging going and get some reporting there.
And will report back.
This is the emonhub.log in debug mode sofar:
root@emonpi:/var/log/emonhub# cat emonhub.log
2023-12-04 15:38:11,609 INFO MainThread EmonHub v2.6.2
2023-12-04 15:38:11,610 INFO MainThread Opening hub...
2023-12-04 15:38:11,611 INFO MainThread Running as user: pi
2023-12-04 15:39:31,984 INFO MainThread EmonHub v2.6.2
2023-12-04 15:39:31,985 INFO MainThread Opening hub...
2023-12-04 15:39:31,985 INFO MainThread Running as user: pi
2023-12-04 15:39:44,722 INFO MainThread EmonHub v2.6.2
2023-12-04 15:39:44,723 INFO MainThread Opening hub...
2023-12-04 15:39:44,724 INFO MainThread Running as user: pi
2023-12-04 16:02:42,435 INFO MainThread EmonHub v2.6.2
2023-12-04 16:02:42,436 INFO MainThread Opening hub...
2023-12-04 16:02:42,436 INFO MainThread Running as user: pi
2023-12-04 16:02:48,062 INFO MainThread EmonHub v2.6.2
2023-12-04 16:02:48,063 INFO MainThread Opening hub...
2023-12-04 16:02:48,063 INFO MainThread Running as user: pi
2023-12-04 16:17:35,767 INFO MainThread EmonHub v2.6.2
2023-12-04 16:17:35,768 INFO MainThread Opening hub...
2023-12-04 16:17:35,768 INFO MainThread Running as user: pi
I see only info statements though the loglevel is set to DEBUG.
Yes, I’m not sure the emonhub generates any error messages. Dumb answer - see below.
That is restarting too often.
Can you try this
sudo journalctl -f -u emonhub
Edit, before pasting output, do a CTL-E to format it correctly, please.
Did you restart emonhub after making the change?