nginx io_error ai_generated true

nginx: [error] open() /var/log/nginx/access.log failed: Too many open files

ID: nginx/log-rotation-failure

Also available as: JSON · Markdown
80%Fix Rate
84%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
1 active

Root Cause

Log file rotation failed or log files consuming too much disk.

generic

Workarounds

  1. 92% success Use logrotate with postrotate: kill -USR1
  2. 88% success Signal nginx to reopen logs: nginx -s reopen

Dead Ends

Common approaches that don't work:

  1. Delete log files while nginx running 82% fail

    nginx still writes to deleted fd

  2. Disable logging entirely 78% fail

    No visibility into traffic