Help - Search - Members - Calendar
Full Version: Logrotate problems
The Planet Forums > System Administration > General Support Questions
Simon
Hello,

2 days ago I started to have problems woth logrotate, receiving these error emails.

DEC 11

/etc/cron.daily/logrotate:

error: error running postrotate script
error: error running postrotate script
error: error running shared postrotate script for /var/log/httpd/*log
error: error running shared postrotate script for /var/log/mailman/bounce /var/log/mailman/digest /var/log/mailman/error /var/log/mailman/post /var/log/mailman/smtp /var/log/mailman/smtp-failure /var/log/mailman/qrunner /var/log/mailman/locks /var/log/mailman/fromusenet /var/log/mailman/subscribe /var/log/mailman/vette
error: error running shared postrotate script for /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron

DEC12

/etc/cron.daily/00webalizer:

Warning: Truncating oversized request field [567]
Warning: Truncating oversized request field [568]
Warning: Truncating oversized request field [753]
Warning: Truncating oversized request field [754]
/etc/cron.daily/logrotate:

error: error running shared postrotate script for /var/log/httpd/*log


Now all my logs are empty (maillog, httpd error log...). Anyone could help me?

Thanks in advance, Simon.
Macao
Also been having the same problem... since like August icon_sad.gif

/etc/cron.daily/logrotate:

error: error running shared postrotate script for /var/log/httpd/*log
RTCruiser
Here's a similar thread on another forum that may help;

http://forums.liquidweb.com/archive/index....-298.html[/url]
DirtyHarry
There is a fix for RHEL4, but the rpm package isn't available on the red hat network repository used by ev1servers. Please check this thread http://forums.ev1servers.net/showthread.php?t=61207
Catalyst
No, it has to do with /tmp being mounted noexec. Do what I said in the thread you listed and it'll fix it.
ideasmultiples
Easy solution:

Add to /etc/cron.daily/logrotate

export TMPDIR=/var/run
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.