Raspberry pi 2 runs fine for a month and then starts freezing more and more
I'm running Raspbian Buster Lite, headless on a raspberry pi 2 and this problem actually started around the end of 2019. Every time this start happening I do a fresh install and I'm basically good for a month and then the problem starts again, it starts with freezing once a day but very quickly it’s up to multiple times a day (5-6 times). With freezing I mean I can’t do anything to reach it and my only option is a hard reset.
I included syslog (log is from moment it freezes but seems like logs from starting up) and debug log but have all other logs if needed. Thanks in advance. |
do you really want to run all those things on the rpi2? (mysql, mono, transmission, dhcpd, samba, ...)
I would guess it is out of memory (but would be nice to give more details). |
SD cards were originally created as storage media, constant reading & writing will wear them out.
If you're not already doing so, boot from SD card, but run your system from an external HDD or SSD. (& giving it a reasonable allowance of swap space will probably help too). |
Quote:
|
Quote:
I did use a cronjob to check my memory every 5 minutes and the free memory seems low Code:
total used free shared buff/cache available |
I would switch off swap and also check if there was a disk full somewhere...
What OS is it? How is it partitioned? |
What benefit is there in disabling swap ?. Especially if re-booting 5 or 6 times a day.
There has to be some logs somewhere. Unless something doesn't want to be seen. When you re-install, do you use the same passwords and security settings ?. |
Quote:
|
Quote:
|
No, I wasn't aspersing you - I was wondering if you had been hacked by something like a bitcoin miner say. Some of the good ones will attempt to cover their presence, although removal of logs is pretty drastic.
My thought was if you used the same passwords you might be (more) subject to being re-attacked. I've never used Debian - does it forward the systemd journal to rsyslog ?. |
Quote:
Quote:
It isn't but I enabled ForwardToSyslog=yes in /etc/systemd/journald.conf |
Quote:
Turning the swap memory to zero didn't work. |
Quote:
But I think it more likely that your raspi2 is a bit overloaded with mysql, mono, transmission, dhcpd, samba... |
Quote:
Quote:
Thanks everyone for their time. |
you can still use pi2 (actually I run pihole on it).
|
All times are GMT -5. The time now is 10:06 AM. |