alxbl / lab

Infra-as-Code & Automation for my homelab
1 stars 0 forks source link

Adguard-Home: Too many Open Files #23

Open alxbl opened 2 months ago

alxbl commented 2 months ago

AdGuard-Home deployment won't start anymore because of inotify.

https://stackoverflow.com/a/63700455 https://kind.sigs.k8s.io/docs/user/known-issues/#pod-errors-due-to-too-many-open-files https://github.com/kubernetes-sigs/kind/issues/2586 https://superuser.com/questions/1779937/whats-the-maximum-safe-limit-for-fs-inotify-max-user-watches

This works:

# On the host
sudo sysctl fs.inotify.max_user_watches=524288
sudo sysctl fs.inotify.max_user_instances=512

But it needs to be made permanent as part of node provisioning.

alxbl commented 1 month ago

It's actually because adguard shares the same uid as jelly fin (https://github.com/jellyfin/jellyfin/issues/7684)

Possible fixes:

alxbl commented 1 month ago

Hopefully fixed by 9acd4f4