this post was submitted on 19 Nov 2023
3 points (100.0% liked)

Self-Hosted Main

502 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
top 11 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 10 months ago (2 children)

Most likely low memory, linux systems when there are out of memory calls the OOM killer, which kills the largest processes running on the system. https://unix.stackexchange.com/questions/153585/how-does-the-oom-killer-decide-which-process-to-kill-first

You can probably find evidence of this in the system logs, on most modern systems, this should show you higher prio logs from last boot: journalctl -p 4 -b

You should see something like this, if it was killed by OOM killer

MESSAGE=Killed process 3029 (Web Content) total-vm:10206696kB, anon-rss:6584572kB, file-rss:0kB, shm em-rss:8732kB

And you should definitely think about extending the memory of the system or reducing the number of containers/they memory footprint.

[–] [email protected] 1 points 10 months ago

You can also see oom killer messages with dmesg

[–] [email protected] 1 points 10 months ago (2 children)

Journactl doesn't work in unRAID. I don't thinks it's a memory problem usually memory usage is around 10-15GB and I have 40gb of memory

[–] [email protected] 1 points 10 months ago (1 children)

Journactl doesn't work in unRAID.

So do the journalctl -p 4 -b on the host self.

[–] [email protected] 1 points 10 months ago (1 children)

What do you mean with host self?

[–] [email protected] 1 points 10 months ago

On the host running unraid.

[–] [email protected] 1 points 10 months ago

The question is not so much if you have enough physical ram but if your docker management tool has established resource limits for the containers. Oom killer will stop the process regardless of the fact that there is enough free memory if the container goes over its Ressource contraints.

https://stackoverflow.com/questions/42345235/how-to-specify-memory-cpu-limit-in-docker-compose-version-3

[–] [email protected] 1 points 10 months ago

Maybe memory limits of some kind ? you can set the maxium memory usage in a docker compose file for example!

[–] [email protected] 1 points 10 months ago

Really not enough information to go on here. I'm not familiar with unraid, but can you add restart: always to the compose file for these containers? Does it have a compose file?

If you're sure it's not a memory issue (and it would be a bit odd for the OOM-kill to kill a bunch of containers like this), it could be an IO issue. A hard drive dying, maybe, but I think unraid should let you know about that?

[–] [email protected] 1 points 10 months ago (1 children)

always put limits on containers !

i.e.

services:
    qbittorrent:
        container_name: qbittorrent
        cpus: 1
        mem_limit: 1g
        environment:
[–] [email protected] 1 points 10 months ago

I thought limits only worked in swarms?