Logging not working since update to 2.2.33

Discussion in 'Installation/Configuration' started by nikopol, Oct 5, 2009.

  1. nikopol

    nikopol New Member

    Hi,

    I updated my ISPConfig installation from 2.2.32 to 2.2.33 on CentOS 5.3 a few days ago.

    Now I noticed there is a problem with the logging for the single web's. I can see the logfile /var/log/httpd/acces_log is continously written, but the cron job

    /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null

    is not parsing the logfile to the single web's under /var/www/webX/log/web.log. The symlink of webX is pointing to an old logfile under /var/www/www.XXX.com/log/2009/09/web.log. This file was touched the last time 10 days ago:

    [root@ispconfig]# ls -la /var/www/www.XXX.com/log/2009/09/web.log
    -rw-r--r-- 1 webX_user webX 7968546 Sep 25 00:30 /var/www/www.XXX.com/log/2009/09/web.log

    If i run the cronjob manually i get an error:

    [root@ispconfig]# /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php

    Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125
    chown: `0:web0': invalid group

    Since the logs.php script is not parsing the logfiles anymore the statistics are not running for all web's. How can I force the script to update the symlinks?

    Thanks for your help,

    Robert
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ls -la /var/www/
    ?
     
  3. nikopol

    nikopol New Member

    This is what i get:

    Code:
    [root@ispconfig /]# ls -la /var/www/
    total 92
    drwxr-xr-x 15 root           root 4096 Sep 25 00:30 .
    drwxr-xr-x 27 root           root 4096 Aug 21 11:29 ..
    lrwxrwxrwx  1 apache         web3   13 Aug  7 17:56 blog.web3.de -> /var/www/web3
    lrwxrwxrwx  1 apache         web4   13 Aug 10 16:17 blog.web4.de -> /var/www/web4
    drwxr-xr-x  2 root           root 4096 Jul 14 12:06 cgi-bin
    drwxr-xr-x  3 root           root 4096 Sep 25 00:30 combined_ispconfig?
    drwxr-xr-x  3 root           root 4096 Jul 28 13:45 error
    drwxr-xr-x  2 root           root 4096 Jul 14 12:06 html
    drwxr-xr-x  3 root           root 4096 Jul 28 13:45 icons
    drwxr-xr-x  3 root           root 4096 Jul 30 00:30 ispconfig.XXXXX.de
    drwxr-xr-x  3 root           root 4096 Aug  4 00:30 localhost
    drwxr-xr-x 14 root           root 4096 Jul 28 13:45 manual
    drwxr-xr-x  2 root           root 4096 Sep  2 10:03 sharedip
    drwxr-xr-x  2 webalizer      root 4096 Oct  1 04:02 usage
    drwxr-xr-x  8 web2_user   web2 4096 Oct  5 13:59 web2
    drwxr-xr-x  8 web3_user   web3 4096 Oct  5 13:59 web3
    drwxr-xr-x  8 web4_user web4 4096 Oct  5 13:59 web4
    lrwxrwxrwx  1 apache         web2   13 Aug  7 17:50 www.web2.de -> /var/www/web2
    
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Can you post the outputs of
    Code:
    ls -la /var/www/web2/
    ls -la /var/www/web3/
    ls -la /var/www/web4/
    ?
     
  5. nikopol

    nikopol New Member

    Hi falko,

    here is the requested information:

    Code:
    [root@ispconfig ~]# ls -la /var/www/web2/
    total 48
    drwxr-xr-x  8 web2_user web2 4096 Oct  5 13:59 .
    drwxr-xr-x 15 root         root 4096 Sep 25 00:30 ..
    drwxrwxr-x  2 web2_user web2 4096 Aug  7 17:50 cgi-bin
    -rw-------  1 web2_user web2   24 Oct  5 13:59 .forward
    -rw-rw-r--  1 root         web2   48 Oct  7 04:00 .htpasswd
    drwxr-xr-x  3 web2_user web2 4096 Sep  4 00:30 log
    -rw-r--r--  1 root         root    0 Oct  5 13:59 passwd.dav
    drwxrwxrwx  2 web2_user web2 4096 Aug  7 17:50 phptmp
    -rw-r--r--  1 root         root  480 Oct  5 13:59 .procmailrc
    lrwxrwxrwx  1 root         root   46 Oct  5 13:59 .spamassassin -> /var/www/web2/user/web2_user/.spamassassin/
    drwxr-xr-x  2 web2_user web2 4096 Aug  7 17:50 ssl
    drwxr-xr-x  3 web2_user web2 4096 Sep 22 18:41 user
    lrwxrwxrwx  1 root         root   47 Oct  5 13:59 .vacation.cache -> /var/www/web2/user/web2_user/.vacation.cache
    drwxrwxr-x  9 web2_user web2 4096 Sep 22 18:17 web
    [root@ispconfig ~]# ls -la /var/www/web3/
    total 48
    drwxr-xr-x  8 web3_user web3   4096 Oct  5 13:59 .
    drwxr-xr-x 15 root         root   4096 Sep 25 00:30 ..
    drwxrwxr-x  2 web3_user web3   4096 Aug 10 16:11 cgi-bin
    -rw-------  1 web3_user web3     24 Oct  5 13:59 .forward
    -rw-rw-r--  1 root         web3     48 Oct  7 04:00 .htpasswd
    drwxr-xr-x  3 web3_user web3   4096 Oct  6 08:57 log
    -rw-r-----  1 root         apache    0 Oct  6 11:22 passwd.dav
    drwxrwxrwx  2 web3_user web3   4096 Aug  7 17:56 phptmp
    -rw-r--r--  1 root         root    480 Oct  5 13:59 .procmailrc
    lrwxrwxrwx  1 root         root     46 Oct  5 13:59 .spamassassin -> /var/www/web3/user/web3_user/.spamassassin/
    drwxr-xr-x  2 web3_user web3   4096 Aug  7 17:56 ssl
    drwxr-xr-x  3 web3_user web3   4096 Aug  7 17:57 user
    lrwxrwxrwx  1 root         root     47 Oct  5 13:59 .vacation.cache -> /var/www/web3/user/web3_user/.vacation.cache
    drwxrwxr-x 10 web3_user web3   4096 Sep 22 17:57 web
    [root@ispconfig ~]# ls -la /var/www/web4/
    total 48
    drwxr-xr-x  8 web4_user web4 4096 Oct  5 13:59 .
    drwxr-xr-x 15 root           root 4096 Sep 25 00:30 ..
    drwxrwxr-x  5 web4_user web4 4096 Aug 25 16:13 cgi-bin
    -rw-------  1 web4_user web4   17 Oct  5 13:59 .forward
    -rw-rw-r--  1 root           web4   50 Oct  7 04:00 .htpasswd
    drwxr-xr-x  3 web4_user web4 4096 Sep  2 00:30 log
    -rw-r--r--  1 root           root    0 Oct  5 13:59 passwd.dav
    drwxrwxrwx  2 web4_user web4 4096 Aug 12 23:59 phptmp
    -rw-r--r--  1 root           root  482 Oct  5 13:59 .procmailrc
    lrwxrwxrwx  1 root           root   48 Oct  5 13:59 .spamassassin -> /var/www/web4/user/web4_user/.spamassassin/
    drwxr-xr-x  2 web4_user web4 4096 Aug 10 16:17 ssl
    drwxr-xr-x  3 web4_user web4 4096 Aug 10 16:20 user
    lrwxrwxrwx  1 root           root   49 Oct  5 13:59 .vacation.cache -> /var/www/web4/user/web4_user/.vacation.cache
    drwxrwxr-x 12 web4_user web4 4096 Oct  2 16:54 web
    Could you give me a hint what you are looking for??
     
  6. falko

    falko Super Moderator Howtoforge Staff

    I'm trying to find out where the script gets the group web0 from, but so far the permissions look ok. I have no idea what's wrong... :(
     
  7. nikopol

    nikopol New Member

    I deleted all admin user accounts of all 3 running webs in the ispconfig control panel. After this all files which before belong to webX_user:webX are now apache:webX. I still got the same "chown: `0:web0': invalid group" error when i run the /root/ispconfig/scripts/shell/logs.php script.

    I configured new admin accounts, all files are back to webX_user:webX, but error still not gone.

    Anybody knows what the logs.php script is doing to find out how many running webs are on the system? my knowledge of php is verry limited...
     
  8. nikopol

    nikopol New Member

    I deleted 2 of the 3 running webs, but the error is still not gone. Now only web4 is still on the server.

    If nowbody got an idea what's going on I think I will have to reinstall the whole server. :-(
     
  9. nikopol

    nikopol New Member

    I uninstalled ispconfig and all data with the uninstall script and did a new installation from scratch. Now everything is fine again.

    I think this effect has something to do with the update and the new awstats feature, but I'm not shure... anyway everything is fine again now. I hope nobody will run into this problem with many webs running on his server...
     

Share This Page