C
C
crossfire2014-11-01 17:44:12
linux
crossfire, 2014-11-01 17:44:12

Why do Anacron and Logwatch email errors?

Ubuntu Server on Digital Ocean, installed Logwatch there, as a result, errors began to come to the mail. How to fix?

Anacron job 'cron.daily' on имя хоста
/etc/cron.daily/logrotate:
error: error accessing /var/log/apache2: No such file or directory
error: apache2:1 glob failed for /var/log/apache2/*.log
error: found error in /var/log/apache2/*.log , skipping
error: error accessing /var/log/unicorn: No such file or directory
error: unicorn:1 glob failed for /var/log/unicorn/*.log
error: found error in /var/log/unicorn/*.log , skipping

Answer the question

In order to leave comments, you need to log in

4 answer(s)
C
crossfire, 2014-11-16
@crossfire

Figured it out myself. I created a backup folder in /etc/logrotate.d and then transferred the configs for apache2 and unicorn into it.

V
Vladimir, 2014-11-01
@rostel

which line to translate?

K
Konstantin B., 2017-01-04
@Jony1337

Maybe it's all about brackets? Check carefully

Z
zorca, 2017-01-04
@zorca

What code, such and errors. Reading the contents of a file before checking for its existence is a masterpiece.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question