Typo in ispcp-backup-ispcp --> "main::db_user" - mr.x - 09-27-2009 08:10 PM
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
RE: Typo in ispcp-backup-ispcp --> "main::db_user" - ZooL - 09-27-2009 08:27 PM
also das problem scheind ja zu sein das die daten nicht gelesen werden...
entweder aus der ispcp.conf oder aus der mysql
soviel schonmal dazu...
RE: Typo in ispcp-backup-ispcp --> "main::db_user" - mr.x - 09-27-2009 08:30 PM
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
soviel schonmal dazu...
ok, wo finde ich mehr zu der main klasse? Wo sollte etwas in mysql stehen?
Jan
RE: Typo in ispcp-backup-ispcp --> "main::db_user" - ZooL - 09-27-2009 08:42 PM
(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
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
RE: Typo in ispcp-backup-ispcp --> "main::db_user" - mr.x - 09-27-2009 10:33 PM
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
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
RE: Typo in ispcp-backup-ispcp --> "main::db_user" - sci2tech - 09-28-2009 07:53 AM
http://www.isp-control.net/ispcp/changeset/2046
RE: Typo in ispcp-backup-ispcp --> "main::db_user" - RatS - 09-28-2009 01:25 PM
(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.
|