ispCP - Board - Support
cron.daily logrotate errors - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: cron.daily logrotate errors (/thread-10606.html)



cron.daily logrotate errors - mopox - 05-04-2010 09:04 PM

hi community,

I am new here in the forum. The search function didn't had any useful results for me, so i open this tread.

I use nightly built (20100401) of ispCP on ubuntu 10.04 lucid lynx. Except of some major errors related to fcgid (http://blog.benny-baumann.de/?p=519) all is runing well so far. But from time to time i get some logrotate errors via email:

Code:
/etc/cron.daily/logrotate:
error: ispcp:65 duplicate log entry for /var/log/apache2/access.log
error: found error in /var/log/apache2/*.log , skipping
error: ispcp:80 lines must begin with a keyword or a filename (possibly in double quotes)
error: ispcp:81 duplicate log entry for #
error: found error in /etc/init.d/apache2 reload > /dev/null
    fi
  endscript
}

# Transfer rotation for ProFTPd
#
/var/log/proftpd/xferlog , skipping
error: stat of reload failed: No such file or directory
error: stat of > failed: No such file or directory
error: stat of fi failed: No such file or directory
error: stat of endscript failed: No such file or directory
error: stat of } failed: No such file or directory
error: stat of # failed: No such file or directory
error: stat of Transfer failed: No such file or directory
error: stat of rotation failed: No such file or directory
error: stat of for failed: No such file or directory
error: stat of ProFTPd failed: No such file or directory
run-parts: /etc/cron.daily/logrotate exited with return code 1

I wonder about that errors. Do anyone know what it mean exactly. Okay, it is just related to logrotate. So it is not realy important. But I am interested about the problem.

I'ld appreciate your help.
Thank you

and regards
from Germany


RE: cron.daily logrotate errors - Nathariel - 04-24-2011 08:23 AM

Code:
error: ispcp:65 duplicate log entry for /var/log/apache2/access.log

I had a similar problem with one of the last ispCP builds. It was due to duplicate logrotate configuration. In /etc/cron.daily the script found in 'apache2' is now included in 'ispcp' as well, which creates the problem.
Simply deleting one of the duplicates solves it.

Regarding the other errors you have I am not really sure but it sounds like incorrect config.

Regards