BTS

Issue890

Title grml-live: FAI softupdate problem
Priority bug Status resolved
Superseder Nosy List mika, suntong1
Assigned To mika Topics

Created on 2010-08-07.00:26:13 by suntong1, last changed 2011-06-13.03:11:07 by mru.

Files
File name Uploaded Type Edit Remove
var_log_fai_depen.tgz suntong1, 2010-08-07.00:26:12 application/x-gzip
var_log_fai_depen_fresh_installation.tgz suntong1, 2010-08-08.05:03:17 application/x-gzip
Messages
msg3846 (view) Author: mru Date: 2011-06-13.02:35:27
I'm closing this issue for now as there were many commits and updates to grml-
live since last August. If this issue is still present feel free to reopen it.
msg3320 (view) Author: suntong1 Date: 2010-08-08.14:19:40
Thanks!

On Sun, Aug 8, 2010 at 10:18 AM, Michael Prokop <bts@bts.grml.org> wrote:

> Ok, thanks for the details. I've to reproduce this problem but this
> will take some further time as I'm not available through the next
> few days. Will report back as soon as I had time for it.
msg3319 (view) Author: mika Date: 2010-08-08.14:18:15
* Tong Sun wrote in grml's BTS on 20100808 / 07:06:

> > Ok, done.
> > but problem remains.

> Here's execution log:
[...]

Ok, thanks for the details. I've to reproduce this problem but this
will take some further time as I'm not available through the next
few days. Will report back as soon as I had time for it.

regards,
-mika-
msg3316 (view) Author: suntong1 Date: 2010-08-08.05:06:49
On Sun, Aug 8, 2010 at 1:03 AM, Tong Sun <suntong@cpan.org> wrote:
> Ok, done.
> but problem remains.

Here's execution log:

$ grep -A7 'taken from FAI' /aufs/gl/m/hooks/updatebase.GRMLBASE
   ## taken from FAI's lib/updatebase:
   # some packages must access /proc even in chroot environment
   mount -t proc proc $FAI_ROOT/proc
   # some packages must access /sys even in chroot environment
   mount -t sysfs sysfs $FAI_ROOT/sys
. . .

% grml-live-git -a $ARCH -c $CLASSES -g $USE_NAME -v "`date -I`" -s $SUITE -u -n

grml-live-git [0.10.1]: check your configuration (or use -F to force execution):

  FAI classes:       DEPEN_2DESK,RELEASE,AMD64
  Local config:      /etc/grml/grml-live.local
  main directory:    /dev/shm/gl
  Chroot target:     /dev/shm/gl/grml_chroot
  Build target:      /dev/shm/gl/grml_cd
  ISO target:        /lfs/cache12/systems/distros
  Grml name:         depen64
  Release name:      depen_rocks
  Build date:        2010-08-08
  Grml version:      2010-08-08
  Debian suite:      testing
  Architecture:      amd64
  Boot method:       grub
  Template files:    /usr/share/grml-live/templates
  Skipping bootid feature.
  Logging to file:   /var/log/grml-live.log
  Executing UPDATE instead of fresh installation.
  Skipping creation of ISO file.

Is this ok for you? [y/N] y

 * Logging actions to logfile /var/log/grml-live.log
             -------------------------------------------------
                   Fully Automatic Installation  -  FAI

                   FAI 3.3.5, 05 Apr 2010   (c) 1999-2009
               Thomas Lange  <lange@informatik.uni-koeln.de>
             -------------------------------------------------
Hostname set to depen

Using configuration files from /etc/grml/fai
Calling task_confdir
FAI_FLAGS:
No monitor daemon defined.
FAI_CONFIG_SRC is set to file:///aufs/gl/m
Using local path /aufs/gl/m as config space.
Calling task_setup
FAI_FLAGS:
Calling task_defclass
List of all classes:  DEPEN_2DESK RELEASE AMD64
Calling task_defvar
++ FAI_ALLOW_UNSIGNED=1
++ CONSOLEFONT=
++ KEYMAP=us-latin1
++ UTC=yes
++ TIMEZONE=America/Toronto
++ ROOTPW=x
Calling task_action
FAI_ACTION: softupdate
Performing FAI system update. All data may be overwritten!
Calling task_softupdate
Calling task_mirror
Calling task_debconf
Calling task_updatebase
Loading APT key from debian-multimedia.asc OK
Calling task_instsoft
Installing software may take a while
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: Sub-process /usr/bin/dpkg returned an error code (1)
Exit code task_instsoft: 620
Calling task_configure
Sun Aug  8 00:59:43 EDT 2010
The softupdate took 13 seconds.
Calling task_savelog
End of /usr/sbin/fai
 * Rebuilding initramfs
update-initramfs: Generating /boot/initrd.img-2.6.33-grml64
cryptsetup: WARNING: could not determine root device from /etc/fstab
cat: /proc/cmdline: No such file or directory
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mkconf: MD subsystem is not loaded, thus I cannot scan for arrays.
W: mdadm: failed to auto-generate temporary mdadm.conf file.
W: mdadm: no configuration file available.                               [ ok ]
 * Error: there was a critical error during execution of stage 'fai dirinstall'
 * Note:  check out /var/log/fai/depen/last/ for details. [exit 3]       [ !! ]
msg3315 (view) Author: suntong1 Date: 2010-08-08.05:03:17
On Sat, Aug 7, 2010 at 5:18 PM, Michael Prokop <bts@bts.grml.org> wrote:
> Fresh installation of the live system and then run
> with "-u" afterwards again.

Ok, done.
but problem remains.

$ grep -E '/dev|/proc' /var/log/fai/depen/last/software.log
/var/lib/dpkg/info/uswsusp.config: line 21: /dev/stderr: No such file
or directory
Cannot find /proc/version - is /proc mounted?
. . .

Attached is fai log having 1 successful run and the latest failed log.
msg3314 (view) Author: mika Date: 2010-08-07.21:18:44
* Tong Sun wrote in grml's BTS on 20100807 / 22:32:

> > Please try dropping the -q option from the grml-live cmdline and if

> Dropped that,

>  grml-live-git -c $CLASSES -u -n

> but still get the same result.

Ok.

> > that doesn't fix the problem start of with a fresh installation.

> By "fresh installation" you mean a fresh installation of grml-live
> package, or fresh installation of the live system? If latter, how
> would I test the FAI softupdate feature?

Fresh installation of the live system and then run
with "-u" afterwards again.

regards,
-mika-
msg3313 (view) Author: suntong1 Date: 2010-08-07.20:32:08
On Sat, Aug 7, 2010 at 9:14 AM, Michael Prokop <bts@bts.grml.org> wrote:

>> FAI_CONFIG_SRC is set to file:///aufs/gl/m
>> Using local path /aufs/gl/m as config space.
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> That's what you want, right?

Yep, just what to stress that new patch are available from the fai config space.

> Please try dropping the -q option from the grml-live cmdline and if

Dropped that,

 grml-live-git -c $CLASSES -u -n

but still get the same result.

> that doesn't fix the problem start of with a fresh installation.

By "fresh installation" you mean a fresh installation of grml-live
package, or fresh installation of the live system? If latter, how
would I test the FAI softupdate feature?

Thanks
msg3312 (view) Author: mika Date: 2010-08-07.13:14:50
* Tong Sun wrote in grml's BTS on 20100807 / 05:54:

> I just tried it, seems that the problem might be further deeper in FAI:

> % grml-live-git -c $CLASSES -u -q -n

> grml-live-git [0.10.1]: check your configuration (or use -F to force execution):

[...]
> FAI_CONFIG_SRC is set to file:///aufs/gl/m
> Using local path /aufs/gl/m as config space.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

That's what you want, right?

> Installing software may take a while
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> Exit code task_instsoft: 620
[...]
>  * Error: there was a critical error during execution of stage 'fai dirinstall'
>  * Note:  check out /var/log/fai/depen/last/ for details. [exit 3]       [ !! ]

> $ grep -A7 'taken from FAI' /aufs/gl/m/hooks/updatebase.GRMLBASE
>    ## taken from FAI's lib/updatebase:
>    # some packages must access /proc even in chroot environment
>    mount -t proc proc $FAI_ROOT/proc
>    # some packages must access /sys even in chroot environment
>    mount -t sysfs sysfs $FAI_ROOT/sys
>    # if we are using udev, also mount it into $FAI_ROOT
>    [ -f /etc/init.d/udev ] && mount --bind /dev $FAI_ROOT/dev
>    mount -t devpts devpts $FAI_ROOT/dev/pts

> $ grep -E '/dev|/proc' /var/log/fai/depen/last/software.log
> Cannot find /proc/version - is /proc mounted?
> /var/lib/dpkg/info/uswsusp.config: line 21: /dev/stderr: No such file
> or directory
> Cannot find /proc/version - is /proc mounted?
> /var/lib/dpkg/info/uswsusp.config: line 21: /dev/stderr: No such file
> or directory
> /var/lib/dpkg/info/uswsusp.config: line 21: /dev/stderr: No such file
> or directory
> Cannot find /proc/version - is /proc mounted?
> /var/lib/dpkg/info/uswsusp.config: line 21: /dev/stderr: No such file
> or directory
> ERROR: chroot /dev/shm/gl/grml_chroot aptitude . . .

Please try dropping the -q option from the grml-live cmdline and if
that doesn't fix the problem start of with a fresh installation.

regards,
-mika-
msg3311 (view) Author: suntong1 Date: 2010-08-07.03:54:08
Thanks a thousand for your swift respond/fix, mika.

I just tried it, seems that the problem might be further deeper in FAI:

% grml-live-git -c $CLASSES -u -q -n

grml-live-git [0.10.1]: check your configuration (or use -F to force execution):

  FAI classes:       DEPEN_2DESK,RELEASE
  Local config:      /etc/grml/grml-live.local
  main directory:    /dev/shm/gl
  Chroot target:     /dev/shm/gl/grml_chroot
  Build target:      /dev/shm/gl/grml_cd
  ISO target:        /lfs/cache12/systems/distros
  Grml name:         grml
  Release name:      depen_rocks
  Build date:        2010-08-06
  Grml version:      0.0.1
  Debian suite:      sid
  Architecture:      amd64
  Boot method:       grub
  Template files:    /usr/share/grml-live/templates
  Skipping bootid feature.
  Logging to file:   /var/log/grml-live.log
  Executing UPDATE instead of fresh installation.
  Skipping creation of SQUASHFS file.
  Skipping creation of ISO file.

Is this ok for you? [y/N] y

 * Logging actions to logfile /var/log/grml-live.log
             -------------------------------------------------
                   Fully Automatic Installation  -  FAI

                   FAI 3.3.5, 05 Apr 2010   (c) 1999-2009
               Thomas Lange  <lange@informatik.uni-koeln.de>
             -------------------------------------------------
Hostname set to depen

Using configuration files from /etc/grml/fai
Calling task_confdir
FAI_FLAGS:
No monitor daemon defined.
FAI_CONFIG_SRC is set to file:///aufs/gl/m
Using local path /aufs/gl/m as config space.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Calling task_setup
FAI_FLAGS:
Calling task_defclass
List of all classes:  DEPEN_2DESK RELEASE
Calling task_defvar
++ FAI_ALLOW_UNSIGNED=1
++ CONSOLEFONT=
++ KEYMAP=us-latin1
++ UTC=yes
++ TIMEZONE=America/Toronto
++ ROOTPW=x
Calling task_action
FAI_ACTION: softupdate
Performing FAI system update. All data may be overwritten!
Calling task_softupdate
Calling task_mirror
Calling task_debconf
Calling task_updatebase
Loading APT key from debian-multimedia.asc OK
Calling task_instsoft
Installing software may take a while
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: Sub-process /usr/bin/dpkg returned an error code (1)
Exit code task_instsoft: 620
Calling task_configure
Fri Aug  6 23:26:06 EDT 2010
The softupdate took 81 seconds.
Calling task_savelog
End of /usr/sbin/fai
 * Rebuilding initramfs
update-initramfs: Generating /boot/initrd.img-2.6.33-grml64
cryptsetup: WARNING: could not determine root device from /etc/fstab
cat: /proc/cmdline: No such file or directory
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mkconf: MD subsystem is not loaded, thus I cannot scan for arrays.
W: mdadm: failed to auto-generate temporary mdadm.conf file.
W: mdadm: no configuration file available.                               [ ok ]
 * Error: there was a critical error during execution of stage 'fai dirinstall'
 * Note:  check out /var/log/fai/depen/last/ for details. [exit 3]       [ !! ]

$ grep -A7 'taken from FAI' /aufs/gl/m/hooks/updatebase.GRMLBASE
   ## taken from FAI's lib/updatebase:
   # some packages must access /proc even in chroot environment
   mount -t proc proc $FAI_ROOT/proc
   # some packages must access /sys even in chroot environment
   mount -t sysfs sysfs $FAI_ROOT/sys
   # if we are using udev, also mount it into $FAI_ROOT
   [ -f /etc/init.d/udev ] && mount --bind /dev $FAI_ROOT/dev
   mount -t devpts devpts $FAI_ROOT/dev/pts

$ grep -E '/dev|/proc' /var/log/fai/depen/last/software.log
Cannot find /proc/version - is /proc mounted?
/var/lib/dpkg/info/uswsusp.config: line 21: /dev/stderr: No such file
or directory
Cannot find /proc/version - is /proc mounted?
/var/lib/dpkg/info/uswsusp.config: line 21: /dev/stderr: No such file
or directory
/var/lib/dpkg/info/uswsusp.config: line 21: /dev/stderr: No such file
or directory
Cannot find /proc/version - is /proc mounted?
/var/lib/dpkg/info/uswsusp.config: line 21: /dev/stderr: No such file
or directory
ERROR: chroot /dev/shm/gl/grml_chroot aptitude . . .

thanks

On Fri, Aug 6, 2010 at 10:46 PM, Michael Prokop <bts@bts.grml.org> wrote:
>
> Michael Prokop added the comment:
>
> Fixed in git:
msg3310 (view) Author: mika Date: 2010-08-07.02:46:49
Fixed in git:

  http://git.grml.org/?p=grml-live.git;a=commit;h=47b72a3

Please let me know whether it works for you as well (uploading the new version 
will automatically close the bugreport then).

thanks && regards,
-mika-
msg3309 (view) Author: suntong1 Date: 2010-08-07.00:28:18
Forgot to include execution log:

% grml-live -c $CLASSES -u -q -n

grml-live [0.10.1]: check your configuration (or use -F to force execution):

  FAI classes:       DEPEN_2DESK,RELEASE
  Local config:      /etc/grml/grml-live.local
  main directory:    /dev/shm/gl
  Chroot target:     /dev/shm/gl/grml_chroot
  Build target:      /dev/shm/gl/grml_cd
  ISO target:        /lfs/cache12/systems/distros
  Grml name:         grml
  Release name:      depen_rocks
  Build date:        2010-08-06
  Grml version:      0.0.1
  Debian suite:      sid
  Architecture:      amd64
  Boot method:       grub
  Template files:    /usr/share/grml-live/templates
  Skipping bootid feature.
  Logging to file:   /var/log/grml-live.log
  Executing UPDATE instead of fresh installation.
  Skipping creation of SQUASHFS file.
  Skipping creation of ISO file.

Is this ok for you? [y/N] y

 * Logging actions to logfile /var/log/grml-live.log
             -------------------------------------------------
                   Fully Automatic Installation  -  FAI

                   FAI 3.3.5, 05 Apr 2010   (c) 1999-2009
               Thomas Lange  <lange@informatik.uni-koeln.de>
             -------------------------------------------------
Hostname set to depen

Using configuration files from /etc/grml/fai
Calling task_confdir
FAI_FLAGS:
No monitor daemon defined.
FAI_CONFIG_SRC is set to file:///aufs/gl/m
Using local path /aufs/gl/m as config space.
Calling task_setup
FAI_FLAGS:
Calling task_defclass
List of all classes:  DEPEN_2DESK RELEASE
Calling task_defvar
++ FAI_ALLOW_UNSIGNED=1
++ CONSOLEFONT=
++ KEYMAP=us-latin1
++ UTC=yes
++ TIMEZONE=America/Toronto
++ ROOTPW=x
Calling task_action
FAI_ACTION: softupdate
Performing FAI system update. All data may be overwritten!
Calling task_softupdate
Calling task_mirror
Calling task_debconf
Calling task_updatebase
Loading APT key from debian-multimedia.asc OK
Calling task_instsoft
Installing software may take a while
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: Sub-process /usr/bin/dpkg returned an error code (1)
Exit code task_instsoft: 620
Calling task_configure
Fri Aug  6 19:59:24 EDT 2010
The softupdate took 712 seconds.
Calling task_savelog
End of /usr/sbin/fai
 * Rebuilding initramfs
update-initramfs: Generating /boot/initrd.img-2.6.33-grml64
cryptsetup: WARNING: could not determine root device from /etc/fstab
cat: /proc/cmdline: No such file or directory
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mkconf: MD subsystem is not loaded, thus I cannot scan for arrays.
W: mdadm: failed to auto-generate temporary mdadm.conf file.
W: mdadm: no configuration file available.                               [ ok ]
 * Error: there was a critical error during execution of stage 'fai dirinstall'
 * Note:  check out /var/log/fai/depen/last/ for details. [exit 3]       [ !! ]



On Fri, Aug 6, 2010 at 8:26 PM, Tong Sun <bts@bts.grml.org> wrote:
>
> New submission from Tong Sun <suntong@cpan.org>:
>
> Hi,
>
> I'm trying to use the FAI softupdate feature via grml-live, but bumped
> into problem
msg3308 (view) Author: suntong1 Date: 2010-08-07.00:26:12
Hi,

I'm trying to use the FAI softupdate feature via grml-live, but bumped
into problem:

$ grep -E '/dev|/proc' /var/log/fai/depen/last/software.log | head -4
Cannot find /proc/version - is /proc mounted?
Cannot find /proc/version - is /proc mounted?
/tmp/uswsusp.config.38961: line 21: /dev/stderr: No such file or directory
/proc is empty (not mounted ?)

Are /proc, /dev etc mounted before calling FAI softupdate?

Attached is fai log having 1 successful run and the latest failed log.

I was trying to update
http://wiki.grml.org/doku.php?id=stacked_grml#note , note 4.

Please verify.
Thanks a lot.

tong
History
Date User Action Args
2011-06-13 03:11:07mrusetstatus: resolved
nosy: mika, suntong1
2011-06-13 03:10:46mrusetstatus: done-cbb -> (no value)
nosy: mika, suntong1
2011-06-13 02:35:28mrusetstatus: needs-progress -> done-cbb
nosy: mika, suntong1
messages: + msg3846
2011-05-09 20:15:04mikasetstatus: fixed-in-git -> needs-progress
nosy: mika, suntong1
2010-08-08 14:19:41suntong1setnosy: mika, suntong1
messages: + msg3320
2010-08-08 14:18:16mikasetnosy: mika, suntong1
messages: + msg3319
2010-08-08 05:06:51suntong1setnosy: mika, suntong1
messages: + msg3316
2010-08-08 05:03:18suntong1setfiles: + var_log_fai_depen_fresh_installation.tgz
nosy: mika, suntong1
messages: + msg3315
2010-08-07 21:18:45mikasetnosy: mika, suntong1
messages: + msg3314
2010-08-07 20:32:09suntong1setnosy: mika, suntong1
messages: + msg3313
2010-08-07 13:14:52mikasetnosy: mika, suntong1
messages: + msg3312
2010-08-07 03:54:10suntong1setnosy: mika, suntong1
messages: + msg3311
2010-08-07 02:46:50mikasetstatus: chatting -> fixed-in-git
nosy: mika, suntong1
messages: + msg3310
2010-08-07 02:00:44mikasetpriority: bug
assignedto: mika
nosy: + mika
2010-08-07 00:28:19suntong1setstatus: unread -> chatting
messages: + msg3309
2010-08-07 00:26:13suntong1create