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


Post Reply 
Typo in ispcp-backup-ispcp --> "main::db_user"
Author Message
mr.x Offline
Development Team
*****
Dev Team

Posts: 232
Joined: Nov 2006
Reputation: 3
Post: #1
Typo in ispcp-backup-ispcp --> "main::db_user"
Hallo zusammen,

nach einem Update auf 1.0.2 bekommen ich diese Fehlermeldung vom backup Script jede Nacht.

Code:
Name "main::db_user" used only once: possible typo at /var/www/ispcp/engine/backup/ispcp-backup-ispcp line 247.
Name "main::db_pwd" used only once: possible typo at /var/www/ispcp/engine/backup/ispcp-backup-ispcp line 248.

Habe im Forum nach Lösungen gesucht (php-pear update, debug on usw.) aber keine hat geholfen.

Hier das Ergebnis mit debug on
Code:
root@pluto12:~# /var/www/ispcp/engine/backup/ispcp-backup-ispcp report
Name "main::db_user" used only once: possible typo at /var/www/ispcp/engine/backup/ispcp-backup-ispcp line 247.
Name "main::db_pwd" used only once: possible typo at /var/www/ispcp/engine/backup/ispcp-backup-ispcp line 248.
DEBUG: push_el() sub_name: backup_ispcp_start_up(), msg: Starting...
DEBUG: push_el() sub_name: lock_backup_ispcp_system(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/bin/touch /tmp/ispcp-backup-ispcp.lock'), msg: Ending...
DEBUG: push_el() sub_name: lock_backup_ispcp_system(), msg: Ending...
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: backup_ispcp_start_up(), msg: Ending...
DEBUG: push_el() sub_name: backup_ispcp_engine(), msg: Starting...
DEBUG: push_el() sub_name: get_human_date(), msg: Starting...
DEBUG: push_el() sub_name: get_human_date(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/usr/bin/mysqldump --add-drop-table --allow-keywords --quote-names -h"localh                            ost" -u"****" -p"******" "ispcp" >"/var/www/ispcp/backups/ispcp-2009.09.27-115948.sql"'), msg: Ending...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/bin/bzip2 --force '/var/www/ispcp/backups/ispcp-2009.09.27-115948.sql''), m                            sg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/bin/tar --create --directory=/etc/ispcp --bzip2 --file=/var/www/ispcp/backu                            ps/config-backup-2009.09.27-115948.tar.bz2 . 2> /var/log/ispcp/config-backup-2009.09.27-115948.tar.bz2.log'), msg: E                            nding...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/bin/rm -rf /var/log/ispcp/config-backup-2009.09.27-115948.tar.bz2.log'), ms                            g: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('find /var/www/ispcp/backups/* -maxdepth 0 -type f -mtime +14 -print | xargs                             -r /bin/rm'), msg: Ending...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: backup_ispcp_engine(), msg: Ending...
DEBUG: push_el() sub_name: backup_ispcp_mail_task(), msg: Starting...
DEBUG: push_el() sub_name: get_human_date(), msg: Starting...
DEBUG: push_el() sub_name: get_human_date(), msg: Ending...
DEBUG: push_el() sub_name: backup_ispcp_mail_task(), msg: Ending...
DEBUG: push_el() sub_name: backup_ispcp_shut_down(), msg: Starting...
DEBUG: push_el() sub_name: unlock_backup_ispcp_system(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Ending...
DEBUG: push_el() sub_name: unlock_backup_ispcp_system(), msg: Ending...
DEBUG: push_el() sub_name: backup_ispcp_shut_down(), msg: Ending...

System ist Ubuntu 9.04 und ispcp 1.0.2

Hat jemand eine Idee oder Lösung für mich?

Jan
09-27-2009 08:10 PM
Find all posts by this user Quote this message in a reply
ZooL Offline
Moderator
*****
Moderators

Posts: 3,429
Joined: Jan 2007
Reputation: 79
Post: #2
RE: Typo in ispcp-backup-ispcp --> "main::db_user"
also das problem scheind ja zu sein das die daten nicht gelesen werden...
entweder aus der ispcp.conf oder aus der mysql Wink
soviel schonmal dazu...
09-27-2009 08:27 PM
Visit this user's website Find all posts by this user Quote this message in a reply
mr.x Offline
Development Team
*****
Dev Team

Posts: 232
Joined: Nov 2006
Reputation: 3
Post: #3
RE: Typo in ispcp-backup-ispcp --> "main::db_user"
Hi,

(09-27-2009 08:27 PM)ZooL Wrote:  also das problem scheind ja zu sein das die daten nicht gelesen werden...
entweder aus der ispcp.conf oder aus der mysql Wink
soviel schonmal dazu...

ok, wo finde ich mehr zu der main klasse? Wo sollte etwas in mysql stehen?

Jan
09-27-2009 08:30 PM
Find all posts by this user Quote this message in a reply
ZooL Offline
Moderator
*****
Moderators

Posts: 3,429
Joined: Jan 2007
Reputation: 79
Post: #4
RE: Typo in ispcp-backup-ispcp --> "main::db_user"
(09-27-2009 08:30 PM)mr.x Wrote:  Hi,

(09-27-2009 08:27 PM)ZooL Wrote:  also das problem scheind ja zu sein das die daten nicht gelesen werden...
entweder aus der ispcp.conf oder aus der mysql Wink
soviel schonmal dazu...

ok, wo finde ich mehr zu der main klasse? Wo sollte etwas in mysql stehen?

Jan

also du solltest mal schauen ob in der etc/ispcp/ispcp.conf unter mysql daten stehen.... das passwort wäre das wichtiger Big Grin
09-27-2009 08:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply
mr.x Offline
Development Team
*****
Dev Team

Posts: 232
Joined: Nov 2006
Reputation: 3
Post: #5
RE: Typo in ispcp-backup-ispcp --> "main::db_user"
Hi,

(09-27-2009 08:42 PM)ZooL Wrote:  also du solltest mal schauen ob in der etc/ispcp/ispcp.conf unter mysql daten stehen.... das passwort wäre das wichtiger Big Grin

jepp, steht alles sauber drin.
Steht auch schön im Debug drin

Code:
/usr/bin/mysqldump --add-drop-table --allow-keywords --quote-names -h"localh                            ost" -u"****" -p"******" "ispcp"

Das geht ohne Fehlermeldung durch.
Wo sollte etwas im perl stehen?

JAn
09-27-2009 10:33 PM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #6
RE: Typo in ispcp-backup-ispcp --> "main::db_user"
http://www.isp-control.net/ispcp/changeset/2046
09-28-2009 07:53 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #7
RE: Typo in ispcp-backup-ispcp --> "main::db_user"
(09-27-2009 08:10 PM)mr.x Wrote:  
Code:
Name "main::db_user" used only once: possible typo at /var/www/ispcp/engine/backup/ispcp-backup-ispcp line 247.
Name "main::db_pwd" used only once: possible typo at /var/www/ispcp/engine/backup/ispcp-backup-ispcp line 248.

By the way: This is no mistake. We are reading the global "main" variables and writing them to local. Therefore, we use them only once. The perl mode "strict" delivers these warning that can be ignored.
09-28-2009 01:25 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: