Re: Installation hangs at "Preconfiguring packages .. Fetched..."
> > On Thu, 20 Jan 2005 13:47:45 +0100 (MET), "Heiko Zang" > <[EMAIL PROTECTED]> said: > > > I tried that but postconfigure of the php4 package asks if one wants > to run > > the apacheconfig script and so the installation hangs. > Please fill a bug against these packages. AFAIK packages must use > debconf if they want to ask questions. Ok. regards, Heiko
Re: Installation hangs at "Preconfiguring packages .. Fetched..."
> On Thu, 20 Jan 2005 13:47:45 +0100 (MET), "Heiko Zang" <[EMAIL > PROTECTED]> said: > I tried that but postconfigure of the php4 package asks if one wants to run > the apacheconfig script and so the installation hangs. Please fill a bug against these packages. AFAIK packages must use debconf if they want to ask questions. -- regards Thomas
Re: Installation hangs at "Preconfiguring packages .. Fetched..."
Hi! >> Tried that ($ROOTCMD apt-get install apache apache-common php4> >> /dev/null) but System hangs as well. >> > No, that's wrong. Try this one, do not redirect stdout, but stdin Ops, sure! > $ROOTCMD apt-get install apache apache-common php4 < /dev/null I tried that but postconfigure of the php4 package asks if one wants to run the apacheconfig script and so the installation hangs. Even adding a '--force-yes' or a '--assume-yes' option for apt-get had no effect. So unfortunately a pipe or a redirect of stdin don`t work. I think the main issue is why a parent process and a same child process are started if there is a command like: "yes | apt-get install ...". What could be the reason why a 2.6 kernel is causing the trouble? regards, Heiko Zang
Re: Installation hangs at "Preconfiguring packages .. Fetched..."
> On Wed, 19 Jan 2005 12:21:37 +0100 (MET), "Heiko Zang" <[EMAIL > PROTECTED]> said: >> redirecting stdin from Tried that ($ROOTCMD apt-get install apache apache-common php4> /dev/null) > but System hangs as well. No, that's wrong. Try this one, do not redirect stdout, but stdin $ROOTCMD apt-get install apache apache-common php4 < /dev/null --- -- regards Thomas
Re: Installation hangs at "Preconfiguring packages .. Fetched..."
> > On Tue, 18 Jan 2005 10:48:50 +0100 (MET), [EMAIL PROTECTED] said: > > > The installation starts und runs with no errors up to the point > where FAI > > starts my own script under the scripts directory. In this script a > 'apt-get > > update' is executed and a following 'apt-get install > \' > > retrieves the package but then stops with "Preconfiguring packages > .. > > Fetched 5515kB in 3s (1713kB/s)" >> Try to detect which package is going to be preconfigured. Use ps aux and >> this command: >> >> COLUMNS=300 pstree -l Did that and the relevant output is: -init---rcS-+-cat | |-rcS---fai-do-scripts---bash-+-apt-get---apt-get | | -tee |-yes --- As you can see I use the pipe. And that configuration works without probs when using fai with a 2.4 kernel version but not with 2.6. Thats the command in the file in the scripts directory: $ROOTCMD yes '' | $ROOTCMD apt-get install apache apache-common php4 > redirecting stdin from /dev/null) but System hangs as well. This is the output of pstree: |-init---rcS-+-cat | |-rcS---fai-do-scripts---bash---apt-get---dpkg---php4.postinst This is the output pf ps -f: init boot 169 tty1 S 0:00 \_ /bin/bash /etc/init.d/rcS 196 tty1 S 0:00 \_ cat /proc/kmsg 405 tty1 S 0:00 \_ /bin/bash /etc/init.d/rcS 2205 tty1 S 0:00 | \_ /bin/sh /usr/bin/fai-do-scripts /fai/scripts 2245 tty1 S 0:00 | \_ bash -x ./HE 2248 tty1 S 0:00 | \_ apt-get install apache apache-common php4 2476 tty1 S 0:00 | \_ /usr/bin/dpkg --abort-after=4711 --force-confnew --configure apache-common apache php4 php4-gd2 2719 tty1 S 0:00 | \_ /bin/sh /var/lib/dpkg/info/php4.postinst configure - Even when using 'apt-get --assume-yes install' or 'apt-get --force-yes' commands the installation hangs at php4.postinst. Any more hints are appreciated. regards, Heiko Zang
Re: Installation hangs at "Preconfiguring packages .. Fetched..."
> On Tue, 18 Jan 2005 10:48:50 +0100 (MET), [EMAIL PROTECTED] said: > The installation starts und runs with no errors up to the point where FAI > starts my own script under the scripts directory. In this script a 'apt-get > update' is executed and a following 'apt-get install \' > retrieves the package but then stops with "Preconfiguring packages .. > Fetched 5515kB in 3s (1713kB/s)" Try to detect which package is going to be preconfigured. Use ps aux and this command: COLUMNS=300 pstree -l Do you use the "yes ''|apt-get install"-pipe or without a pipe but redirecting stdin from
Installation hangs at "Preconfiguring packages .. Fetched..."
Hi! In our company we are using fai for quite a while to setup woody boxes. Now the fai installation configuration has to be adapted to new hardware. The hardware is Dell Poweredge750 with SATA Drives. On the FAI-Server is the fai-2.5.4 package installed. The kernel is a customized 2.6.7. The installation starts und runs with no errors up to the point where FAI starts my own script under the scripts directory. In this script a 'apt-get update' is executed and a following 'apt-get install \' retrieves the package but then stops with "Preconfiguring packages .. Fetched 5515kB in 3s (1713kB/s)" Also another apt-get process is started by the first one. Even when trying to kill the child-process both processes are killed. Using a 2.4.26 kernel works fine. So the symptoms are the same as described in this thread: http://www.mail-archive.com/linux-fai@rrz.uni-koeln.de/msg01735.html So I patched the create_ramdisk file with the suggested tweak. The create_ramdisk looks like this: - . . mount -t shm shm /tmp || mount -t tmpfs none /tmp || { ramdevice=/dev/ram0 mke2fs -q -m 0 $ramdevice && echo "ramdisk $ramdevice created" mount -n $ramdevice /tmp } . . - A ramdisk is being created: #: mount \on the client\ /dev/ram0 on /tmp type ext2 (rw) --- So I would say that the first two mount commands in the create_ramdisk file don`t work, but the third command does. Although the tmpfs is compiled in the kernel. CONFIG_TMPFS=y CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_SIZE=4096 CONFIG_RAMFS=y CONFIG_CRAMFS=y - I`m stuck now and donĀ“t have a clue how to fix the issue. Maybe some of you guys have any hints. regards, Heiko