Hello,
For a few days now I have been receiving random errors regarding actions related to the database.
I am using the MariaDB addon.
There are no errors in the addon log itself. There I only find the info Service mariadb exited with code 256 (by signal 9
).
Can someone tell me what the trigger is? As far as I know, this is not a MariaDB error code, because these are four-digit codes.
MariaDB Version 2.7.2
Home Assistant Core Version 2025.4.4
Home Assistant OS Version 15.2
Hardware Home Assistant Yellow
WallyR
(Wally)
April 28, 2025, 4:24pm
2
z-master:
signal 9
That is a signal to terminate immediately, which usually happens when the system can not handle the program requirements, like with too little RAM or not enough harddisk space.
The signal is coming from the OS.
signals
Ok.
It can’t be hard disk space.
The CM4 only has 2 GB of RAM, but I have made the swap file correspondingly large.
The error is also not reproducible.
At the moment it’s quiet again and then there will probably be errors again for a few days in a row.
The last few times it was always in connection with the database purge. However, when I triggered it manually later, it worked normally.
Quite curious.
WallyR
(Wally)
May 1, 2025, 2:14pm
4
Swapfile can’t make up for ram on a 1-to-1 basis.
Ram.can only be swapoed to a file if it is not being used, so if an app tries to reserve more ram than it is available then it will be killed.
Good point, thank you.
So far it has worked out that the swap file is slightly larger.