Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Cron <root@server> run-parts /etc/cron.daily

Discussion in 'General Discussion' started by sahithp, Oct 22, 2012.

  1. sahithp

    sahithp Member

    Joined:
    Jun 13, 2011
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    I am getting these mails daily, please help me on this

    Code:
    /etc/cron.daily/logrotate:
    
    error: bad line 76 in state file /var/lib/logrotate.status
    error: stat of /etc/logrotate.conf: failed: No such file or directory
    error: stat of ASCII failed: No such file or directory
    error: stat of text failed: No such file or directory
    error: stat of # failed: No such file or directory
    error: stat of see failed: No such file or directory
    error: stat of man logrotate failed: No such file or directory
    error: stat of for failed: No such file or directory
    error: stat of details failed: No such file or directory
    error: stat of # failed: No such file or directory
    error: stat of rotate failed: No such file or directory
    error: stat of log failed: No such file or directory
    error: stat of files failed: No such file or directory
    error: stat of weekly failed: No such file or directory
    error: stat of weekly failed: No such file or directory
    error: stat of # failed: No such file or directory
    error: stat of keep failed: No such file or directory
    error: stat of 4 failed: No such file or directory
    error: stat of weeks failed: No such file or directory
    error: stat of worth failed: No such file or directory
    error: stat of of failed: No such file or directory
    error: stat of backlogs failed: No such file or directory
    error: stat of rotate failed: No such file or directory
    error: stat of 1 failed: No such file or directory
    error: stat of # failed: No such file or directory
    error: stat of create failed: No such file or directory
    error: stat of new failed: No such file or directory
    error: stat of (empty) failed: No such file or directory
    error: stat of log failed: No such file or directory
    error: stat of files failed: No such file or directory
    error: stat of after failed: No such file or directory
    error: stat of rotating failed: No such file or directory
    error: stat of old failed: No such file or directory
    error: stat of ones failed: No such file or directory
    error: stat of create failed: No such file or directory
    error: stat of # failed: No such file or directory
    error: stat of RPM failed: No such file or directory
    error: stat of packages failed: No such file or directory
    error: stat of drop failed: No such file or directory
    error: stat of log failed: No such file or directory
    error: stat of rotation failed: No such file or directory
    error: stat of information failed: No such file or directory
    error: stat of into failed: No such file or directory
    error: stat of this failed: No such file or directory
    error: stat of directory failed: No such file or directory
    error: stat of include failed: No such file or directory
    error: stat of # failed: No such file or directory
    error: stat of no failed: No such file or directory
    error: stat of packages failed: No such file or directory
    error: stat of own failed: No such file or directory
    error: stat of wtmp failed: No such file or directory
    error: stat of -- failed: No such file or directory
    error: stat of well rotate them here
    /var/log/wtmp  failed: No such file or directory
    error: stat of /var/log/btmp failed: No such file or directory
    error: could not read state file, will not attempt to write into it
    
    Let me know what should i do .... to not getting these error.... why it is stating no file or directory.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,170
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Try going here:
    WHM > Service Configuration > cPanel Log Rotation Configuration, select all logs shown, and save.
    Do you get an error when you do this?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sahithp

    sahithp Member

    Joined:
    Jun 13, 2011
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    @InfoPro... did as you said got the following result ...

     
  4. sahithp

    sahithp Member

    Joined:
    Jun 13, 2011
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    my logrotate file looks like ..

     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,170
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:

    Were any of these checked, previous?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice