nginx permission denied on PID after latest update

Hi there, just updated Mailcow after all the PHP stuff and now nginx doesn’t want to start anymore. The logs just keep showing over and over that it can’t write to its PID file at /var/run/nginx.pid and then it dies. When running docker compose run -i nginx-mailcow /bin/sh the /var/run folder is owned by root:root with drwxr-xr-x permissions. Any idea what I’m doing wrong here?

nginx-mailcow-1  | Render config
nginx-mailcow-1  | 2026/10/24 11:49:40 [warn] 1#1: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/nginx.conf:126
nginx-mailcow-1  | nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/nginx.conf:126
nginx-mailcow-1  | 2026/10/24 11:49:40 [warn] 1#1: conflicting server name "mail." on 0.0.0.0:80, ignored
nginx-mailcow-1  | nginx: [warn] conflicting server name "mail." on 0.0.0.0:80, ignored
nginx-mailcow-1  | 2026/10/24 11:49:40 [warn] 1#1: conflicting server name "autodiscover.*" on 0.0.0.0:80, ignored
nginx-mailcow-1  | nginx: [warn] conflicting server name "autodiscover.*" on 0.0.0.0:80, ignored
nginx-mailcow-1  | 2026/10/24 11:49:40 [warn] 1#1: conflicting server name "autoconfig.*" on 0.0.0.0:80, ignored
nginx-mailcow-1  | nginx: [warn] conflicting server name "autoconfig.*" on 0.0.0.0:80, ignored
nginx-mailcow-1  | 2026/10/24 11:49:40 [warn] 1#1: conflicting server name "mail." on [::]:80, ignored
nginx-mailcow-1  | nginx: [warn] conflicting server name "mail." on [::]:80, ignored
nginx-mailcow-1  | 2026/10/24 11:49:40 [warn] 1#1: conflicting server name "autodiscover.*" on [::]:80, ignored
nginx-mailcow-1  | nginx: [warn] conflicting server name "autodiscover.*" on [::]:80, ignored
nginx-mailcow-1  | 2026/10/24 11:49:40 [warn] 1#1: conflicting server name "autoconfig.*" on [::]:80, ignored
nginx-mailcow-1  | nginx: [warn] conflicting server name "autoconfig.*" on [::]:80, ignored
nginx-mailcow-1  | 2026/10/24 11:49:40 [notice] 1#1: using the "epoll" event method
nginx-mailcow-1  | 2026/10/24 11:49:40 [notice] 1#1: nginx/1.30.6
nginx-mailcow-1  | 2026/10/24 11:49:40 [notice] 1#1: built by gcc 15.2.0 (Alpine 15.2.0) 
nginx-mailcow-1  | 2026/10/24 11:49:40 [notice] 1#1: OS: Linux 3.10.0-1160.119.1.el7.x86_64
nginx-mailcow-1  | 2026/10/24 11:49:40 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
nginx-mailcow-1  | 2026/10/24 11:49:40 [crit] 1#1: pwrite() "/var/run/nginx.pid" failed (1: Operation not permitted)
nginx-mailcow-1  | nginx: [crit] pwrite() "/var/run/nginx.pid" failed (1: Operation not permitted)

Read more here: Source link