ispCP - Board - Support
Update Problem - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega International Area (/forum-22.html)
+--- Forum: German Corner (/forum-26.html)
+--- Thread: Update Problem (/thread-12832.html)

Pages: 1 2


RE: Update Problem - maxi - 02-09-2011 02:24 AM

haha Danke Fluser. Hat auch prima geklappt nur kommt jetzt folgende Fehlermeldung:

Quote:An error occured! Please, contact your administrator!

mfg
MxiWinkRolleyes

EDIT: Ich habe das Upgraden nochmal versucht und diesmal konnte ich sogar bis zum eigentlichen Schritt gehen. Das Upgraden wurde aber vorzeitig abgebrochen. Hier ist der Log:

Quote:get_conf() | Starting...
get_file() | Starting...
get_file() | Ending...
setup_main_vars() | Starting...
decrypt_db_password() | Starting...
decrypt_db_password() | Ending...
setup_main_vars() | Ending...
get_conf() | Ending...
makepath() | Starting...
makepath() | [NOTICE] '/var/log/ispcp/setup' doesn't exists as directory! creating...
setfmode() | Starting...
setfmode() | Ending...
makepath() | Ending...
update_startup() | Starting...
del_file() | Starting...
del_file() | [ERROR] File '/tmp/ispcp-setup.log' does not exist !
lock_system() | Starting...
lock_system() | Ending...
update_startup() | Ending...
update_engine() | Starting...
user_dialog() | Starting...
welcome_note() | Starting...
welcome_note() | Ending...
warn_msg() | Starting...
warn_msg() | Ending...
user_dialog() | Ending...
stop_services() | Starting...
sys_command() | Starting...
system() | [DEBUG] Stopping ispCP Network Traffic Logger: ispcp_network.
getCmdExitValue() | Starting...
getCmdExitValue() | [DEBUG] External command exited with value 0
getCmdExitValue() | Ending...
sys_command('/etc/init.d/ispcp_network stop') | Ending...
sys_command() | Starting...
system() | [DEBUG] Stopping ispCP GUI-Backend communication Daemon: ispcp_daemon.
getCmdExitValue() | Starting...
getCmdExitValue() | [DEBUG] External command exited with value 0
getCmdExitValue() | Ending...
sys_command('/etc/init.d/ispcp_daemon stop') | Ending...
sys_command() | Starting...
system() | [DEBUG] Stopping domain name service...: bind9 waiting for pid 14561 to die.
getCmdExitValue() | Starting...
getCmdExitValue() | [DEBUG] External command exited with value 0
getCmdExitValue() | Ending...
sys_command('/etc/init.d/bind9 stop') | Ending...
sys_command() | Starting...
getCmdExitValue() | Starting...
getCmdExitValue() | [DEBUG] External command exited with value 0
getCmdExitValue() | Ending...
sys_command('/usr/sbin/apache2ctl stop') | Ending...
sys_command() | Starting...
system() | [DEBUG] Stopping ftp server: proftpd.
getCmdExitValue() | Starting...
getCmdExitValue() | [DEBUG] External command exited with value 0
getCmdExitValue() | Ending...
sys_command('/etc/init.d/proftpd stop') | Ending...
sys_command() | Starting...
system() | [DEBUG] Stopping Postfix Mail Transport Agent: postfix.
getCmdExitValue() | Starting...
getCmdExitValue() | [DEBUG] External command exited with value 0
getCmdExitValue() | Ending...
sys_command('/etc/init.d/postfix stop') | Ending...
sys_command() | Starting...
system() | [DEBUG] Stopping Courier authentication services: authdaemond.
getCmdExitValue() | Starting...
getCmdExitValue() | [DEBUG] External command exited with value 0
getCmdExitValue() | Ending...
sys_command('/etc/init.d/courier-authdaemon stop') | Ending...
sys_command() | Starting...
system() | [DEBUG] Stopping Courier POP3 server: pop3d.
getCmdExitValue() | Starting...
getCmdExitValue() | [DEBUG] External command exited with value 0
getCmdExitValue() | Ending...
sys_command('/etc/init.d/courier-pop stop') | Ending...
sys_command() | Starting...
system() | [DEBUG] Stopping Courier IMAP server: imapd.
getCmdExitValue() | Starting...
getCmdExitValue() | [DEBUG] External command exited with value 0
getCmdExitValue() | Ending...
sys_command('/etc/init.d/courier-imap stop') | Ending...
stop_services() | Ending...
load_old_ispcp_config() | Starting...
get_conf() | Starting...
get_file() | Starting...
get_file() | Ending...
setup_main_vars() | Starting...
setup_main_vars() | Ending...
get_conf() | Ending...
load_old_ispcp_config() | Ending...
update_ispcp_cfg() | Starting...
get_file() | Starting...
get_file() | Ending...
get_conf() | Starting...
get_file() | Starting...
get_file() | Ending...
setup_main_vars() | Starting...
decrypt_db_password() | Starting...
decrypt_db_password() | Ending...
setup_main_vars() | Ending...
get_conf() | Ending...
set_conf_val() | Starting...
set_conf_val() | Ending...
set_conf_val() | Starting...
set_conf_val() | Ending...
set_conf_val() | Starting...
set_conf_val() | Ending...
set_conf_val() | Starting...
set_conf_val() | Ending...
set_conf_val() | Starting...
set_conf_val() | Ending...
set_conf_val() | Starting...
set_conf_val() | Ending...
set_conf_val() | Starting...
set_conf_val() | Ending...
store_conf() | Starting...
get_file() | Starting...
get_file() | Ending...
store_file() | Starting...
setfmode() | Starting...
setfmode() | Ending...
store_file() | Ending...
get_conf() | Starting...
get_file() | Starting...
get_file() | Ending...
setup_main_vars() | Starting...
setup_main_vars() | Ending...
get_conf() | Ending...
store_conf() | Ending...
update_ispcp_cfg() | Ending...
check_ispcp_cfg_file() | Starting...
check_ispcp_cfg_file() | Starting...
ask_vhost() | Starting...
get_sys_hostname() | Starting...
getEthAddr() | Starting...
getCmdExitValue() | Starting...
getCmdExitValue() | [DEBUG] External command exited with value 0
getCmdExitValue() | Ending...
getEthAddr() | Ending...
getCmdExitValue() | Starting...
getCmdExitValue() | [DEBUG] External command exited with value 0
getCmdExitValue() | Ending...
get_sys_hostname() | Ending...
ask_vhost() | Ending...
set_conf_val() | Starting...
set_conf_val() | Ending...
ask_admin_email() | Starting...
isValidEmail() | Starting...
isValidEmailUser() | Starting...
isValidEmailUser() | Ending...
isValidEmailDomain() | Starting...
isValidHostname() | Starting...
isValidHostname() | Ending...
isValidEmailDomain() | Ending...
isValidEmail() | Ending...
ask_admin_email() | Ending...
set_conf_val() | Starting...
set_conf_val() | Ending...
ask_resolver() | Starting...
ask_resolver() | Ending...
set_conf_val() | Starting...
set_conf_val() | Ending...
ask_timezone() | Starting...
ask_timezone() | Ending...
set_conf_val() | Starting...
set_conf_val() | Ending...
store_conf() | Starting...
get_file() | Starting...
get_file() | Ending...
store_file() | Starting...
setfmode() | Starting...
setfmode() | Ending...
store_file() | Ending...
get_conf() | Starting...
get_file() | Starting...
get_file() | Ending...
setup_main_vars() | Starting...
setup_main_vars() | Ending...
get_conf() | Ending...
store_conf() | Ending...
sys_command_rs() | Starting...
sys_command_rs() | Ending...
getCmdExitValue() | Starting...
getCmdExitValue() | [DEBUG] External command exited with value 0
getCmdExitValue() | Ending...
check_ispcp_cfg_file() | Ending...
preinst() | Starting...
sys_command() | Starting...
getCmdExitValue() | Starting...
getCmdExitValue() | [DEBUG] External command exited with value 0
getCmdExitValue() | Ending...
sys_command('/bin/sh preinst upgrade') | Ending...
preinst() | Ending...
update_database_schema() | Starting...
get_file() | Starting...
get_file() | Ending...
save_file() | Starting...
save_file() | Ending...
sys_command_rs() | Starting...
system() | [DEBUG]
[ERROR]: Error: Unable to establish connection to the database! SQL returned: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

StackTrace:
#0 /var/www/ispcp/gui/include/ispCP/Initializer.php(201): ispCP_Initializer->_initializeDatabase()
#1 /var/www/ispcp/gui/include/ispCP/Initializer.php(102): ispCP_Initializer->_processCLI()
#2 /var/www/ispcp/gui/include/environment.php(235): ispCP_Initializer::run(Object(ispCP_Config_Handler_File))
#3 /var/www/ispcp/gui/include/ispcp-lib.php(115): require_once('/var/www/ispcp/...')
#4 /var/www/ispcp/engine/setup/updDB.php(44): require_once('/var/www/ispcp/...')
#5 {main}



sys_command_rs() | Ending...
getCmdExitValue() | Starting...
getCmdExitValue() | [DEBUG] External command exited with value 1
getCmdExitValue() | Ending...
exit_msg() | Starting...
exit_msg() | Ending...

Merkwürdig ist nur diese Zeile:
Quote:[ERROR]: Error: Unable to establish connection to the database! SQL returned: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

Da ich zuvor ein anderen User als ISPCPdatenbankusernamen gesetzt habe. In der ISPCP war dieser auch mit den richtigen hasch drinenn. Während des Upgrades wird die ISPCP verändert und wieder mit root als user gefüllt. Im Password Feld ist kein hasch zu sehen.

Die ISPCP.conf wird also neu geschrieben.

P.s. auch das ändern des Passwortes des Root Usernamens ändert nichts.


RE: Update Problem - tomhb - 02-09-2011 04:03 AM

(02-09-2011 02:24 AM)maxi Wrote:  Merkwürdig ist nur diese Zeile: [ERROR]: Error: Unable to establish connection to the database! SQL returned: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

Probier mal auf der shell folgendes:

$ mysql -u root -h localhost -p
<dann das Passwort eingeben>

Erfolgreich?



Gruss Tom



RE: Update Problem - maxi - 02-09-2011 04:31 AM

(02-09-2011 04:03 AM)tomhb Wrote:  
(02-09-2011 02:24 AM)maxi Wrote:  Merkwürdig ist nur diese Zeile: [ERROR]: Error: Unable to establish connection to the database! SQL returned: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

Probier mal auf der shell folgendes:

$ mysql -u root -h localhost -p
<dann das Passwort eingeben>

Erfolgreich?



Gruss Tom

jub ich komm rein


RE: Update Problem - maxi - 02-10-2011 05:33 AM

Hallo ich bisn nochmal,

ich habe mir jetzt mal Gedanken gemacht und habe für mich zumindest die vernünftigste Lösung gefunden. Wäre es sinnvoll alle Webseiten zu sichern und diese auf einen externen Speicher zu speichern. Den Server neu aufzusetzen und danach die Backups(nur reine Webseiten/virtual Ordner) wieder einzuführen und alle configs neu zu schreiben?

ALso praktisch ein Serverwechsel? Und gibt es schon ein How-TO dazu?

Was meinst ihr dazu?

mfg
Max


RE: Update Problem - fluser - 02-10-2011 04:03 PM

Hallo Maxi

Ist sicherlich nicht die dümmste IdeeWink Irgendwo im Forum gibt es ein Howto. Bin leider noch nicht dazu gekommen, es ins Wiki hinein zu packen.

MlG Fluser


RE: Update Problem - tomhb - 02-10-2011 04:21 PM

Hallo Max,

(02-10-2011 05:33 AM)maxi Wrote:  ich habe mir jetzt mal Gedanken gemacht und habe für mich zumindest die vernünftigste Lösung gefunden. Wäre es sinnvoll alle Webseiten zu sichern und diese auf einen externen Speicher zu speichern. Den Server neu aufzusetzen und danach die Backups(nur reine Webseiten/virtual Ordner) wieder einzuführen und alle configs neu zu schreiben?

ALso praktisch ein Serverwechsel? Und gibt es schon ein How-TO dazu?

Was willste jetzt hoeren/lesen?
Hier geht es um *ispCP* und nicht "wie administriere ich einen Server".
Setz dann halt das Betriebssystem Deiner Wahl auf, zieh dann ispCP-Package
und lies Dir die INSTALL durch. Kann hier nur fuer Debian GNU sprechen, aber
da ist es doch nicht so schwer.
Selbst ein Huhn kann Debian GNU installieren (immer nur auf Enter picken).
Danach die Schritte aus dem INSTALL von ispCP, fertig.

Oder Du gehst halt dem Fehler auf den Grund, warum da oben "using password: NO" stand. Bevor Du das alles sowieso platt machst, kannst Du ja auch dem mysql-root das Passwort entziehen und das Ganze noch einmal probieren. Nicht das ich dies fuer eine gute Idee hielte, aber wenns doch eh plattgehen wuerden, kann man doch durchaus noch ein bisserl rumspielen (und Erfahrungen sammeln).


Gruss Tom



RE: Update Problem - ZooL - 02-11-2011 03:02 AM

(02-09-2011 02:24 AM)maxi Wrote:  Merkwürdig ist nur diese Zeile:
Quote:[ERROR]: Error: Unable to establish connection to the database! SQL returned: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

Da ich zuvor ein anderen User als ISPCPdatenbankusernamen gesetzt habe. In der ISPCP war dieser auch mit den richtigen hasch drinenn. Während des Upgrades wird die ISPCP verändert und wieder mit root als user gefüllt. Im Password Feld ist kein hasch zu sehen.

Die ISPCP.conf wird also neu geschrieben.

P.s. auch das ändern des Passwortes des Root Usernamens ändert nichts.

die lösung:

deine 2te datei woraus die neue beim upgrade greneriert wird war nicht korrekt deswegen wurde die 1.te nach dem upgrade falsch geschrieben und wärend des upgrades war kein zugang zur datenbank möglich....


mfg


RE: Update Problem - maxi - 02-13-2011 09:42 AM

(02-11-2011 03:02 AM)ZooL Wrote:  
(02-09-2011 02:24 AM)maxi Wrote:  Merkwürdig ist nur diese Zeile:
Quote:[ERROR]: Error: Unable to establish connection to the database! SQL returned: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

Da ich zuvor ein anderen User als ISPCPdatenbankusernamen gesetzt habe. In der ISPCP war dieser auch mit den richtigen hasch drinenn. Während des Upgrades wird die ISPCP verändert und wieder mit root als user gefüllt. Im Password Feld ist kein hasch zu sehen.

Die ISPCP.conf wird also neu geschrieben.

P.s. auch das ändern des Passwortes des Root Usernamens ändert nichts.

die lösung:

deine 2te datei woraus die neue beim upgrade greneriert wird war nicht korrekt deswegen wurde die 1.te nach dem upgrade falsch geschrieben und wärend des upgrades war kein zugang zur datenbank möglich....


mfg

Danke ZooL, ich habe die Datei gefunden im TMP Ornder und habe sie angepasst. Danach konnte ich auch endlich den Installer aufrufen. Jedoch kam folgende Meldung:

Quote:Your ispCP configuration file has missing parameters! The Update ......
NOTICE The setting 'PORT_POSTGRAY' can't be handle by the recovery proccess!

Please, set it manualy in your /etc/ispcp/ispcp.old.confand re-run this script.

The programm will end now!

FATAL An Error occured during update process!
....
Screen liegt bei.

Auch das manuelle einsetzen von
Quote:#
# Postgrey data
#

PORT_POSTGREY = 60000
in der /etc/ispcp/ispcp.conf,/tmp/ispcp/etc/ispcp.conf hat leider nichts gebracht. Nachdem Abbruch des Scriptes steht ist der /etc/ispcp/ispcp.conf:

Quote:# Postgrey data
#

PORT_POSTGREY =

Postgray ist drauf und läuft über den Port 60000. Ich kann es stoppen, aber auch starten.

Vielen Dank bis jetzt euch allen. Bin wohl eher der komplizierten fälle?


mfg
Maxi


RE: Update Problem - maxi - 02-15-2011 10:13 PM

Hat jemand eine Lösung?

Warum wird die Variable immer wieder leer gesetzt? Nachdem ich die Installer aufrufe?