Virtualmin prompt logrotate configuration is not valid error

Source: Internet
Author: User
Tags rsyslog

Virtualmin occurs when checking to verify that the error is present logrotate configuration is not valid:
Error:stat Of/var/log/cron failed:no such file or directory

1. Main reasons

Log file rotation feature restricted

This is due to the syslog daemon not running. Check If the service is running and restart. Your server may have syslogd daemon on rsyslogd depending on Your OS.

2. Solutions

Let's look at the status first.

/etc/init.d/rsyslog status

Appear

RSYSLOGD is stopped
RKLOGD is stopped
Description does not start successfully

And then at the start Rsyslog

/etc/init.d/rsyslog start

The following prompts can be found


Starting system logger: [OK]
Starting kernel logger: [OK]

We're checking to see if Rsyslog starts.

Chkconfig–list | grep rsyslog

Start successful

Rsyslog 0:off 1:off 2:off 3:off 4:off 5:off 6:off

No installation or others are reminded of this.

-list:unknown option
We will set the Rsyslog boot up

Chkconfig Rsyslog on

This is OK, then we click on the check to pass!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.