Re: cron logrotate error
Originally Posted by
dino99
fail2ban.sock might be one of these non-shared postrotate script
Nope, it's a unix socket used to control the fail2ban process. That message will mean that either the logrotate script doesn't have permission to access it, unlikely, or the fail2ban process isn't running so the socket doesn't exist.
You don't mention which version of Ubuntu you're using so it may have changed, but on mine the postrotate hook looks like
Code:
postrotate
fail2ban-client flushlogs 1>/dev/null
endscript
Are you running fail2ban? If not, just uninstall it.
If you want to leave it on there you could always just redirect stderr as in
Code:
fail2ban-client flushlogs 2>&1 1>/dev/null
which will suppress that message.
If you need anymore info then please provide the contents of your /etc/logrotate.d/fail2ban file.
Mark your thread as [SOLVED], use Thread Tools on forum page.
Bookmarks