From 7115860700c998de54472f1fef90a2997a7989e3 Mon Sep 17 00:00:00 2001 From: Kristian Klausen <kristian@klausen.dk> Date: Sun, 18 Sep 2022 03:16:30 +0200 Subject: [PATCH] aurweb: Double fd limit to avoid "Too many open files" From time to time aurweb is failing with "Too many open files" errors[1], this could indicate a bug in aurweb or perhaps the limit is just too low. Let's try doubling the limit and see if it helps. [1] https://gitlab.archlinux.org/archlinux/aurweb-errors/-/issues/275 --- roles/aurweb/templates/aurweb.service.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/aurweb/templates/aurweb.service.j2 b/roles/aurweb/templates/aurweb.service.j2 index 19aa621cb..71fe5e9ac 100644 --- a/roles/aurweb/templates/aurweb.service.j2 +++ b/roles/aurweb/templates/aurweb.service.j2 @@ -6,6 +6,7 @@ RuntimeDirectory={{ aurweb_prom_dir }} Environment=PROMETHEUS_MULTIPROC_DIR=/run/{{ aurweb_prom_dir }} User={{ aurweb_user }} WorkingDirectory={{ aurweb_dir }} +LimitNOFILE=2048 ExecStart=/usr/bin/poetry run gunicorn \ --log-config {{ aurweb_dir }}/logging.conf \ --bind {{ aurweb_asgi_bind }} \ -- GitLab