Random Hangs of emonPi/emonSD

Still working and still daily reboot around 1 at night (Belgium). Any ideas? Some script that’s asking for a daily reboot?

I assume 1 am is 00:00 UTC?

Your router, DHCP Lease time? Highly unlikely, and I can’t say I’ve ever heard anyone complain about the same thing before. I’m not on the very latest version, I have a 1-day DHCP lease and my emonPi has been running for 136 days.

Or something external that happens at this time, which causes the Pi to restart - like a big voltage dip?

Is the install a clean EmonSD install from the image, or is anything else installed on the ZPi2W?

It’s a clean system with image from RPi foundation and then EmonScripts
SSH Terminal says: Linux emonrpiz2w 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l

I’ll have a spare Zero 2 W and will try with the latest image of Sept 6th 2022.

Have you checked memory use again? Is it the same problem with Swap?

Swap is empty since the many reboots. Today the reset was around 22h50 yesterday.
But on full load a RPi Zero 2 W is only drawing 0.5A or so. So I don’t think that’s the issue here.
afbeelding

Just went back over the thread - what exactly is your setup?

Pi Zero attached to other HW or just running Emoncms?

Ok but do you see it filling up?

Have you added any inputs/feeds?

Nope it’s a Zero 2 W that has a clean Buster image and only emonCMS installed with emonScripts
Now for some reason it’s 3 days up… What a non-consistent behaviour…

Second Zero 2 W with Bullseye, new install since this weekend.

So just running emoncms with no harware attatched (e.g. using emonhub)?

Have to say I am at a loss. Clearly there seems to be an issue with Bullseye as the SWAP is filling up on that one.

You could try installing Netdata and see if that shines any light on what is going on under the hood.

@TrystanLea @glyn.hudson

1 Like

Cant think of anything to add, I havent tried building a new install using EmonScripts for a while so cant comment on reliability of a freshly build install either. The last official build (emonSD pre built SD card Download & Change Log · openenergymonitor/emonpi Wiki · GitHub) has been very stable for me, did you try that? … It is high time we did another release, my focus has been elsewhere on hardware but we should do another!

Problem seems to be on the newer Linux release.