2.2.16 ~ 2.2.17 Upgrage Fails on FC3 Box

Discussion in 'Installation/Configuration' started by Hawker, Oct 12, 2007.

  1. Hawker

    Hawker New Member

    I appologize that this is going to be vague, but all upgrades have gone without a problem until now.

    When upgrading from 2.2.16 to 2.2.17 the upgrade failed when it attempted to do something with the spamassassin directory (directory did not exist) and then failed with the dreaded "The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!" error. Which makes sense since I think PHP installs after spamassassin.

    Sorry this is so vague but when that happened I paniced without writing down the details and rolled back to 2.2.16 since this is a production server.
     
    Last edited: Oct 12, 2007
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I dont remember to have seen a problem caused by a missing spamassassin directory yet, so I'am not able to help you without the error output from the update.
     
  3. Hawker

    Hawker New Member

    I just tried again...the error that starts it all is "Could not compile PHP".

    Then all of the directory not found errors start.

    Unusual since an update with 2.2.16 runs without a hitch.

    I did notice an incorrect identification take place during the system checks. It went by quickly but it said I686 when it should have been I386. I don't know if that helps or not.

    Also, the backup of ispconfig in /tmp does not contain the full install. It only contains a partial of openssl and a partial of isp. So, I had to create /root/ispconfig to use 2.2.16 as an update and then manually create the server ssl certificates.

    Since I don't use the GUI on my servers it's impossible to scroll back to see the errors before "Could not compile PHP", will ./setup > setup.log redirect the screen output to a log file? That way I can give more detailed information.
     
    Last edited: Oct 13, 2007
  4. falko

    falko Super Moderator ISPConfig Developer

    Yes, that's right.
     
  5. Hawker

    Hawker New Member

    Well it didn't work as expected. The errors wrote to screen and the errors before the failed PHP compile scrolled off screen.

    I'm out of ideas here.

    I have a 1.2 meg log of the installation but except for the "Could not compile PHP" error, no errors are included in it.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    If you use putty to connect to your server with SSH, you can scroll a few screen length above and in all cases I had to find a error, it was within the 2-3 screen length that you can scroll back.
     
  7. Hawker

    Hawker New Member

    For security reasons SSH is disabled on our servers. I changed the terminal resolution to 1280x1024 and that allowed me to see the errors...

    Code:
    Configure: Warning: you will need re2c 0.12.0 or later if you want to regenerate PHP parsers
    
    cp: cannot stat 'f ipcanister.o' : no such file or directory
    cp: cannot stat 'f ipcanister.o.sha1' : no such file or directory
    
    ext/mysql/.libs/php_mysql.o(.text+0x2f1): In function 'zm_startup.mysql': /usr/src/install_ispconfig/compile_apps/php-5.2.4/ext/mysql/php_mysql.c:404: undefined reference to 'mysql_server_init'
    
    ext/mysql/.libs/php_mysql.o(.text+0x30b): In function 'zm_startup.mysql': /usr/src/install_ispconfig/compile_apps/php-5.2.4/ext/mysql/php_mysql.c:423: undefined reference to 'mysql_server_end'
    
    Collect2: ld returned 1 exit status
    
    make: ***[sapi/cli/php] Error 1
    
    cd: error retreiving current directory: getcwd: cannot access parent directories: no such file or directory
    
    mv: cannot stat 'binaries/aps.tar.gz' : no such file or directory
    mv: cannot stat 'binaries/spamassassin.tar.gz' : no such file or directory
    mv: cannot stat 'binaries/uudeview.tar.gz' : no such file or directory
    mv: cannot stat 'binaries/clamav.tar.gz' : no such file or directory
    mv: cannot stat 'binaries/cronolog' : no such file or directory
    mv: cannot stat 'binaries/cronosplit' : no such file or directory
    mv: cannot stat 'binaries/ispconfig_tcpserver' : no such file or directory
    mv: cannot stat 'binaries/zip' : no such file or directory
    mv: cannot stat 'binaries/unzip' : no such file or directory
    
    tar: error exit delayed from previous errors
    
    ./setup2: line 873: ispconfig_tmp/php/bin/php: no such file or directory
    
    I hope I typed all of those out correctly.

    I've been using ISPConfig since 2.2.10 and have updated without a problem through 2.2.16.

    2.2.17 is the first update that I've had a problem with. I'll give 2.2.18 a try tomorrow and see what happens.
     
    Last edited: Oct 15, 2007
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Which linux distribution do you use?
    What mysql version is installed on your server?
    Did you update mysql after you installed 2.2.16?
     
  9. Hawker

    Hawker New Member

    Fedora Core 3
    MySql - 3.23.58
    No updates of any kind except for ISPConfig.

    I keep thinking something changed with the compile between 2.2.16 and 2.2.17. 6 updates went without a problem, the 7th is being a pain. I still can't figure out why the backup isn't working either. The /tmp/root_ispconfig-xxx-xxx.tar.gz file is only 185 bytes whereas a full backup should be over 2mb.

    Disk space shouldn't a problem with 31gb available on / and 86mb available on /boot.

    NOTE: The problem persists if I try skipping 2.2.17 and install 2.2.18.

    Also I just checked and there was no backup created in /tmp when I ran the 2.2.18 install.
     
    Last edited: Oct 16, 2007
  10. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    df -h
    ? Is SELinux disabled?

    IS there a re2c package for Fedora 3? You can search for it like that:
    Code:
    yum search re2c
     
  11. Hawker

    Hawker New Member

    Code:
                Size   Used    Avail  Use%  Mounted On
    /dev/hde3   36g    2.6g    31g    8%    /
    /dev/hde1   99m    8.2m    86m    9%    /boot
    none        189m    0     189m    0%    /dev/shm
    
    SELinux is disabled.

    The is not an re2c package available for Fedora Core 3

    I did spot one more error in the compile of PHP...

    /usr/src/install_ispconfig/compile_aps/php-5.2.4/ext/mbstring/mbstring.c: 152: warning: initialization discards qualifiers from pointer target type

    The error repeats 7 more times with the 152 changing to 153 through 159.
     
    Last edited: Oct 17, 2007

Share This Page