The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Daily '/etc/cron.daily/logrotate' error

Discussion in 'General Discussion' started by WebIdentity, Oct 20, 2009.

  1. WebIdentity

    WebIdentity Member

    Joined:
    Mar 27, 2004
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    For the past few nights at 03:00 i get the following error in my inbox as a response from a daily cron job:

    Code:
    /etc/cron.daily/logrotate:
    
    error: sa-update:3 unknown option 'notifyempty' -- ignoring line
    
    Anyone know whats going on there? Thanks.
     
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    What OS and version is installed on the system?
    Code:
    # cat /etc/*release
    If on CentOS, RHEL, or Fedora, it sounds like there was a SpamAssassin RPM installed or updated, and this may have installed or updated a file at the following path:
    /etc/logrotate.d/sa-update
    Code:
    # cat /etc/logrotate.d/sa-update
    Inside the file you may see the text "notifyempty" -- this should be corrected to "notifempty" where there is no "y" after the words "not" and "if".

    You may use the following commands to verify if the file is part of an installed RPM and check it's modification date and time:
    Code:
    # stat /etc/logrotate.d/sa-update
    # rpm -qf /etc/logrotate.d/sa-update
    # rpm -q spamassassin
    Please note that it is not necessary to have the SpamAssassin RPM installed; if it is needed, SpamAssassin can be safely installed using the following script:
    Code:
    # /scripts/installspam
    Here is a reference to an old bug report that may be related:
    https://bugzilla.redhat.com/show_bug.cgi?id=223753
     
Loading...

Share This Page