Current time: 05-07-2024, 04:14 AM Hello There, Guest! (LoginRegister)


Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Erledigt] Problem mit Kunden anlegen
Author Message
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #11
RE: Problem mit Kunden anlegen
The log you posted was from a deleted domain, not from a added one. With each operation regarding a domain logs are overwritten. Please try to add a domain then post here the log files (ispcp-dmn-mngr.*).
09-04-2008 04:28 AM
Visit this user's website Find all posts by this user
SkytreX Offline
Junior Member
*

Posts: 21
Joined: Sep 2008
Reputation: 0
Post: #12
RE: Problem mit Kunden anlegen
Hallo,

hier der Link zum Log: http://www.BBPing.de/log.txt

@Cube:
Entschuldigung. Habe es nun geändert. Smile


Gruß SkytreX
(This post was last modified: 09-04-2008 05:13 AM by SkytreX.)
09-04-2008 05:01 AM
Find all posts by this user
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #13
RE: Problem mit Kunden anlegen
Anmerkung am Rande:
Poste solche riesigen Logs zukünftig bitte als Anhang, so Riesen-Pastes machen den Thread sehr unübersichtlich. Danke.
09-04-2008 05:08 AM
Find all posts by this user
SkytreX Offline
Junior Member
*

Posts: 21
Joined: Sep 2008
Reputation: 0
Post: #14
Sad RE: Problem mit Kunden anlegen
Hat keiner ne Idee wie ich das Problem beheben kann?

LG SkytreX
09-04-2008 06:17 AM
Find all posts by this user
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #15
RE: Problem mit Kunden anlegen
Problem come from setfmode function in ispcp_common_methods.pl. This can happend if script is not running as root. I`m trying to replicate but i failed so far.
09-04-2008 06:31 AM
Visit this user's website Find all posts by this user
SkytreX Offline
Junior Member
*

Posts: 21
Joined: Sep 2008
Reputation: 0
Post: #16
RE: Problem mit Kunden anlegen
Wie kann ich das Problem beheben, was Sie dort beschrieben haben?

MFG
09-04-2008 06:41 AM
Find all posts by this user
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #17
RE: Problem mit Kunden anlegen
try this patch
Quote:--- /_backup/ispcp/engine/ispcp_common_methods.pl 2008-08-30 17:34:49.000000000 +0300
+++ ispcp_common_methods.pl 2008-09-03 23:58:18.000000000 +0300
@@ -422,13 +422,10 @@
if ($fgroup =~ /^\d+$/) {
$gid = $fgroup;
}
- elsif ($fgroup eq 'null') {
- $gid = $udata[3];
- }
elsif ($fgroup ne '-1') {
@gdata = getgrnam($fgroup);

- if (scalar(@udata) == 0) {
+ if (scalar(@gdata) == 0) {
push_el(\@main::el, 'setfmode()', "ERROR: Unknown user '$fgroup' !");
return -1;
}
@@ -445,7 +442,7 @@
$res = chown($uid, $gid, $fname);

if ($res != 1) {
- push_el(\@main::el, 'setfmode()', "ERROR: cannot change user/group of file '$fname' !");
+ push_el(\@main::el, 'setfmode()', "ERROR: cannot change user/group fname: |$fname|, fuid: |$fuser|, fgid: |$fgroup|, fperms: |$fperms|, res: |$res| !");
return -1;

}
If something go wrong please put here /var/log/ispcp/ispcp-dmn-mngr.*
MAKE BACKUP
(This post was last modified: 09-04-2008 07:00 AM by sci2tech.)
09-04-2008 06:59 AM
Visit this user's website Find all posts by this user
SkytreX Offline
Junior Member
*

Posts: 21
Joined: Sep 2008
Reputation: 0
Post: #18
RE: Problem mit Kunden anlegen
Hallo,

ich habe die Datei modifiziert. Nun ist der Status der neu angelegten Benutzer nicht mehr mit einem roten Warnzeichen versehen, sondern mit diesem blauen Symbol. Aber mehr passiert auch nicht.

Hier ist die Log: http://www.BBPing.de/log.txt

Gruß
09-04-2008 07:22 AM
Find all posts by this user
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #19
RE: Problem mit Kunden anlegen
Sorry to inform but you did not apply patch corect. Function must look like:
Code:
sub setfmode {

    my ($fname, $fuser, $fgroup, $fperms) = @_;

    push_el(\@main::el, 'setfmode()', 'Starting...');

    if (!defined($fname) || !defined($fuser) || !defined($fperms) ||
        $fname eq '' || $fname eq '' || $fgroup eq '' || $fperms eq '') {

        push_el(\@main::el, 'setfmode()',
                "ERROR: Undefined input data, fname: |$fname|, fuid: |$fuser|, fgid: |$fgroup|, fperms: |$fperms| !");
        return -1;
    }

    if (! -e $fname) {
        push_el(\@main::el, 'setfmode()', "ERROR: File '$fname' does not exist !");
        return -1;
    }

    my @udata = ();
    my @gdata = ();

    my ($uid, $gid) = (undef, undef);

    # get UID of user
    if ($fuser =~ /^\d+$/) {
        $uid = $fuser;
    }
    elsif ($fuser ne '-1') {
        @udata = getpwnam($fuser);

        if (scalar(@udata) == 0) {
           push_el(\@main::el, 'setfmode()', "ERROR: Unknown user '$fuser' !");
           return -1;
        }
        $uid = $udata[2];
    }

    # get GID of user
    if ($fgroup =~ /^\d+$/) {
        $gid = $fgroup;
    }
    elsif ($fgroup ne '-1') {
           @gdata = getgrnam($fgroup);

       [b] if (scalar(@gdata) == 0) {[/b]
           push_el(\@main::el, 'setfmode()', "ERROR: Unknown user '$fgroup' !");
           return -1;
        }
        $gid = $gdata[2];
    }

    my $res = chmod($fperms, $fname);

    if ($res != 1) {
        push_el(\@main::el, 'setfmode()', "ERROR: cannot change permissions of file '$fname' !");
        return -1;
    }

    $res = chown($uid, $gid, $fname);

    if ($res != 1) {
        [b]push_el(\@main::el, 'setfmode()', "ERROR: cannot change user/group fname: |$fname|, fuid: |$fuser|, fgid: |$fgroup|, fperms: |$fperms|, res: |$res| !");[/b]
        return -1;

    }

    push_el(\@main::el, 'setfmode()', 'Ending...');
    return 0;
}
09-04-2008 07:28 AM
Visit this user's website Find all posts by this user
SkytreX Offline
Junior Member
*

Posts: 21
Joined: Sep 2008
Reputation: 0
Post: #20
RE: Problem mit Kunden anlegen
Jetzt ist wieder alles wie vorher. Sad

Hier die Log:
Code:
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: Starting...
DEBUG: push_el() sub_name: get_conf(), 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: dmn_mngr_start_up(), msg: Ending...
DEBUG: push_el() sub_name: dmn_mngr_engine(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: dmn_mngr_engine(), msg: proceeding -> SELECT t1.domain_id, t1.domain_name, t1.domain_gid, t1.domain_uid, t1.domain_admin_id,
        t1.domain_created_id, t1.domain_created, t1.domain_last_modified, t1.domain_mailacc_limit, t1.domain_ftpacc_limit,
        t1.domain_traffic_limit, t1.domain_sqld_limit, t1.domain_sqlu_limit, t1.domain_status, t1.domain_alias_limit,
        t1.domain_subd_limit, t1.domain_ip_id, t1.domain_disk_limit, t1.domain_disk_usage, t1.domain_php,
        t1.domain_cgi, t2.ip_number FROM domain AS t1, server_ips AS t2 WHERE t1.domain_ip_id = t2.ip_id
        AND t1.domain_id = 64
DEBUG: push_el() sub_name: dmn_del_data(), msg: Starting...
DEBUG: push_el() sub_name: dmn_del_awstats_data(), msg: Starting...
DEBUG: push_el() sub_name: dmn_del_awstats_cfg_data(), msg: Starting...
DEBUG: push_el() sub_name: dmn_del_awstats_cfg_data(), msg: Ending...
DEBUG: push_el() sub_name: dmn_del_awstats_data(), msg: Ending...
DEBUG: push_el() sub_name: dmn_del_named_data(), msg: Starting...
DEBUG: push_el() sub_name: dmn_del_named_cfg_data(), msg: Starting...
DEBUG: push_el() sub_name: get_tpl(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_tpl(), msg: Ending...
DEBUG: push_el() sub_name: prep_tpl(), msg: Starting...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{DMN_NAME}' eq '{DMN_NAME}', missing '{DMN_NAME}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{DB_DIR}' eq '{DB_DIR}', missing '{DB_DIR}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{DMN_NAME}' eq '{DMN_NAME}', missing '{DMN_NAME}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{DB_DIR}' eq '{DB_DIR}', missing '{DB_DIR}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{DMN_NAME}' eq '{DMN_NAME}', missing '{DMN_NAME}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{DB_DIR}' eq '{DB_DIR}', missing '{DB_DIR}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: prep_tpl(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Ending...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '// dmn [atest.bbping.de] cfg entry BEGIN.
' ne '// dmn [atest.bbping.de] cfg entry END.
', '// dmn [atest.bbping.de] cfg entry BEGIN.
' or '// dmn [atest.bbping.de] cfg entry END.
' missing in src !
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/bin/cp -p /etc/bind/named.conf /etc/ispcp/bind/backup/named.conf.1220478455'), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: dmn_del_named_cfg_data(), msg: Ending...
DEBUG: push_el() sub_name: dmn_del_named_db_data(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: ERROR: File '/etc/ispcp/bind/working/atest.bbping.de.db' does not exist !
DEBUG: pop_el() sub_name: del_file(), msg: ERROR: File '/etc/ispcp/bind/working/atest.bbping.de.db' does not exist !
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: dmn_mngr_engine(), msg: Ending...
09-04-2008 07:50 AM
Find all posts by this user
Thread Closed 


Forum Jump:


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