[Pkg-nginx-maintainers] Bug#1078262: nginx: Consider adding nginx.tmpfiles for /var/*/nginx

Gylstorff Quirin quirin.gylstorff at siemens.com
Fri Aug 9 10:09:30 BST 2024


Source: nginx
Version: 1.26.0-1
Severity: wishlist

Dear Maintainer,

if the system starts with a empty /var directory, nginx fails to start
with the following error message:

Aug 09 08:57:08 ie-test systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server...
Aug 09 08:57:08 ie-test nginx[961]: 2024/08/09 08:57:08 [emerg] 961#961: mkdir() "/var/lib/nginx/body" failed (2: No such file or directory)

An possible solution is to create nginx.tmpfiles with the following
content:

d var/lib/nginx
d var/log/nginx

Best regards
Quirin

-- System Information:
Debian Release: trixie/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf

Kernel: Linux 6.9.10-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US.UTF-8
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



More information about the Pkg-nginx-maintainers mailing list