#1  
Old 17th December 2008, 13:16
peter.zagar peter.zagar is offline
Junior Member
 
Join Date: Jul 2008
Location: Slovenia
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Connection drop during upgrade

Hi, I would really appreciate any help on this.

Short story:

Had the ISPConfig server up an running on the remote location.
Centos 5.2 Perfect Install + ISPConfig 2.2.28
All users, domains everything ready.

Tried to upgrade to 2.2.29 over ssh.
During the compiling, the connection dropped.
I was unable to get back to that session.

Since I did not know of the internal workings of ISPConfig I followed the suggestion to delete the install_ispconfig folder and start the installation again.

This time the installer did not recognize the system as ISPConfig system and tried to start a fresh install.

As I searched the forum, I learned that the installer replaces /root/ispconfig folder. I have no backup of that folder. This folder is now missing.
The mail is working, the ISPConfig admin interface is not.

I have backups of:
/etc
/www

Should I try to undelete install_ispconfig folder that I removed?
Could I try to make a backup of mysql ispconfig_db database and reinstall (new install)?
Would that preserve users created?

Thanks for all the help!

Only now I have learned that I should use screen for the upgrade..
http://www.howtoforge.com/forums/showthread.php?t=28561

Regards, Peter
Reply With Quote
Sponsored Links
  #2  
Old 18th December 2008, 11:08
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 426
Thanks: 34
Thanked 26 Times in 21 Posts
Send a message via ICQ to radim_h
Default

First:
make backup of your ispconfig database
and /home/admispconfig + /root/ispconfig direcotries..
if anything goes wrong you can put the directories and database back and everything runs as before

against drop - use "screen" command which allows you connect back to your session when connection si dropped

Last edited by radim_h; 18th December 2008 at 13:52.
Reply With Quote
  #3  
Old 18th December 2008, 13:24
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,986
Thanks: 840
Thanked 5,647 Times in 4,457 Posts
Default

Just run the command:

mkdir /root/ispconfig

and then unpack the ispconfig tar.gz and run the setup script again. ISPConfig restores the content of the /root/ispconfig filer automatically during update.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 18th December 2008, 16:07
peter.zagar peter.zagar is offline
Junior Member
 
Join Date: Jul 2008
Location: Slovenia
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, the following folders are in place and intact and I also have backups:

/etc
/home/admispconfig
/home/ispconfigend
/var/lib/mysql
/var/www
+ mysqldump of db_ispconfig

The only folder missing from the failed upgrade is:

/root/ispconfig

This obviously caused the installer script to think that there is no previous ISPConfig installation on the system. So when I tried to upgrade, the installer wanted to do fresh install.

So, Till, if I make an empty directory /root/ispconfig and then rerun the installation, the installer will find existing ISPConfig installation with all the users, domains, etc.?

Thanks,

Peter

Last edited by peter.zagar; 18th December 2008 at 16:24.
Reply With Quote
  #5  
Old 19th December 2008, 18:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by peter.zagar View Post
So, Till, if I make an empty directory /root/ispconfig and then rerun the installation, the installer will find existing ISPConfig installation with all the users, domains, etc.?
Yes, that's right.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 19th December 2008, 18:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by peter.zagar View Post
During the compiling, the connection dropped.
I was unable to get back to that session.
BTW, to prevent this from happening again, you can use screen: http://www.howtoforge.com/linux_screen
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 22nd December 2008, 11:42
peter.zagar peter.zagar is offline
Junior Member
 
Join Date: Jul 2008
Location: Slovenia
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, I did what you advised (using screen) and the installer indeed found an existing ISPConfig installation.

I have however, at least one more problem.
ISPConfig panel does not start.

The browser says:
Code:
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)
The console output:
Code:
/etc/init.d/ispconfig_server start
Starting ISPConfig system...
/root/ispconfig/httpd/bin/apachectl startssl: httpd could not be started
ISPConfig system is now up and running!
Error log:
Code:
cat /root/ispconfig/httpd/logs/error_log
[Mon Dec 22 10:37:04 2008] [error] mod_ssl: Init: Unable to read server certificate from file /root/ispconfig/httpd/conf/ssl.crt/server.crt (OpenSSL library error follows)
[Mon Dec 22 10:37:04 2008] [error] OpenSSL: error:0D06B08E:asn1 encoding routines:ASN1_D2I_READ_BIO:not enough data
Should I try to recreate certificates like this?
http://www.howtoforge.com/forums/showthread.php?t=121
If yes, I noticed that there is a password to be entered:
Quote:
-passout pass:yourpassword
Do I have to set a new password here?
I do not remember having to enter any passwords for serverkey when doing fresh installation. Why now?
Is this the same option as in the ISPConfig Installation Manual, step 7 and 8?
I want to be able to restart the machine remotely.

Last edited by peter.zagar; 22nd December 2008 at 12:06.
Reply With Quote
  #8  
Old 23rd December 2008, 15:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by peter.zagar View Post
Should I try to recreate certificates like this?
http://www.howtoforge.com/forums/showthread.php?t=121
Yes.

Quote:
Originally Posted by peter.zagar View Post
If yes, I noticed that there is a password to be entered:

Do I have to set a new password here?
You can make up a password here.

Quote:
Originally Posted by peter.zagar View Post
Is this the same option as in the ISPConfig Installation Manual, step 7 and 8?
I want to be able to restart the machine remotely.
You will be able to reboot the machine remotely.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 29th January 2009, 16:36
peter.zagar peter.zagar is offline
Junior Member
 
Join Date: Jul 2008
Location: Slovenia
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
 
Thumbs up

Hello again!
Big thanks to everyone, especially falko, for helping me with this.

Your advice helped perfectly.
Since it was not so urgent, I waited a while, and only resolved this issue last week.
It just worked.

With best regards,

Peter

Keep it up!!!
Reply With Quote
Reply

Bookmarks

Tags
connection, drop, upgrade

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dataloss during upgrade because of connection drop whimboo Installation/Configuration 3 20th November 2008 21:56
Mail Question: installed smf forum on centos perfect server setup with ispconfig happz Installation/Configuration 7 22nd August 2008 14:15
Getting e-mail working hansoffate Installation/Configuration 29 13th August 2008 17:33
debian etch courier pop3 issue docean Installation/Configuration 6 20th March 2008 16:38
Perfect Xen 3.0 setup for Debian gurneyzap HOWTO-Related Questions 4 26th March 2006 12:30


All times are GMT +2. The time now is 06:30.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.