HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Dataloss during upgrade because of connection drop (http://www.howtoforge.com/forums/showthread.php?t=28561)

whimboo 9th November 2008 22:36

Dataloss during upgrade because of connection drop
 
Today I tried to upgrade to the newest version of ispconfig2 on my server and noticed a bad dataloss bug during the installation. So what happened?

While the installation (upgrade) was compiling my network connection was resetted. Means my session was lost and I had to reconnect to start the upgrade again. Surprisingly I was ask for all the information again, e.g. SSL certificates. Why that? Hasn't it been stored in the ispconfig? Normally yes but when the compile process was started the ispconfig folder under /root/ was deleted. So no way to gather the former config settings. Luckily I made a backup of this folder right before so I was able to restore the former installation of ispconfig and re-ran the compile process successfully.

To offer users a safe upgrade process the ispconfig folder shouldn't be removed at the beginning. Instead the replacement should happen when the compiler has finished. That also gives the possibility to have a running ispconfig system while the upgrade process is running.

Thanks!

till 10th November 2008 07:19

There is no dataloss bug, you just missed to recreate the folder /root/ispconfig again before running the setup a second time. The folder can not be removed at a later time, as the compiling takes place in that folder.

whimboo 20th November 2008 00:28

Till, so why I was re-ask for the cert data? Isn't the needed information located inside this folder? Copying back the backup of the ispconfig folder has been solved this issue for me. Why this folder isn't recreated automatically?

falko 20th November 2008 20:56

The folder is recreated in a later stage during the upgrade (and you lost your connection before that stage).

I recommend to use screen for upgrades: http://www.howtoforge.com/linux_screen


All times are GMT +2. The time now is 12:14.

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