Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132190 - GLI fails, unable to emerge grub-> EmergePackageError :FATAL: emerge: Could not emerge sys-boot/grub-0.96-r2
Summary: GLI fails, unable to emerge grub-> EmergePackageError :FATAL: emerge: Could n...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Installer (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Linux Installer
URL:
Whiteboard:
Keywords:
: 135459 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-03 18:27 UTC by Dan Delgado
Modified: 2006-06-04 00:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
install profile from tmp (installprofile.xml,4.44 KB, text/xml)
2006-05-03 18:28 UTC, Dan Delgado
Details
install log from var/log (installer.log.failed,5.34 KB, application/octet-stream)
2006-05-03 18:29 UTC, Dan Delgado
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Delgado 2006-05-03 18:27:23 UTC
Install log:

[code]
gentoo@livecd ~ $ cat /var/log/installer.log.failed
GLI: May 02 2006 21:40:58 - Setting root password.
GLI: May 02 2006 21:40:58 - Livecd root password set.
GLI: May 02 2006 21:41:05 - SSH Started.
GLI: May 02 2006 21:41:05 - Portmap started.
GLI: May 02 2006 21:41:05 - Completed pre_install steps
GLI: May 03 2006 02:12:50 - Partition table for /dev/hda is unchanged...skipping
GLI: May 03 2006 02:12:50 - partitioning: Processing /dev/hdb...
GLI: May 03 2006 02:12:50 - Partitioning: Second pass...
GLI: May 03 2006 02:12:50 - Partitioning: Third pass....creating partitions
GLI: May 03 2006 02:12:50 -   Drive has 120103200 sectors
GLI: May 03 2006 02:12:50 -   Partition 1 has 100MB
GLI: May 03 2006 02:12:50 -     Start sector calculated to be 0
GLI: May 03 2006 02:12:50 -     End sector calculated to be 204800
GLI: May 03 2006 02:12:50 -   Adding primary partition 1 from 0 to 204800
GLI: May 03 2006 02:12:51 -   Formatting partition 1 as ext2 with: mkfs.ext2  /dev/hdb1
GLI: May 03 2006 02:13:24 -   Partition 2 has 2022MB
GLI: May 03 2006 02:13:24 -     Start sector calculated to be 204801
GLI: May 03 2006 02:13:24 -     End sector calculated to be 4345857
GLI: May 03 2006 02:13:24 -   Adding primary partition 2 from 204801 to 4345857
GLI: May 03 2006 02:13:25 -   Formatting partition 2 as linux-swap with: mkswap  /dev/hdb2
GLI: May 03 2006 02:13:25 -   Partition 3 has 56522MB
GLI: May 03 2006 02:13:25 -     Start sector calculated to be 4345858
GLI: May 03 2006 02:13:25 -     End sector calculated to be 120102914
GLI: May 03 2006 02:13:25 -   Adding primary partition 3 from 4345858 to 120102914
GLI: May 03 2006 02:13:26 -   Formatting partition 3 as reiserfs with: mkfs.reiserfs -f  /dev/hdb3
GLI: May 03 2006 02:13:38 - Mounted mountpoint: /
GLI: May 03 2006 02:13:38 - Created mountpoint /boot
GLI: May 03 2006 02:13:38 - Mounted mountpoint: /boot
GLI: May 03 2006 02:13:39 - Fetching and unpacking tarball: file:///home/gentoo/stage3-i686-2006.0.tar.bz2
GLI: May 03 2006 02:15:47 - file:///home/gentoo/stage3-i686-2006.0.tar.bz2 was fetched and unpacked.
GLI: May 03 2006 02:15:49 - fstab configured.
GLI: May 03 2006 02:15:49 - Edited Config file /mnt/gentoo/etc/rc.conf
GLI: May 03 2006 02:15:49 - Edited Config file /mnt/gentoo/etc/conf.d/clock
GLI: May 03 2006 02:15:49 - Edited Config file /mnt/gentoo/etc/conf.d/keymaps
GLI: May 03 2006 02:15:49 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: May 03 2006 02:15:49 - Config files updated using etc-update.  make.conf/fstab/rc.conf restored.
GLI: May 03 2006 02:15:49 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: May 03 2006 02:15:49 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: May 03 2006 02:15:49 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: May 03 2006 02:15:49 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: May 03 2006 02:15:49 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: May 03 2006 02:15:49 - Make.conf configured
GLI: May 03 2006 02:15:50 - Chroot environment ready.
GLI: May 03 2006 02:23:48 - Portage tree sync'd
GLI: May 03 2006 02:23:50 - Root Password set on the new system.
GLI: May 03 2006 02:23:51 - Edited Config file /mnt/gentoo/etc/conf.d/clock
GLI: May 03 2006 02:23:51 - Timezone set.
GLI: May 03 2006 02:23:51 - Starting emerge_kernel
GLI: May 03 2006 02:52:47 - Kernel sources:gentoo-sources emerged and /usr/src/linux symlinked.
GLI: May 03 2006 02:52:47 -  -- MARK --
GLI: May 03 2006 02:52:47 - Starting build_kernel
GLI: May 03 2006 02:53:08 - Genkernel emerged.  Beginning kernel compile.
GLI: May 03 2006 03:25:26 - Coldplug emerged.  Now they should be added to the default runlevel.
GLI: May 03 2006 03:25:26 - Added coldplug to runlevel boot
GLI: May 03 2006 03:25:26 - Genkernel complete.
GLI: May 03 2006 03:26:35 - Added syslog-ng to runlevel default
GLI: May 03 2006 03:26:35 - Logging daemon installed: syslog-ng
GLI: May 03 2006 03:27:25 - Added vixie-cron to runlevel default
GLI: May 03 2006 03:27:25 - Cron daemon installed and configured: vixie-cron
GLI: May 03 2006 06:46:38 - FileSystemTool sys-fs/ntfsprogs was emerged successfully.
GLI: May 03 2006 06:47:22 - FileSystemTool sys-fs/reiserfsprogs was emerged successfully.
GLI: May 03 2006 06:47:23 - Edited Config file /mnt/gentoo/etc/conf.d/hostname
GLI: May 03 2006 06:47:23 - Edited Config file /mnt/gentoo/etc/conf.d/domainname
GLI: May 03 2006 06:47:23 - Added domainname to runlevel default
GLI: May 03 2006 06:47:23 - Edited Config file /mnt/gentoo/etc/hosts
GLI: May 03 2006 06:47:23 - Added net.eth0 to runlevel default
GLI: May 03 2006 06:47:23 - Edited Config file /mnt/gentoo/etc/conf.d/net
GLI: May 03 2006 06:47:51 - dhcpcd emerged.
GLI: May 03 2006 06:48:47 - Exception received during 'Configuring and installing bootloader': EmergePackageError :FATAL: emerge: Could not emerge sys-boot/grub-0.96-r2!
GLI: May 03 2006 06:48:47 - Traceback (most recent call last):
GLI: May 03 2006 06:48:47 - File "/opt/installer/GLIClientController.py", line 165, in run
    self._install_steps[self._install_step]['function']()
GLI: May 03 2006 06:48:47 - File "/opt/installer/templates/x86ArchitectureTemplate.py", line 39, in install_bootloader
    exitstatus = self._portage.emerge(bootloader_pkg)
GLI: May 03 2006 06:48:47 - File "/opt/installer/GLIPortage.py", line 222, in emerge
    raise GLIException("EmergePackageError", "fatal", "emerge", "Could not emerge " + pkg + "!")
GLI: May 03 2006 06:48:47 - GLIException: EmergePackageError :FATAL: emerge: Could not emerge sys-boot/grub-0.96-r2!
[/code]

[code]
gentoo@livecd ~ $ cat /tmp/installprofile.xml
<?xml version="1.0" ?>
<gli-profile>
        <kernel-build-method>
                genkernel
        </kernel-build-method>
        <cron-daemon>
                vixie-cron
        </cron-daemon>
        <domainname>
                steel-wind.com
        </domainname>
        <portage-snapshot>
                file:///mnt/cdrom/snapshots/portage-20060123.tar.bz2
        </portage-snapshot>
        <kernel-source>
                gentoo-sources
        </kernel-source>
        <install-pcmcia-cs>
                False
        </install-pcmcia-cs>
        <time-zone>
                America/New_York
        </time-zone>
        <install-distcc>
                False
        </install-distcc>
        <boot-device>
                /dev/hda
        </boot-device>
        <dynamic-stage3>
                False
        </dynamic-stage3>
        <kernel-bootsplash>
                True
        </kernel-bootsplash>
        <bootloader-mbr>
                True
        </bootloader-mbr>
        <hostname>
                loki
        </hostname>
        <bootloader-kernel-args/>
        <post-install-script-uri/>
        <nisdomainname/>
        <install-stage>
                3
        </install-stage>
        <ftp-proxy/>
        <rsync-proxy/>
        <stage-tarball>
                file:///home/gentoo/stage3-i686-2006.0.tar.bz2
        </stage-tarball>
        <bootloader>
                grub
        </bootloader>
        <root-pass-hash>
                $1$vAZEszK5$UrSu1CdZi7eC.KlppkmWR1
        </root-pass-hash>
        <http-proxy/>
        <mta/>
        <grp-install>
                False
        </grp-install>
        <logging-daemon>
                syslog-ng
        </logging-daemon>
        <kernel-config/>
        <portage-tree-sync>
                sync
        </portage-tree-sync>
        <kernel-initrd>
                True
        </kernel-initrd>
        <install-rp-pppoe>
                False
        </install-rp-pppoe>
        <install-packages>
                sshd xdm xorg-x11 kde xpdf gnupg netcat nmap chkrootkit samba mod_php postfix proftpd mysql apache traceroute slocate ufed vim rdesktop logrotate emacs ntp ethereal keychain xmms mozilla-firefox bittorrent xine-ui realplayer mplayer gimp
        </install-packages>
        <network-interfaces>
                <device ip="dhcp" options="">
                        eth0
                </device>
        </network-interfaces>
        <network-mounts/>
        <partitions>
                <device devnode="/dev/hda" disklabel="msdos">
                        <partition format="False" mb="7" minor="1.03125" mkfsopts="" mountopts="" mountpoint="" origminor="0" resized="False" type="free"/>
                        <partition format="False" mb="98154" minor="1" mkfsopts="" mountopts="" mountpoint="" origminor="1" resized="False" type="ntfs"/>
                </device>
                <device devnode="/dev/hdb" disklabel="msdos">
                        <partition format="True" mb="100" minor="1" mkfsopts="" mountopts="" mountpoint="/boot" origminor="0" resized="False" type="ext2"/>
                        <partition format="True" mb="2022" minor="2" mkfsopts="" mountopts="" mountpoint="" origminor="0" resized="False" type="linux-swap"/>
                        <partition format="True" mb="56522" minor="3" mkfsopts="" mountopts="defaults" mountpoint="/" origminor="0" resized="False" type="reiserfs"/>
                </device>
        </partitions>
        <services>
                alsasound,portmap,sshd,xdm,proftpd
        </services>
        <etc-files>
                <file name="rc.conf">
                        <entry name="DISPLAYMANAGER">
                                kdm
                        </entry>
                        <entry name="EDITOR">
                                /usr/bin/vim
                        </entry>
                </file>
                <file name="conf.d/clock">
                        <entry name="CLOCK">
                                local
                        </entry>
                </file>
                <file name="conf.d/keymaps">
                        <entry name="SET_WINDOWSKEYS">
                                Yes
                        </entry>
                </file>
                <file name="make.conf">
                        <entry name="MAKEOPTS"/>
                        <entry name="USE">
                                  3dnow 3dnowext X Xaw3d a52 aac acl acpi activefilter ada aim alsa apache apache2 apm arts asf audiofile avi bash-completion bcp berkdb bitmap-fonts bittorrent bjam bootsplash bzip2 c++ cdparanoia cdr checkpath clamav clamd cle266 cli cpudetection crypt css ctype cups cvs cvsgraph dba dhcp doc dv dvd dvdr dvdread eds elibc_glibc emboss encode enscript esd ethereal exif expat fam fastbuild fat flac foomaticdb force-cgi-redirect -fortran ftp gd gdbm gif gimp glibc-compat20 glut glx gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hou -i8x0 idn imlib ipod ipv6 jabber java jpeg junit kde kdeenablefinal kernel_linux lcms libg++ libwww mad memlimit mikmod mjpeg mmx mmxext mng mono motif mozilla moznomail mp3 mp4live mpeg mpeg2 mplayer mppe-mppc msn mssql mysql ncurses -netbeans nls nocardbus nptl ntfs nvidia oav odbc offensive ogg opengl oscar oss pam pascal pcre pdflib perl php png posix python qt quicktime rdesktop readline reiser4 reiserfs samba sblive scanner sdl session shared simplexml slang soap sockets sou -speex spell spl sql sse sse-filters sse2 ssl standalone stlport subp subtitles subversion swat tcltk tcpd theora thesaurus tiff tokenizer toolbar transcode truetype truetype-fonts type1-fonts udev unicode userland_GNU vcd -vidix vim-with-x vorbis win32codecs wma wxwindows x86 xanim xine xml xml2 xmms -xpm xsl xv xvid xvmc zip zlib
                        </entry>
                        <entry name="FEATURES"/>
                        <entry name="ACCEPT_KEYWORDS"/>
                        <entry name="CFLAGS">
                                -march=athlon-xp -O2 -pipe
                        </entry>
                </file>
        </etc-files>
</gli-profile>
[/code]
Comment 1 Dan Delgado 2006-05-03 18:28:56 UTC
Created attachment 86101 [details]
install profile from tmp
Comment 2 Dan Delgado 2006-05-03 18:29:45 UTC
Created attachment 86102 [details]
install log from var/log
Comment 3 Dan Delgado 2006-05-03 18:32:06 UTC
I'm sorry, this is my first bug report. All the text I thought I entered did not appear. Attached are the 2 files as requested in the error report.

Basically, the GLI was unsuccessful when I checked it after setting it up overnight.

The last info in the OUTPUT tab was:
...
--- /boot/
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3228, in ?
    mydepgraph.merge(pkglist)
  File "/usr/bin/emerge", line 1912, in merge
    retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug,tree="porttree")
  File "/usr/lib/portage/pym/portage.py", line 2771, in doebuild
    return merge(mysettings["CATEGORY"],mysettings["PF"],mysettings["D"],mysettings["BUILDDIR"]+"/build-info",myroot,mysettings,myebuild=mysettings["EBUILD"],mytree=tree)
  File "/usr/lib/portage/pym/portage.py", line 2946, in merge
    return mylink.merge(pkgloc,infloc,myroot,myebuild)
  File "/usr/lib/portage/pym/portage.py", line 6984, in merge
    return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup)
  File "/usr/lib/portage/pym/portage.py", line 6593, in treewalk
    if self.mergeme(srcroot,destroot,outfile,secondhand,"",cfgfiledict,mymtime):
  File "/usr/lib/portage/pym/portage.py", line 6849, in mergeme
    if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
  File "/usr/lib/portage/pym/portage.py", line 6841, in mergeme
    os.mkdir(mydest)
OSError: [Errno 5] Input/output error: '/boot/grub'
Exception received:
EmergePackageError :FATAL: emerge: Could not emerge sys-boot/grub-0.96-r2!
Please submit a bug report (after searching to make sure it's not a known issue and verifying you didn't do something stupid) with the contents of /var/log/install.log and /tmp/installprofile.xml and the version of the installer you used


The LOG tab:
...
--- /boot/
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3228, in ?
    mydepgraph.merge(pkglist)
  File "/usr/bin/emerge", line 1912, in merge
    retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug,tree="porttree")
  File "/usr/lib/portage/pym/portage.py", line 2771, in doebuild
    return merge(mysettings["CATEGORY"],mysettings["PF"],mysettings["D"],mysettings["BUILDDIR"]+"/build-info",myroot,mysettings,myebuild=mysettings["EBUILD"],mytree=tree)
  File "/usr/lib/portage/pym/portage.py", line 2946, in merge
    return mylink.merge(pkgloc,infloc,myroot,myebuild)
  File "/usr/lib/portage/pym/portage.py", line 6984, in merge
    return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup)
  File "/usr/lib/portage/pym/portage.py", line 6593, in treewalk
    if self.mergeme(srcroot,destroot,outfile,secondhand,"",cfgfiledict,mymtime):
  File "/usr/lib/portage/pym/portage.py", line 6849, in mergeme
    if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
  File "/usr/lib/portage/pym/portage.py", line 6841, in mergeme
    os.mkdir(mydest)
OSError: [Errno 5] Input/output error: '/boot/grub'
Exception received:
EmergePackageError :FATAL: emerge: Could not emerge sys-boot/grub-0.96-r2!
Please submit a bug report (after searching to make sure it's not a known issue and verifying you didn't do something stupid) with the contents of /var/log/install.log and /tmp/installprofile.xml and the version of the installer you used
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2006-05-03 19:39:54 UTC
This isn't really an installer program. It was portage that failed. However, it looks like it failed due to an I/O error, which is typically caused by a failing drive. You may want to run a badblocks scan on your drive before doing anything else. If you still have the LiveCD booted, check the output of `dmesg` for anything pointing to the problem.
Comment 5 Dan Delgado 2006-05-07 12:11:01 UTC
Badblock reported nothing after full check (hours)
GLI install fails at different points when tried a couple more times.
Manual install has not failed yet (other than a mysql incl needed for qt - seems this failed for others, workaround install mysql first if qt mysql use flag in use) - I now believe it was some sort of connectivity problem but one that occurs based on GLI settings detected?

Feel free to reclose this - just opened it so you would read the addendum. Will try the GLI again in future release, have another pc to do but will stick to manual ;)
Comment 6 Andrew Gaffney (RETIRED) gentoo-dev 2006-05-09 05:20:01 UTC
Re-closing
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-06-04 00:48:34 UTC
*** Bug 135459 has been marked as a duplicate of this bug. ***