Unable to create backup for a virtual server

This is the error I get....

Copying Logrotate configuration .. .. Error: no log rotation configuration found!

Status: 
Active

Comments

Howdy -- that error means that Virtualmin couldn't find an entry in /etc/logrotate.conf (or a file included from it, such as "/etc/logrotate.d/httpd") for the domain's Apache access_log file.

You may want to review the existing log rotation entries for your domains, and add one for this particular domain.

bislinks's picture
Submitted by bislinks on Fri, 11/14/2014 - 14:49 Pro Licensee

I understand i should look in /etc/logrotate.d directory for a .conf file for this domain.

I am talking about "nothingbutfact.bittertruth.net;" previously, "nothingbutfact.com"

I did not find a .conf file for this particular domain in /etc/logrotate.d/!

Should I create one manually or is there a proper way?

Found another problem.

The "/etc/logrotate.d/nothingutfact.com.conf" had misconfig:

The access and error log paths were pointing to another domain altogether! Changed it to /var/log/virtualmin/nothingbutfact.com_access_log and /var/log/virtualmin/nothingbutfact.com_error_log

Did I do it right?

Appreciate your hard work, patience, and help.

bislinks's picture
Submitted by bislinks on Fri, 11/14/2014 - 14:59 Pro Licensee

I created "/etc/logrotate.d/nothingbutfact.bittertruth.net.conf" with the following data:

=====data begin===== /var/log/virtualmin/nothingbutfact.bittertruth.net_access_log /var/log/virtualmin/nothingbutfact.bittertruth.net_error_log rotate 5 weekly compress postrotate /etc/rc.d/init.d/httpd graceful ; sleep 5 endscript sharedscripts ===== data end =====

But, when I click "View AWstats Report" for domain "NothingButFact.BitterTruth.net," I see this on top of the page:

Never updated (See 'Build/Update' on awstats_setup.html page)

Is it OK?

bislinks's picture
Submitted by bislinks on Fri, 11/14/2014 - 15:17 Pro Licensee

Also getting the following error when i click "generate report" on webalizer:

Running Webalizer to generate report from /var/log/virtualmin/daniel.preachword.com_access_log ..

.. Webalizer failed! See the output above for details.

Regarding logrotate -- it looks like you may have fixed it! What I'd suggest is to go into Limits and Validation -> Validate Virtual Servers, and have it perform a validation on that domain.

After doing so, does it list that domain as being setup properly?

The warning you received may be because awstats hadn't run yet... which it likely did by now. Are you able to review the awstats report for that domain now?

Regarding Webalizer -- the error you mentioned references the domain "daniel.preachword.com".

Is that the domain that was previously listed in the log rotate config that you had to correct?

bislinks's picture
Submitted by bislinks on Mon, 11/17/2014 - 18:16 Pro Licensee

Got this error after running "Validate Virtual Servers:"

BibleLegacy.com Webmin login : Webmin user legacy does not exist

Are you having any problems with that particular domain? If it's a top-level Virtual Server, is the "Webmin" feature enabled?

bislinks's picture
Submitted by bislinks on Mon, 11/17/2014 - 18:33 Pro Licensee

The domain that had logrotate problem was nothingbutfact.bittertruth.net

For the domain "biblelegacy.com", you can re-create the Webmin user by running :

virtualmin disable-feature --domain biblelegacy.com --webmin
virtualmin enable-feature --domain biblelegacy.com --webmin