Update failed - only new installation now

Discussion in 'Installation/Configuration' started by poisen, Apr 15, 2009.

  1. poisen

    poisen New Member

    Hey everybody,

    I tried updating my server from ISPConfig 2.2.31 to the new version and my internet connection broke, so I logged back in via ssh and removed the install_ispconfig directory and started everything all over again, but now I am only getting the option in the beginning where it says that a new version of ispconfig is being installed and it is not an update anymore!

    I don't want anything being lossed or erased, what can I do to just start the update all over again?

    Thanks for your help.
     
  2. jnsc

    jnsc rotaredoM Moderator

    mkdir /root/ispconfig

    and launch setup again
     
  3. poisen

    poisen New Member

    after reading through the forums, I did figure out that I had to create a /root/ispconfig/ directory to get back to the update. Now, I did all that but ISPConfig isn't running anymore. Websites and Apache still work, but I can't get the ISPConfig Interface to work. Here is what it said after the update

    HTML:
    Connected successfully to db ispconfig
    Neustart einiger Dienste...
    which: no apachectl in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/libexec)
    which: no w3m in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/libexec)
    Shutting down mail service (Postfix)                                  done
    Starting mail service (Postfix)                                       done
    Shutting down mail service (Postfix)                                  done
    Starting mail service (Postfix)                                       done
    Shutting down ProFTPD Server:                                         done
    Starting ProFTPD Server:  - warning: handling possibly truncated configuration data at line 68 of '/etc/proftpd.conf'
                                                                          done
    Shutting down ProFTPD Server:  - setting default address to 127.0.0.1
                                                                          done
    Starting ProFTPD Server:  - warning: handling possibly truncated configuration data at line 68 of '/etc/proftpd.conf'
     - setting default address to 127.0.0.1
                                                                          done
    Shutting down ISPConfig system...
    /root/ispconfig/httpd/bin/apachectl stop: httpd (no pid file) not running
    ISPConfig system stopped!
    Starting ISPConfig system...
    /root/ispconfig/httpd/bin/apachectl startssl: httpd could not be started
    ISPConfig system is now up and running!
    Herzlichen Glueckwunsch! Ihr ISPConfig-System ist jetzt installiert. Falls Sie Quota nachinstalliert haben, fuehren Sie noch die in der Installationsanleitung beschriebenen Schritte durch. Ansonsten ist Ihr System jetzt ohne Reboot einsatzbereit.
    
    
    Even running /etc/init.d/ispconfig_server restart didn't work and it gives me pretty much the same error as above.

    HTML:
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    Shutting down ISPConfig system...
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    /root/ispconfig/httpd/bin/apachectl stop: httpd (no pid file) not running
    ISPConfig system stopped!
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    Starting ISPConfig system...
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    /root/ispconfig/httpd/bin/apachectl startssl: httpd could not be started
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    ISPConfig system is now up and running!
    
    Can anybody help? Thanks a lot.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Take a look at the /tmp directory, you should find a backup of the ispconfig files and a backup of the database as .sql file there from the first update attempt. You should restore the backups and sql dump as your system database was vanished as you run the setup script the second time withot recreating the /root/ispconfig directory and it can not be restored by running setup again.
     
  5. poisen

    poisen New Member

    Hello Till,

    I only have an update from this morning but not yesterday, and yesterday I did the update. Then I found another tar from 2009-04-04, where I updated to 2.2.31, but I don't know if I should be using this. What steps would I have to take exactly to get it to work again?

    I did find 3 files in my /tmp/ directory

    home_admispconfig_04_04_2009__10_31_54.tar.gz (/home/admispconfig/)
    root_ispconfig_04_04_2009__10_31_54.tar.gz (/root/ispconfig/)
    existing_db_04_04_2009__10_31_54.sql (/var/lib/mysql/ispconfig/)

    ...now as far as I understand I need to unpack the tar's and just copy them to the appropriate directory, what about the sql file? How do I manage to get rid of the current ispconfig database and replace it with the sql backup?

    After I have copied everything back, can I just start the update to the current ispconfig 2 version again?

    Thanks for your help.
     
    Last edited: Apr 15, 2009
  6. poisen

    poisen New Member

    Fan anybody tell me if I can copy the backup files and overwrite the existing or do I have to erase the /root/ispconfig and admispconfig folders first? How can I get the backup sql file back in the ispconfig database?

    I'd be thankful if anybody could help me out.

    Eddie
     
  7. falko

    falko Super Moderator Howtoforge Staff

    Both ways are ok.

    http://www.howtoforge.com/faq/6_4_en.html
     

Share This Page