Current time: 11-26-2024, 05:03 PM Hello There, Guest! (LoginRegister)


Post Reply 
[ERLEDIGT] Awstats
Author Message
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #11
RE: Awstats
Debug mode einschalten und logfiles lesen?
Generell den allerobersten Thread im deutschen Forum mal studieren.
02-29-2008 09:52 AM
Visit this user's website Find all posts by this user Quote this message in a reply
bwelker Offline
Junior Member
*

Posts: 23
Joined: Jul 2007
Reputation: 0
Post: #12
RE: Awstats
joximu Wrote:Debug mode einschalten und logfiles lesen?
Generell den allerobersten Thread im deutschen Forum mal studieren.


OS: Debian Etch
32bit/64bit: 32
RC/Revision: ispCP 1.0rc3 OMEGA build: 2008-02-06
Install date: 28.02.2008
VM/Real Server: Real


Ich hab den Debug mode mal angemacht
/var/log/ispcp/ispcp-serv-mngr.stderr ist leer

/var/log/ispcp/ispcp-serv-mngr.stdout:
DEBUG: push_el() sub_name: serv_mngr_start_up(), msg: Starting...
DEBUG: push_el() sub_name: check_master(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('export COLUMNS=120;/bin/ps auxww | awk '$0 ~ /ispcp-rqst-mngr/ && $0 !~ /awk/ { print $2 ;}' 1>/tmp/ispcp-cc.stdout 2>/tmp/ispcp-cc.stderr'), msg: Ending...
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Ending...
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Ending...
DEBUG: push_el() sub_name: check_master(), msg: Starting...
DEBUG: push_el() sub_name: get_conf(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: serv_mngr_start_up(), msg: Ending...
DEBUG: push_el() sub_name: serv_mngr_engine(), msg: Starting...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Starting...
Stopping Postfix Mail Transport Agent: postfix.
DEBUG: push_el() sub_name: sys_command_rs(), msg: Ending...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Starting...
Stopping Courier authentication services: authdaemond.
DEBUG: push_el() sub_name: sys_command_rs(), msg: Ending...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Starting...
Stopping Courier IMAP server: imapd.
DEBUG: push_el() sub_name: sys_command_rs(), msg: Ending...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Starting...
Stopping Courier POP3 server: pop3d.
DEBUG: push_el() sub_name: sys_command_rs(), msg: Ending...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Starting...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Ending...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Starting...
Starting Postfix Mail Transport Agent: postfix.
DEBUG: push_el() sub_name: sys_command_rs(), msg: Ending...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Starting...
Starting Courier authentication services: authdaemond.
DEBUG: push_el() sub_name: sys_command_rs(), msg: Ending...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Starting...
Starting Courier IMAP server:0022
imapd.
DEBUG: push_el() sub_name: sys_command_rs(), msg: Ending...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Starting...
Starting Courier POP3 server: pop3d.
DEBUG: push_el() sub_name: sys_command_rs(), msg: Ending...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Starting...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Ending...
DEBUG: push_el() sub_name: check_httpd(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('export COLUMNS=120;/bin/ps aux | /usr/bin/awk '$0 ~/apache2/ {print $0}' | /usr/bin/wc | /usr/bin/awk '{print $1}' 1>/tmp/httpd-run-check.stdout'), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: check_httpd(), msg: Ending...
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Ending...
DEBUG: push_el() sub_name: serv_mngr_engine(), msg: Ending...
DEBUG: push_el() sub_name: serv_mngr_shut_down(), msg: Starting...
DEBUG: push_el() sub_name: serv_mngr_shut_down(), msg: Ending...


Was mir gerade aufgefallen ist, ich hatte zum test bei einer Domain mal den Proxyeintrag für AWStats reingemacht. Normal wird die Datei ja neu erzeugt. Als ich ebend aber in die Datei schaute war der Eintrag noch immer drin. Das ist doch auch nicht richtig oder ?
02-29-2008 10:03 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #13
RE: Awstats
Sieht ok aus.
Wie sieht's aus mit den tpl Dateien in /etc/ispcp/apache/parts/ und zwar dmn_awst*

Hast du die beim Update mit der aktuellen tpl-Auswahl überschrieben?


Die ispcp.conf wird meines Wissens nur partiell neu geschrieben. Dort wo sich was ändert. Jedoch frag ich mich, wie der manuelle Eintrag in die working-copy gekommen ist...
02-29-2008 12:23 PM
Visit this user's website Find all posts by this user Quote this message in a reply
bwelker Offline
Junior Member
*

Posts: 23
Joined: Jul 2007
Reputation: 0
Post: #14
RE: Awstats
Ich bin genau nach der Upgrade anleitung vorgegangen. Da sollten die tmpl ja überschrieben sein. Die Files haben auch alle das Install datum also den 28.02.2008.

Ja in die working ist das gekommen weil ich ausprobieren wollte ob AWstats überhaupt rennt. Das klappt aber alles bis auf den Eintrag in der ispcp.conf

Ich hab ebend nochmal nen testlauf gemacht. Jetzt sind viele Fehler im Log. Ich hänge das mal an


Attached File(s)
.txt  ispcp-dmn-mngr.stdout.txt (Size: 167.91 KB / Downloads: 6)
(This post was last modified: 02-29-2008 06:23 PM by bwelker.)
02-29-2008 06:04 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #15
RE: Awstats
das sieht soweit ok aus - auch wenn's viele ERROR hat.

ich kann den Fehler nicht finden. Der teil, wo die awstat-Zeilen dazukommen ist:
Code:
#
        # Add AWStats data
        #

        my $awstats_entry = undef;

        # AWStats Dynamic
        if ($main::cfg{'AWSTATS_ACTIVE'} eq 'yes' && $main::cfg{'AWSTATS_MODE'} eq 0) {
                $awstats_entry = "$dmn_awstats_b\n$dmn_awstats_dynamic_entry\n$dmn_awstats_e";
        }
        # AWStats Static
        elsif ($main::cfg{'AWSTATS_ACTIVE'} eq 'yes' && $main::cfg{'AWSTATS_MODE'} eq 1) {
                $awstats_entry = "$dmn_awstats_b\n$dmn_awstats_static_entry\n$dmn_awstats_e";
        }
        # No AWStats
        else {
                $awstats_entry = "$dmn_awstats_b\n$dmn_awstats_e";
        }

also, dann merkt der nicht wirklich, ob das AWSTATS_ACTIVE wirklich auf yes ist - oder er hat leere Inhalte für die Zeile dazwischen (dmn_awstats_dynamic_entry.tpl)

um das genauer anzusehen, kannst du vielleicht ne Kopie vom script ispcp-dmn-mngr machen und dann dort ein paar Zeilen einfügen wie
push_el(\@main::el, 'MEIN TEST', "$awstats_entry");
oder so...

Gruss
J
02-29-2008 07:38 PM
Visit this user's website Find all posts by this user Quote this message in a reply
bwelker Offline
Junior Member
*

Posts: 23
Joined: Jul 2007
Reputation: 0
Post: #16
RE: Awstats
Ich hab da was eingefügt in dem mngr

Nun kommt immer nur:

DEBUG: push_el() sub_name: dmn_mngr_start_up(), msg: Starting...
DEBUG: push_el() sub_name: check_master(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('export COLUMNS=120;/bin/ps auxww | awk '$0 ~ /ispcp-rqst-mngr/ && $0 !~ /awk/ { print $2 ;}' 1>/tmp/ispcp-cc.stdout 2>/tmp/ispcp-cc.stderr'), msg: Ending...
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Ending...
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Ending...
DEBUG: push_el() sub_name: check_master(), msg: ERROR: Master manager process is not running !
DEBUG: pop_el() sub_name: check_master(), msg: ERROR: Master manager process is not running !
DEBUG: pop_el() sub_name: del_file(), msg: Ending...
DEBUG: pop_el() sub_name: del_file(), msg: Starting...
DEBUG: pop_el() sub_name: del_file(), msg: Ending...
DEBUG: pop_el() sub_name: del_file(), msg: Starting...
DEBUG: pop_el() sub_name: sys_command('export COLUMNS=120;/bin/ps auxww | awk '$0 ~ /ispcp-rqst-mngr/ && $0 !~ /awk/ { print $2 ;}' 1>/tmp/ispcp-cc.stdout 2>/tmp/ispcp-cc.stderr'), msg: Ending...
DEBUG: pop_el() sub_name: sys_command(), msg: Starting...
DEBUG: pop_el() sub_name: dmn_mngr_start_up(), msg: Starting...
DEBUG: pop_el() sub_name: get_conf(), msg: Ending...
DEBUG: pop_el() sub_name: setup_main_vars(), msg: Ending...
DEBUG: pop_el() sub_name: decrypt_db_password(), msg: Ending...
DEBUG: pop_el() sub_name: decrypt_db_password(), msg: Starting...
DEBUG: pop_el() sub_name: setup_main_vars(), msg: Starting...
DEBUG: pop_el() sub_name: get_file(), msg: Ending...
DEBUG: pop_el() sub_name: get_file(), msg: Starting...
DEBUG: pop_el() sub_name: get_conf(), msg: Starting...
DEBUG: pop_el() Empty 'EL' Stack !
DEBUG: push_el() sub_name: dmn_mngr_shut_down(), msg: Starting...
DEBUG: push_el() sub_name: dmn_mngr_shut_down(), msg: Ending...

Und er macht nix.

dann hab ich das Backup zurückgespielt von dem mngr, da passiert aber genau das gleiche nur.
Was ist denn nun kaputt. Domains stehen in der DB auf "toadd".
02-29-2008 09:21 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #17
RE: Awstats
wenn der master_prozess nicht läuft, geht es nicht gut.

Starte mal den ispcp_daemon

/J
02-29-2008 09:35 PM
Visit this user's website Find all posts by this user Quote this message in a reply
bwelker Offline
Junior Member
*

Posts: 23
Joined: Jul 2007
Reputation: 0
Post: #18
RE: Awstats
joximu Wrote:wenn der master_prozess nicht läuft, geht es nicht gut.

Starte mal den ispcp_daemon

/J

Nach dem start vom ispcp_daemon

DEBUG: push_el() sub_name: dmn_mngr_start_up(), msg: Starting...
DEBUG: push_el() sub_name: check_master(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('export COLUMNS=120;/bin/ps auxww | awk '$0 ~ /ispcp-rqst-mngr/ && $0 !~ /awk/ { print $2 ;}' 1>/tmp/ispcp-cc.stdout 2>/tmp/ispcp-cc.stderr'), msg: Ending...
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Ending...
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Ending...
DEBUG: push_el() sub_name: check_master(), msg: ERROR: Master manager process is not running !
DEBUG: pop_el() sub_name: check_master(), msg: ERROR: Master manager process is not running !
DEBUG: pop_el() sub_name: del_file(), msg: Ending...
DEBUG: pop_el() sub_name: del_file(), msg: Starting...
DEBUG: pop_el() sub_name: del_file(), msg: Ending...
DEBUG: pop_el() sub_name: del_file(), msg: Starting...
DEBUG: pop_el() sub_name: sys_command('export COLUMNS=120;/bin/ps auxww | awk '$0 ~ /ispcp-rqst-mngr/ && $0 !~ /awk/ { print $2 ;}' 1>/tmp/ispcp-cc.stdout 2>/tmp/ispcp-cc.stderr'), msg: Ending...
DEBUG: pop_el() sub_name: sys_command(), msg: Starting...
DEBUG: pop_el() sub_name: dmn_mngr_start_up(), msg: Starting...
DEBUG: pop_el() sub_name: get_conf(), msg: Ending...
DEBUG: pop_el() sub_name: setup_main_vars(), msg: Ending...
DEBUG: pop_el() sub_name: decrypt_db_password(), msg: Ending...
DEBUG: pop_el() sub_name: decrypt_db_password(), msg: Starting...
DEBUG: pop_el() sub_name: setup_main_vars(), msg: Starting...
DEBUG: pop_el() sub_name: get_file(), msg: Ending...
DEBUG: pop_el() sub_name: get_file(), msg: Starting...
DEBUG: pop_el() sub_name: get_conf(), msg: Starting...
DEBUG: pop_el() Empty 'EL' Stack !
DEBUG: push_el() sub_name: dmn_mngr_shut_down(), msg: Starting...
DEBUG: push_el() sub_name: dmn_mngr_shut_down(), msg: Ending...
02-29-2008 10:09 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #19
RE: Awstats
ups, sorry. Der Master ist der request-prozess... hab mich vertan... Sad

nicht ispcp-dmn-mngr starten, immer den ispcp-rqst-mngr...
02-29-2008 10:13 PM
Visit this user's website Find all posts by this user Quote this message in a reply
bwelker Offline
Junior Member
*

Posts: 23
Joined: Jul 2007
Reputation: 0
Post: #20
RE: Awstats
joximu Wrote:ups, sorry. Der Master ist der request-prozess... hab mich vertan... Sad

nicht ispcp-dmn-mngr starten, immer den ispcp-rqst-mngr...

Gerade selber gemerkt Smile
02-29-2008 10:19 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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