PDA

View Full Version : problem with upgrade


badben
2nd March 2006, 01:51
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.

badben
2nd March 2006, 05:40
Digest::SHA1 was not installed.

This was causing the installer to stop.

badben
2nd March 2006, 05:46
./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.

till
2nd March 2006, 07:52
./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?

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

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.


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.

badben
2nd March 2006, 08:41
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.

how do i do this restore

till
2nd March 2006, 08:47
copy the two tar.gz files to the / directory, then unpack them with:

tar xfz name_of_the_tar.gz

badben
2nd March 2006, 09:34
Please check the compiler output before this line for errors and post them here.

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

falko
2nd March 2006, 09:53
Please post the output of ls -la /root/ispconfig and ls -la /home/admispconfig

badben
2nd March 2006, 09:56
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/

falko
2nd March 2006, 10:05
Ok, then try to do the update again. Untar the ISPConfig tar.gz again, go to install_ispconfig and run ./setup

badben
2nd March 2006, 11:15
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!

falko
2nd March 2006, 17:04
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.

badben
2nd March 2006, 17:39
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!

falko
2nd March 2006, 21:00
Where is this ispconfig_tmp/ directory (full path)?

badben
2nd March 2006, 21:06
/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?

badben
3rd March 2006, 11:52
While we are on this where should the emails be backked up?

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

till
3rd March 2006, 11:55
While we are on this where should the emails be backked up?

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

till
3rd March 2006, 11:57
/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?

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 ?

badben
3rd March 2006, 11:59
Yes I am logged in as root and there is loads of space left, about 3Gb

falko
3rd March 2006, 16:12
Please run rm -fr /root/install_ispconfig/ and try again.

badben
3rd March 2006, 19:04
did
rm -fr /root/install_ispconfig/
and
rm -fr /install_ispconfig

still got the same error.

any ideas

till
3rd March 2006, 19:55
Please check the complete compile output for errors, especially during PHP compilation.

The compilation stops because the php binary has not been build. The compile output you posted does not contain any errors, so the error must vahe been occured before.

falko
3rd March 2006, 23:49
Can you install ISPConfig 2.1.2 without problems?

badben
4th March 2006, 12:03
No.

I uninstalled and have started from scratch with version 2.1.2 and still no joy.
I used:
rm -fr /root/ispconfig
rm -fr /home/admispconfig

can i send you a file with all of the install output in (763Kb).

Sorry for all of the hassle but it did work perfectly before I tried to upgrade.

Ben

till
4th March 2006, 14:22
can i send you a file with all of the install output in (763Kb)..

Please make a .zip file of it and send it to me attached to a PM.