Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
error: error accessing /var/log/asterisk: No such file or directory
error: asterisk:1 glob failed for /var/log/asterisk/*_log
error: found error in /var/log/asterisk/debug /var/log/asterisk/messages /var/log/asterisk/full /var/log/asterisk/*_log , skipping
error: stat of /var/log/asterisk/debug failed: No such file or directory
error: stat of /var/log/asterisk/messages failed: No such file or directory
error: stat of /var/log/asterisk/full failed: No such file or directory
run-parts: /etc/cron.daily/logrotate exited with return code 1

I get this email everyday and i'm sick of it. I looked around at some files with nano and i didn't see anywhere to remove it. I'm using Ubuntu 11.04 and i don't know how to remove this from running everyday. Any ideas?

share|improve this question
up vote 1 down vote accepted

For the record, the logrotate file for this application is probably located under the directory /etc/logrotate.d/. You can then edit the offending file, probably by commenting out the references to /var/log/asterisk/*_log. Or you could move the offending file outside this directory into something like /etc/ just in case you might need it again.

share|improve this answer
Just did that. Guess i'll wait till the next day and not see the email now. That seemed simple. Learnt something new. – Keverw Sep 19 '11 at 23:50
Awesome it worked. No annoying emails anymore! – Keverw Sep 21 '11 at 16:38

You need to completely remove asterisk, by purging it (--purge option to either dpkg or apt-get/aptitude command, as required) rather than just uninstalling it. That will remove the logrotate fragment that's causing the problem.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.