problem with upgrade

Discussion in 'Installation/Configuration' started by badben, Mar 2, 2006.

  1. badben

    badben ISPConfig Developer ISPConfig Developer

    the install stoped with the following:

    > ERROR: Could not configure SpamAssassin
    > rm: cannot remove `/root/ispconfig_tmp/ispconfig/.nfs0191ff5300012ff8': Device or resource busy
    rm: cannot remove `install_ispconfig/.nfs01df81690001319b': Device or resource busy

    any idea what the problem is?

    P.s running an upgrade on mandrake 10.2 to version 2.2.0

    setup using perfect setup how to.
     
    Last edited: Mar 2, 2006
  2. badben

    badben ISPConfig Developer ISPConfig Developer

    Problem solved.

    Digest::SHA1 was not installed.

    This was causing the installer to stop.
     
  3. badben

    badben ISPConfig Developer ISPConfig Developer

    New problem

    ./setup2: line 777: ispconfig_tmp/php/bin/php: No such file or directory
    ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!

    Do you know what could be causing this problem?

    I have a problem this this is a live server (but I have backed up the sites and the mysql ispconfig)

    I tried to upgrade but this didn't work because of the spam assasin problem abpve, but when I tried again i thing it has tried to do a reinstall and now I am lost as to whether to remove isp and start again or just try to reinstall.

    Please help?

    Thanks in advance.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check the compiler output before this line for errors and post them here.


    The installer always makes a backup of the old ISPConfig installation (/root/ispconfig, /home/admispconfig and the mysql database) in your /tmp folder as tar.gz archives. You have to restore this backup before you run the installer again.
     
  5. badben

    badben ISPConfig Developer ISPConfig Developer

    how do i do this restore
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    copy the two tar.gz files to the / directory, then unpack them with:

    tar xfz name_of_the_tar.gz
     
  7. badben

    badben ISPConfig Developer ISPConfig Developer

    from tailor.h:141,
    from zip.h:62,
    from zipfile_.c:14:
    /usr/include/bits/string2.h:396:1: warning: this is the location of the previous definition
    rm -f zipfile_.c
    rm -f fileio_.c; ln -s fileio.c fileio_.c
    cc -c -O2 -I. -DUNIX -DASMV -DASM_CRC -DNO_STRCHR -DNO_STRRCHR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DUTIL fileio_.c
    In file included from zip.h:62,
    from fileio_.c:14:
    tailor.h:162:1: warning: "strchr" redefined
    In file included from /usr/include/string.h:417,
    from tailor.h:141,
    from zip.h:62,
    from fileio_.c:14:
    /usr/include/bits/string2.h:396:1: warning: this is the location of the previous definition
    rm -f fileio_.c
    rm -f util_.c; ln -s util.c util_.c
    cc -c -O2 -I. -DUNIX -DASMV -DASM_CRC -DNO_STRCHR -DNO_STRRCHR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DUTIL util_.c
    In file included from zip.h:62,
    from util_.c:14:
    tailor.h:162:1: warning: "strchr" redefined
    In file included from /usr/include/string.h:417,
    from tailor.h:141,
    from zip.h:62,
    from util_.c:14:
    /usr/include/bits/string2.h:396:1: warning: this is the location of the previous definition
    rm -f util_.c
    rm -f unix_.c; ln -s unix/unix.c unix_.c
    cc -c -O2 -I. -DUNIX -DASMV -DASM_CRC -DNO_STRCHR -DNO_STRRCHR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DUTIL unix_.c
    In file included from zip.h:62,
    from unix_.c:9:
    tailor.h:162:1: warning: "strchr" redefined
    In file included from /usr/include/string.h:417,
    from tailor.h:141,
    from zip.h:62,
    from unix_.c:9:
    /usr/include/bits/string2.h:396:1: warning: this is the location of the previous definition
    rm -f unix_.c
    cc -o zipnote -s zipnote.o zipfile_.o fileio_.o util_.o globals.o unix_.o
    fileio_.o(.text+0xfe): In function `tempname':
    : warning: the use of `mktemp' is dangerous, better use `mkstemp'
    cc -c -O2 -I. -DUNIX -DASMV -DASM_CRC -DNO_STRCHR -DNO_STRRCHR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H zipsplit.c
    In file included from zip.h:62,
    from zipsplit.c:17:
    tailor.h:162:1: warning: "strchr" redefined
    In file included from /usr/include/string.h:417,
    from tailor.h:141,
    from zip.h:62,
    from zipsplit.c:17:
    /usr/include/bits/string2.h:396:1: warning: this is the location of the previous definition
    cc -o zipsplit -s zipsplit.o zipfile_.o fileio_.o util_.o globals.o unix_.o
    fileio_.o(.text+0xfe): In function `tempname':
    : warning: the use of `mktemp' is dangerous, better use `mkstemp'
    cc -c -O2 -I. -DUNIX -DASMV -DASM_CRC -DNO_STRCHR -DNO_STRRCHR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H zipcloak.c
    In file included from zip.h:62,
    from zipcloak.c:20:
    tailor.h:162:1: warning: "strchr" redefined
    In file included from /usr/include/string.h:417,
    from tailor.h:141,
    from zip.h:62,
    from zipcloak.c:20:
    /usr/include/bits/string2.h:396:1: warning: this is the location of the previous definition
    rm -f crypt_.c; ln -s crypt.c crypt_.c
    cc -c -O2 -I. -DUNIX -DASMV -DASM_CRC -DNO_STRCHR -DNO_STRRCHR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DUTIL crypt_.c
    rm -f crypt_.c
    cc -o zipcloak -s zipcloak.o zipfile_.o fileio_.o util_.o globals.o unix_.o crctab.o crypt_.o ttyio.o
    fileio_.o(.text+0xfe): In function `tempname':
    : warning: the use of `mktemp' is dangerous, better use `mkstemp'
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/zip-2.3'
    cc -c -O -I. unzip.c
    cc -c -O -I. crc32.c
    cc -c -O -I. crctab.c
    cc -c -O -I. crypt.c
    cc -c -O -I. envargs.c
    cc -c -O -I. explode.c
    cc -c -O -I. extract.c
    cc -c -O -I. fileio.c
    cc -c -O -I. globals.c
    cc -c -O -I. inflate.c
    cc -c -O -I. list.c
    cc -c -O -I. match.c
    cc -c -O -I. process.c
    cc -c -O -I. ttyio.c
    cc -c -O -I. unreduce.c
    cc -c -O -I. unshrink.c
    cc -c -O -I. zipinfo.c
    cc -c -O -I. unix/unix.c
    cc -o unzip unzip.o crc32.o crctab.o crypt.o envargs.o explode.o extract.o fileio.o globals.o inflate.o list.o match.o process.o ttyio.o unreduce.o unshrink.o zipinfo.o unix.o -s
    cc -c -O -I. funzip.c
    ln crypt.c cryptf.c
    cc -c -O -I. -DFUNZIP cryptf.c
    rm -f cryptf.c
    ln globals.c globalsf.c
    cc -c -O -I. -DFUNZIP globalsf.c
    rm -f globalsf.c
    ln inflate.c inflatef.c
    cc -c -O -I. -DFUNZIP inflatef.c
    rm -f inflatef.c
    ln ttyio.c ttyiof.c
    cc -c -O -I. -DFUNZIP ttyiof.c
    rm -f ttyiof.c
    cc -o funzip funzip.o crc32.o cryptf.o globalsf.o inflatef.o ttyiof.o -s
    ln unzip.c unzipsfx.c
    cc -c -O -I. -DSFX unzipsfx.c
    rm -f unzipsfx.c
    ln crctab.c crctab_.c
    cc -c -O -I. -DSFX crctab_.c
    rm -f crctab_.c
    ln crypt.c crypt_.c
    cc -c -O -I. -DSFX crypt_.c
    rm -f crypt_.c
    ln extract.c extract_.c
    cc -c -O -I. -DSFX extract_.c
    rm -f extract_.c
    ln fileio.c fileio_.c
    cc -c -O -I. -DSFX fileio_.c
    rm -f fileio_.c
    ln globals.c globals_.c
    cc -c -O -I. -DSFX globals_.c
    rm -f globals_.c
    ln inflate.c inflate_.c
    cc -c -O -I. -DSFX inflate_.c
    rm -f inflate_.c
    ln match.c match_.c
    cc -c -O -I. -DSFX match_.c
    rm -f match_.c
    ln process.c process_.c
    cc -c -O -I. -DSFX process_.c
    rm -f process_.c
    ln ttyio.c ttyio_.c
    cc -c -O -I. -DSFX ttyio_.c
    rm -f ttyio_.c
    ln unix/unix.c unix_.c
    cc -c -O -I. -DSFX unix_.c
    rm -f unix_.c
    cc -o unzipsfx unzipsfx.o crc32.o crctab_.o crypt_.o extract_.o fileio_.o globals_.o inflate_.o match_.o process_.o ttyio_.o unix_.o -s


    p.s there are only three folders in /root/ispconfig/ being httpd, openssl and php and there is noting in /root/ispconfig_tmp or /root/tmp/

    The backups in /tmp/ are old ones I thnk named home_admispconfig_12_16_2005__21_24_10.tar.gz
    root_ispconfig_12_16_2005__21_24_10.tar.gz
     
    Last edited: Mar 2, 2006
  8. falko

    falko Super Moderator ISPConfig Developer

    Please post the output of
    Code:
    ls -la /root/ispconfig
    and
    Code:
    ls -la /home/admispconfig
     
  9. badben

    badben ISPConfig Developer ISPConfig Developer

    ls -la /root/ispconfig produces

    drwxr-xr-x 5 root root 4096 Mar 2 04:32 ./
    drwxr-x--- 8 root root 4096 Mar 2 03:41 ../
    drwxr-xr-x 12 root root 4096 Mar 2 03:59 httpd/
    drwxr-xr-x 6 root root 4096 Mar 2 03:44 openssl/
    drwxr-xr-x 6 root root 4096 Mar 2 04:33 php/

    and ls -la /home/admispconfig produces:

    total 24
    drwxr-xr-x 4 admispconfig admispconfig 4096 Nov 21 08:06 ./
    drwxr-xr-x 4 root root 4096 Nov 21 08:06 ../
    -rwxr-xr-x 1 admispconfig admispconfig 24 Dec 16 21:24 .forward*
    -rwxr-xr-x 1 admispconfig admispconfig 176 Dec 16 21:24 .procmailrc*
    drwxr-xr-x 8 admispconfig admispconfig 4096 Feb 27 08:00 ispconfig/
    drwxr-xr-x 2 admispconfig admispconfig 4096 Mar 2 08:53 mailstats/
     
  10. falko

    falko Super Moderator ISPConfig Developer

    Ok, then try to do the update again. Untar the ISPConfig tar.gz again, go to install_ispconfig and run
    Code:
    ./setup
     
  11. badben

    badben ISPConfig Developer ISPConfig Developer

    I get the sameproblem again but with slightly different output:

    creating config.h
    config.h is unchanged
    (cd uulib ; make)
    make[1]: Entering directory `/root/install_ispconfig/compile_aps/uudeview-0.5.20/uulib'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/uudeview-0.5.20/uulib'
    (cd unix ; make)
    make[1]: Entering directory `/root/install_ispconfig/compile_aps/uudeview-0.5.20/unix'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/uudeview-0.5.20/unix'
    (cd inews; make CC='gcc' CFLAGS='-g -O2 -I. -DHAVE_CONFIG_H' LIBS='-lm' )
    make[1]: Entering directory `/root/install_ispconfig/compile_aps/uudeview-0.5.20/inews'
    make[1]: `minews' is up to date.
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/uudeview-0.5.20/inews'
    (cd uulib ; make)
    make[1]: Entering directory `/root/install_ispconfig/compile_aps/uudeview-0.5.20/uulib'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/uudeview-0.5.20/uulib'
    (cd unix ; make)
    make[1]: Entering directory `/root/install_ispconfig/compile_aps/uudeview-0.5.20/unix'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/uudeview-0.5.20/unix'
    for d in uudeview uuenview ; do \
    ./install-sh -c unix/$d /home/admispconfig/ispconfig/tools/uudeview/bin/$d ; \
    done
    (cd inews; make CC='gcc' CFLAGS='-g -O2 -I. -DHAVE_CONFIG_H' LIBS='-lm' )
    make[1]: Entering directory `/root/install_ispconfig/compile_aps/uudeview-0.5.20/inews'
    make[1]: `minews' is up to date.
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/uudeview-0.5.20/inews'
    for d in minews ; do \
    ./install-sh -c inews/$d /home/admispconfig/ispconfig/tools/uudeview/bin/$d ; \
    done
    for d in uudeview.1 uuenview.1 ; do \
    ./install-sh -c -m 644 ./man/$d /home/admispconfig/ispconfig/tools/uudeview/man/man1/$d ; \
    done
    loading cache ./config.cache
    checking for a BSD compatible install... (cached) /usr/bin/install -c
    checking whether build environment is sane... yes
    checking whether make sets ${MAKE}... (cached) yes
    checking for working aclocal... found
    checking for working autoconf... found
    checking for working automake... found
    checking for working autoheader... found
    checking for working makeinfo... missing
    checking for gcc... (cached) gcc
    checking whether the C compiler (gcc ) works... yes
    checking whether the C compiler (gcc ) is a cross-compiler... no
    checking whether we are using GNU C... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for a BSD compatible install... /usr/bin/install -c
    checking whether ln -s works... (cached) yes
    checking for ranlib... (cached) ranlib
    checking for perl... (cached) /usr/bin/perl
    checking how to run the C preprocessor... (cached) gcc -E
    checking for ANSI C header files... (cached) yes
    checking whether stat file-mode macros are broken... (cached) no
    checking whether time.h and sys/time.h may both be included... (cached) yes
    checking whether struct tm is in sys/time.h or time.h... (cached) time.h
    checking for tm_zone in struct tm... (cached) yes
    checking for fcntl.h... (cached) yes
    checking for limits.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking for working const... (cached) yes
    checking for size_t... (cached) yes
    checking whether struct tm is in sys/time.h or time.h... (cached) time.h
    checking for strftime... (cached) yes
    checking for vprintf... (cached) yes
    checking for mkdir... (cached) yes
    checking for mktime... (cached) yes
    checking for putenv... (cached) yes
    checking for strptime... (cached) yes
    checking for localtime_r... (cached) yes
    creating ./config.status
    creating Makefile
    creating lib/Makefile
    creating src/Makefile
    creating doc/Makefile
    creating testsuite/Makefile
    creating src/cronosplit
    Making all in lib
    make[1]: Entering directory `/root/install_ispconfig/compile_aps/cronolog-1.6.2/lib'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/cronolog-1.6.2/lib'
    Making all in src
    make[1]: Entering directory `/root/install_ispconfig/compile_aps/cronolog-1.6.2/src'
    gcc -g -O2 -o cronolog cronolog.o cronoutils.o ../lib/libutil.a
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/cronolog-1.6.2/src'
    Making all in doc
    make[1]: Entering directory `/root/install_ispconfig/compile_aps/cronolog-1.6.2/doc'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/cronolog-1.6.2/doc'
    Making all in testsuite
    make[1]: Entering directory `/root/install_ispconfig/compile_aps/cronolog-1.6.2/testsuite'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/cronolog-1.6.2/testsuite'
    make[1]: Entering directory `/root/install_ispconfig/compile_aps/cronolog-1.6.2'
    make[1]: Nothing to be done for `all-am'.
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/cronolog-1.6.2'
    eval make -f unix/Makefile zips `cat flags`
    make[1]: Entering directory `/root/install_ispconfig/compile_aps/zip-2.3'
    cc -o zip -s zip.o zipfile.o zipup.o fileio.o util.o globals.o crypt.o ttyio.o unix.o crc32.o crctab.o deflate.o trees.o match.o crc_i386.o
    fileio.o(.text+0xc36): In function `tempname':
    : warning: the use of `mktemp' is dangerous, better use `mkstemp'
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/zip-2.3'
    cc -o unzip unzip.o crc32.o crctab.o crypt.o envargs.o explode.o extract.o fileio.o globals.o inflate.o list.o match.o process.o ttyio.o unreduce.o unshrink.o zipinfo.o unix.o -s
    ./setup2: line 777: ispconfig_tmp/php/bin/php: No such file or directory
    ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!
     
  12. falko

    falko Super Moderator ISPConfig Developer

    Before you tried again, did you delete the old install_ispconfig directory and untarred the ISPConfig tar.gz again? Because you cannot install twice from the same install_ispconfig directory.
     
  13. badben

    badben ISPConfig Developer ISPConfig Developer

    I have tried again and deletedthe old install_ispconfig directory and it still didn't work.

    same error:

    mv: cannot overwrite directory `ispconfig/tools/spamassassin/spamassassin'
    mv: cannot overwrite directory `ispconfig/tools/uudeview/uudeview'
    mv: cannot overwrite directory `ispconfig/tools/clamav/clamav'
    ./setup2: line 777: ispconfig_tmp/php/bin/php: No such file or directory
    ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!

    the only thing in ispconfig_tmp/ is an empty directory named ispconfig.

    help!
     
    Last edited: Mar 2, 2006
  14. falko

    falko Super Moderator ISPConfig Developer

    Where is this ispconfig_tmp/ directory (full path)?
     
  15. badben

    badben ISPConfig Developer ISPConfig Developer

    /root/install_ispconfig/

    I have just reinstalled from / and got the same problem.

    Is there any way to solve the problem without starting from scratch?
     
    Last edited: Mar 3, 2006
  16. badben

    badben ISPConfig Developer ISPConfig Developer

    While we are on this where should the emails be backked up?

    P.S. Thanks for all your help so far.
     
  17. till

    till Super Moderator Staff Member ISPConfig Developer

    Your emails are either in the Home directory of the users (Maildir) or in the directory var/spool/mail (Mbox).
     
  18. till

    till Super Moderator Staff Member ISPConfig Developer

    And you are logged in as root, no sudo?
    Is there enough space left in all your partitions, lets say min. 100 MB in /root ?
     
  19. badben

    badben ISPConfig Developer ISPConfig Developer

    Yes I am logged in as root and there is loads of space left, about 3Gb
     
  20. falko

    falko Super Moderator ISPConfig Developer

    Please run
    Code:
    rm -fr /root/install_ispconfig/
    and try again.
     

Share This Page