Host OS crash debugging

Hello,

I’m currently running a nodejs service on a rpi3+ with balenaOS 2.80.3+rev1 and supervisor 12.11.21.

In this service I regularly take pictures using raspistill then rotate/save the image to the file system using sharp.

randomly (as in “not everytime”) the OS crashes and the last log I get in the dashboard from my service is from right before using sharp.

I suspect that this can be caused by an out of memory error but I can’t seem to find any logs related to what happened before reboot as journalctl only gives me logs since startup, any idea on how to investigate the crash reason ?

Thanks

I managed to see something by having journalctl running while I was doing my tests:

kernel: zram: Decompression failed! err=-22, page=22484

Any idea on how to avoid ram from failing ?

apparently, updating to 2.83.21-rev1 fixes it as it was an issue with kernel versions < 5.10 on arm

Glad you managed to resolve the issue. Please get in touch again if you have any further problems.