Nginx can't access to its own logs

Started by muchacha_grande, May 20, 2026, 06:47:11 PM

Previous topic - Next topic
May 20, 2026, 06:47:11 PM Last Edit: May 20, 2026, 07:00:43 PM by muchacha_grande Reason: Some correction
Hi, I'm having a may be not important issue. Some nights at 12 AM, nginx is throwing these 2 errors on its log:

2026-05-19T00:00:00-03:00 Emergency nginx 2026/05/19 00:00:00 [emerg] 88258#100283: open() "/var/log/nginx/permanentban.access.log" failed (13: Permission denied)
2026-05-19T00:00:00-03:00 Emergency nginx 2026/05/19 00:00:00 [emerg] 88258#100283: open() "/var/log/nginx/tls_handshake.log" failed (13: Permission denied)
2026-05-18T00:00:00-03:00 Emergency nginx 2026/05/18 00:00:00 [emerg] 88258#100283: open() "/var/log/nginx/permanentban.access.log" failed (13: Permission denied)
2026-05-18T00:00:00-03:00 Emergency nginx 2026/05/18 00:00:00 [emerg] 88258#100283: open() "/var/log/nginx/tls_handshake.log" failed (13: Permission denied)

May be this is not important, as I can see that the service is working as expected, but...


May be this due to a temporary file lock during log rotate and is not a problem at all.