Upgrade hell

Discussion in 'Installation/Configuration' started by jimflip, Apr 30, 2007.

  1. jimflip

    jimflip New Member

    Code:
    ./setup2: line 862:  7895 Segmentation fault      ispconfig_tmp/php/bin/php -n -q check.php
    All prerequisites are fulfilled.
    Here we go...
    
    ./setup2: line 1088:  7910 Segmentation fault      /root/ispconfig/php/php -q ./install.php
    Restarting some services...
    httpd not running, trying to start
    ./setup2: line 1117: [: ==: unary operator expected
    Shutting down ISPConfig system...
    /root/ispconfig/httpd/bin/apachectl stop: httpd (no pid file) not running
    ISPConfig system stopped!
    Starting ISPConfig system...
    fopen: No such file or directory
    ispconfig_httpd: could not open document config file /root/ispconfig/httpd/conf/httpd.conf
    /root/ispconfig/httpd/bin/apachectl startssl: httpd could not be started
    Could not open input file: /root/ispconfig/scripts/shell/firewall.php
    ISPConfig system is now up and running!
    Congratulations! Your ISPConfig system is now installed. If you had to install quota, please take the steps described in the installation manual. Otherwise your system is now available without reboot.
    
    basically i upgrade from debain sarge to debain etch, all went well except a problem when logging into ispconfig, a mysql connection problem, this was discussed elsewhere and it was recommended to upgrade ispconfig.

    So I have tried to upgrade from 2.2.10 to 2.2.12 and I get the above :(
    I have tried this several times and I am really frustrated.

    Any help would be much appreciated.
    Jim.
     
  2. matiasCU

    matiasCU Member

    I had a similar problem, when I installed for the first time the version 2.2.12, that seems to have problems when creating db. The first time, did not create the tables to me, nevertheless when I proved to reinstall it the problem was solved.
    I know that in your case its different because you are doing an upgrade, but my advice although I am new in this is that you prove to reintalar it.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    df -h

    From which directory did you install ISPConfig. Before you try to do the update again, run the command:

    mkdir /root/ispconfig

    or the installer can not find your old installation.
     
  4. jimflip

    jimflip New Member

    arggghh tried to do a new install and got
    Code:
    ./setup2: line 1088: 31900 Segmentation fault      /root/ispconfig/php/php -q ./install.php
    Restarting some services...
    httpd not running, trying to start
    Stopping Postfix Mail Transport Agent: postfix.
    Starting Postfix Mail Transport Agent: postfix.
    Stopping ftp server: proftpd.
    Starting ftp server: proftpd - setting default address to 127.0.0.1
    .
    Starting ISPConfig system...
    fopen: No such file or directory
    ispconfig_httpd: could not open document config file /root/ispconfig/httpd/conf/httpd.conf
    /root/ispconfig/httpd/bin/apachectl startssl: httpd could not be started
    Could not open input file: /root/ispconfig/scripts/shell/firewall.php
    ISPConfig system is now up and running!
    ...and it takes so long then crashes at the very end....really not very good!

    df -h output: I have plenty of disk space.

    Code:
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sdb4             9.2G  980M  7.8G  11% /
    tmpfs                 505M     0  505M   0% /lib/init/rw
    udev                   10M  176K  9.9M   2% /dev
    tmpfs                 505M     0  505M   0% /dev/shm
    /dev/sdb1              89M   18M   67M  21% /boot
    /dev/sdb7             9.5G  5.6G  3.5G  62% /storage
    /dev/sdb5             9.2G  263M  8.5G   3% /svn
    /dev/sdb6             3.7G  517M  3.0G  15% /var
    i installed from /usr/local/src

    i deleted the old ispconfig directories as there was no uninstall script.

    I had a headache getting ispconfig to install first time and now the same with upgrading, even though I follow the so called perfect guides :(
     
  5. jimflip

    jimflip New Member

    if you look at this old post of mine:
    same prob

    you'll see that i had this new error, before...I never found the solution, and decided to install sarge as that was then stable, but now etch is supposedly stable I have upgraded to that but have the same issue, I don't know if the iissue is with mysql or not.

    Can anyone help me debug this, as it takes so long to try one build, and then it deletes the source afterwards. My system is now knackered :(
     
  6. jimflip

    jimflip New Member

    DOH! wish i had seen that you do remote upgrading, would of paid for that and saved a headache...would you still do it in it's current state?
     
  7. jimflip

    jimflip New Member

    I don't code php, can anyone inform me how i can debug the php file that is causing me grief. Basically just want to find out where in the install.php file it is breaking.

    Thanks,
    Jim.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    I thought you where trying to do a update? You can not update ISPConfig on your server when you deelete these directories. If you dont have a backup of them, a update will not be possible.

    There is no bug in the PHP file.

    There is most likely a problem with your hardware, plese test your server hardware with e.g. memcheck if it runs stable under high load.
     
  9. jimflip

    jimflip New Member

    I'm now restoring a backup.

    I think it is very unlikely to be a hardware issue, this issue only seems to occur under certain software configurations, there is no evidence of hardware problems.

    I don't know if there is a bug in the install.php script but it is certainly crashing when being run, some debug information would be useful to see what it is attempting to do when it fails.

    Thanks,
    Jim.
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    The install.php script itself is not crashing. The PHP interpreter is crashing, a php script can not cause a segfault because it can not do any low level memory management.

    If you want to debug it, you can try to run it with a php debugger or debug it by adding some echo statements in the file that output the executed commands.

    But as the script has been run on thousands of installations properly, it is very likely not a problem with a script. More likely it is a problem on yours erver configuration or hardware.
     
  11. jimflip

    jimflip New Member

    It is most likely an issue with the server configuration, but the script is assuming and not checking the configuration, thus i need to know where the scripts assumption is incorrect :)
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Have a look at the scripts etup, setup2 and install.php.
     

Share This Page