Current time: 04-24-2024, 01:57 PM Hello There, Guest! (LoginRegister)


Thread Closed 
[ERLEDIGT]Problem Logrotate
Author Message
Tolga Offline
Junior Member
*

Posts: 32
Joined: Feb 2007
Reputation: 0
Post: #1
[ERLEDIGT]Problem Logrotate
Hallo zusammen,

system:
- debian lenny
- ispCP 1.0.6 OMEGA build: 20100401

hallo ich habe ispcp installiert und es funktioniert auch alles sehr gut nur 1 problem mit logrotate.
Die log files werden nicht kompromiert und ausdiesem grund werden die files immer grösser und es entstehen leitungsprobleme.

Fehlermeldung :
Code:
/etc/cron.daily/logrotate:
error: ispcp:65 duplicate log entry for /var/log/apache2/access.log
run-parts: /etc/cron.daily/logrotate exited with return code 1

konnte leider nichts im forum finden.
kann jemand helfen ???

grüsse
tolga[/code]
(This post was last modified: 12-21-2010 06:35 PM by ZooL.)
09-21-2010 07:17 PM
Visit this user's website Find all posts by this user
ronaldpeter Offline


Posts: 1
Joined: Oct 2010
Reputation: 0
Post: #2
RE: Problem Logrotate
Ich habe genau das selbe Thema und finde nichts im Forum

ispCP 1.0.7 OMEGA
build: 20100819

Ron
10-06-2010 06:14 PM
Find all posts by this user
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #3
RE: Problem Logrotate
Post mal bitte deine
Code:
# /etc/logrotate.d/ispcp
um zu sehen ob da keine Doppeleinträge drin sind.

Greez BeNe
10-06-2010 10:28 PM
Visit this user's website Find all posts by this user
bl4ckr4ptor Offline
Junior Member
*

Posts: 14
Joined: Apr 2008
Reputation: 0
Post: #4
RE: Problem Logrotate
Hallo zusammen

bei mir siehts wiefolgt aus:

Fehler:
Code:
/etc/cron.daily/logrotate:
error: ispcp:65 duplicate log entry for /var/log/apache2/access.log
run-parts: /etc/cron.daily/logrotate exited with return code 1

/etc/logrotate.d/apache2
Code:
/var/log/apache2/*.log {
    weekly
    missingok
    rotate 52
    compress
    delaycompress
    notifempty
    create 640 root adm
    sharedscripts
    prerotate
        /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl &> /dev/null
    endscript
    postrotate
        if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then
            /etc/init.d/apache2 reload > /dev/null
        fi
    endscript
}

/etc/logrotate.d/ispcp
Code:
/var/log/apache2/*.log {
  weekly
  rotate 52
  missingok
  compress
  delaycompress
  notifempty
  create 640 root adm
  sharedscripts
  prerotate
    if [ `cat /etc/ispcp/ispcp.conf | grep -c 'AWSTATS_ACTIVE *= *yes'` = 1 ]; then
      perl /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl >/dev/null 2>&1
    fi
  endscript
  postrotate
    if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then
      /etc/init.d/apache2 reload > /dev/null
    fi
  endscript
}

Kann ich einer der Einträge gefahrlos löschen?
Und welchen der beiden? (Der Eintrag ind der ispcp gefällt mir besser..)

Gruss bl4cki
10-14-2010 05:09 AM
Visit this user's website Find all posts by this user
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #5
RE: Problem Logrotate
Haue den hier "/etc/logrotate.d/apache2" mal weg.
Der ispCP Eintrag prüft noch die ispcp.conf ob AWStats überhaupt genutzt wird und lässt es ja nach dem laufen.

Wenn es passt bitte kurze Info, danke!

Greez BeNe
10-14-2010 10:11 PM
Visit this user's website Find all posts by this user
Nanakie Offline
Junior Member
*

Posts: 33
Joined: Oct 2010
Reputation: 0
Post: #6
RE: Problem Logrotate
ist zwar etwas älter aber ich kann bestätigen das die fehlermeldung weg ist
11-18-2010 10:53 AM
Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)