Actions
Bug #9526
closed/var/log/nginx/error.log - Never cleared, invisible, always grows until /var overflows :(
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
05/15/2019
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:
Description
SYMPTOMS
- My /var partition overflowed, causing havoc.
- Found a huge /log/nginx/error.log with many weeks of data
ANALYSIS AND IMPACT
This log file is essentially an invisible time bomb for pfSense admins:- It is invisible in the UI
- It is not specifically configured in the nginx conf file (uses default /var/log/nginx/error.log)
- It is not referenced nor cleared by any log rotation
- Status -> System Logs -> Settings -> Reset Log Files does not clear this log
(Thus, NOT true in docs: "Pressing this button will clear log data from all of the logs managed by the pfSense base system.") - It is not cleared on reboot
IOW, this error.log grows ad nauseum until pfSense dies. :(
I'm running 2.4.4p2
Updated by Jim Pingle almost 5 years ago
- Status changed from New to Duplicate
- Priority changed from Urgent to Normal
Will be irrelevant soon due to #8350
Updated by Pete Holzmann almost 5 years ago
Updated by Pete Holzmann almost 5 years ago
Half-baked workaround: add an earlyshellcmd of
rm /var/log/nginx/error.log
This is easily accomplished with the shellcmd pkg
Only effective on reboot but better than nothing.
(Does #8350 rearchitect so this error log is visible to the administrator? If so, good going, Jim :) )
Updated by Jim Pingle almost 5 years ago
For the vast majority of users, the nginx log does not contain much of anything. I'd look into what you've got going on there. But do so on the forum. This is not a site for that kind of discussion.
Actions