Dataloss during upgrade because of connection drop

Discussion in 'Installation/Configuration' started by whimboo, Nov 9, 2008.

  1. whimboo

    whimboo New Member

    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.

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
  3. whimboo

    whimboo New Member

    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?
  4. falko

    falko Super Moderator ISPConfig Developer

    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:

Share This Page