**Hardware: Odroid N2+/N2/Helios 64 (3 ARM board) YunoHost version: 4.1.7.4 (stable) I have access to my server : Through SSH | through the webadmin | Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Hello everyone,
I am trying to write this message in English (because of this (The language barrier - #23 by ljf but sorry by advance because my mother language is French.
My problem is this: for three nights my odroid N2 + (my main server) has been down (around 6 a.m. maybe; no more blue light and forced to restart).
During the day everything is fine.
Yesterday there was an update of yunohost (to version 4.1.7.4) but that does not fix the problem.
So two crashes in 4.1.7.3 and one in 4.1.7.4.
Notable updates of the last few days are for the armbian packages (firmware…etc)
I have difficulties doing good searches in the logs
The “journalctl -p err command”
showed me errors with the openhab2 package (I had to put it to test one day) which I removed. After that I did nothing more.
Do you have any tips before I come back to a previous backup (before the updates of armbian packages ?
You could search in /var/log/kern.log around hours when it stop to work. If you find a time range whith no logs, try to watch the lines just before. If there are no time range empty, in this case, it could be some services down (ram missing ?) or a firewall issue (due to vpn client ?).
grep “Mar 12 00:00:01” less /var/log/syslog ; grep “Mar 12 07:00:01” less /var/log/syslog
Output
grep: 12: Aucun fichier ou dossier de ce type
grep: 00:00:01”: Aucun fichier ou dossier de ce type
grep: less: Aucun fichier ou dossier de ce type
grep: 12: Aucun fichier ou dossier de ce type
grep: 07:00:01”: Aucun fichier ou dossier de ce type
grep: less: Aucun fichier ou dossier de ce type
grep “Mar 12 00:00:01” less /var/log/kern.log ; grep “Mar 12 07:00:01” less /var/log/kern.log
Output :
grep: 12: Aucun fichier ou dossier de ce type
grep: 00:00:01”: Aucun fichier ou dossier de ce type
grep: less: Aucun fichier ou dossier de ce type
grep: 12: Aucun fichier ou dossier de ce type
grep: 07:00:01”: Aucun fichier ou dossier de ce type
grep: less: Aucun fichier ou dossier de ce type
I have no idea if it can be related to your problem, but last week I had several crashes, due to a hard drive that refused to stay awake more than a few hours.
It was not tho main disk in my case, so the server stayed on, but if the main disk stops itself, I think it can be bad
I changed the disk with a new one, so no problems for me, this is just a possibility for you.
I used smartmontools [Wiki ubuntu-fr] to try to check my disks and I received many mails for the previous months so I knew it will happen.
Had a similar issue and did not find the prove of the cause, but after I uninstalled the auto-update/auto-upgrade the machine runs smoothly.
I have to manually upgrade though - maybe a few cron entries could help
In my case, the problem come from the SD card. Thanks a lot Mamie to push me to check the hardware.
In one year I broke 2/3 micro SD cards. It’s too much…so yesterday I moved the “root” of my server on a SSD disk. I hope It will be better.
My output for lsblk is now :
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 232.9G 0 disk
└─sda1 8:1 0 232.4G 0 part /
sdb 8:16 0 4.6T 0 disk
└─sdb1 8:17 0 4.6T 0 part
└─5to_serveur_xxxx 251:1 0 4.6T 0 crypt
sdc 8:32 0 1.8T 0 disk
└─sdc1 8:33 0 1.8T 0 part
└─2to_serveur 251:0 0 1.8T 0 crypt
mmcblk0 179:0 0 238.8G 0 disk
└─mmcblk0p1 179:1 0 236.1G 0 part /media/mmcboot
zram0 252:0 0 1.8G 0 disk [SWAP]
zram1 252:1 0 50M 0 disk /var/log
I think now my SD card is only use for the boot.
But I don’t understand really how the virtual zram works (zram [Wiki ubuntu-fr] ). The only ressource use by zram is RAM ? No interaction with the SD card ?