Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104415 - baselayout-1.12.0_pre7 cannot start net.lo
Summary: baselayout-1.12.0_pre7 cannot start net.lo
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
: 104460 104486 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-31 12:37 UTC by Sebastian Bergmann (RETIRED)
Modified: 2005-09-01 17:13 UTC (History)
8 users (show)

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


Attachments
fixes ifconfig net.lo error checking (ifconfig.patch,696 bytes, patch)
2005-08-31 22:40 UTC, Roy Marples (RETIRED)
Details | Diff
fixes kernel 2.6.13 + ifconfig lo issue (ifconfig.patch,583 bytes, patch)
2005-08-31 23:02 UTC, Roy Marples (RETIRED)
Details | Diff
fixed bring lo up too early (ifconfig.patch,1.46 KB, patch)
2005-08-31 23:41 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Bergmann (RETIRED) gentoo-dev 2005-08-31 12:37:49 UTC
After upgrading from baselayout-1.12.0_pre6 to baselayout-1.12.0_pre7 net.lo
shows errors during boot.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
 * Starting lo
 *   Bringing up lo
 *     127.0.0.1/8
SIOCSIFADDR: File exists
SIOCSIFFLAGS: Cannot assign requested address
SIOCSIFNETMASK: Cannot assign requested address
SIOCSIFBRDADDR: Cannot assign requested address
SIOCSIFFLAGS: Cannot assign requested address                             [ !! ]


Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.13-gentoo i686)
=================================================================
System uname: 2.6.13-gentoo i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.12.0_pre7
dev-lang/python:     2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium-m -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig cvs digest distlocks fixpackages sandbox sfperms
sign strict"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://trumpetti.atm.tut.fi/gentoo http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/src/gentoo-php-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 acpi alsa avi berkdb bitmap-fonts browserplugin cairo cdr crypt
cups curl divx4linux dvd dvdr dvdread emboss encode exif fame firefox foomaticdb
fortran gdbm gif glitz gnome gpm gstreamer hal imlib ipv6 java jpeg libg++
libwww lzo mad mikmod mjpeg mmx mng mono moznocompose moznoirc moznomail mp3
mpeg ncurses nls nomotif nptl nvidia ogg oggvorbis opengl oss pam pdflib perl
png ppds python quicktime readline spell sse sse2 ssl svg tcpd theora tiff
truetype truetype-fonts type1-fonts usb vorbis win32codecs wmf xml2 xv xvid zlib
linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2005-08-31 16:10:36 UTC
This bug is a ***BLOCKER***, because without lo, almost all Gnome applications
do not work. If someone only has a Gnome desktop, and lo is not up, their
machine will hang at some stage during Gnome initialization.
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-08-31 16:13:23 UTC
Could you test with stable gentoo-sources please? Currently 2.6.12-r9

Also, please add RC_VERBOSE="yes" to /etc/conf.d/rc and repost the actual results

Thanks
Comment 3 Tom Shaw 2005-08-31 16:43:33 UTC
Same problem here on a 2.6.12-ck6 kernel ~x86 system. 
Not going to try it on the amd64 since there's nothing 
to fall back to. Error message was the same as the reporter 
and other network services failed to start after very long 
delays. 
 
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2005-08-31 16:57:57 UTC
gentoo-sources-2.6.12-r9, baselayout-1.12.0_pre7, pentium-m and i915 based
laptop, ~x86.

RC_VERBOSE="yes" is last line of /etc/conf.d/rc
The boot screen reads

* Starting lo
*   Loading networking modules for lo
*     modules: ifconfig
*       ifconfig provided interface
*     Running preup function
*     Bringing up lo
*       127.0.0.1/8
SIOCSIFADDR: File exists
SIOCSIFFLAGS: Cannot assign requested address
SIOCSIFNETMASK: Cannot assign requested address
SIOCSIFBRDADDR: Cannot assign requested address
SIOCSIFFLAGS: Cannot assign requested address              [ !! ]

The comments about preup are because I have a preup() function (in
/etc/conf.d/net) so that I can skip dhcpcd on /etc/eth0 if the cable is not
plugged in.

preup() {
    case ${IFACE} in
    "eth0" )
        if ethtool ${IFACE} | grep -q 'Link detected: no'
        then
            ewarn "No link on ${IFACE}, aborting configuration"
            return 1
        fi
        return 0;;
    * )
        return 0;;
    esac
    return 0
}

This all worked wonderfully with baselayout-1.12.0_pre6
Comment 5 Matteo Azzali (RETIRED) gentoo-dev 2005-08-31 17:07:38 UTC
Dunno if this is the same bug, I just can't ping localhost (hostname and 
domainname are setted fine and it worked before upgrading to 1.12.0_pre7)
so I can't start KDE. (stopping at second icon of splash screen)
Comment 6 Matteo Azzali (RETIRED) gentoo-dev 2005-08-31 17:20:09 UTC
I can't ping myself either using lan address.... hum, my etc-update command
did not updated any file, should it have updated /etc/conf.d/net  ?
Comment 7 David Li 2005-08-31 19:05:22 UTC
I have the same exact same problem on x86 and gentoo-sources-2.6.12.
This is definatly a blocker since lo is very important to lots of stuff.
Comment 8 David Li 2005-08-31 19:06:27 UTC
I'm sorry, I meant 2.6.13 ...
Comment 9 Gabriel Devenyi 2005-08-31 19:17:37 UTC
Same problem here on 2.6.13-ck1, on amd64 
 
For those with problems, this is a temporary fix 
emerge iproute2 
and add 
modules=("iproute2") 
to /etc/conf.d/net 
Comment 10 Jose daLuz 2005-08-31 19:25:24 UTC
I have the same problem on 2.6.13-ck1, ~amd64.  If I log into a VT and restart
net.lo *twice*, the errors disappear after the second try and everything is back
to normal (including Gnome successfully starting up), until the next reboot when
the same errors recur.

emerge --info
Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.13-ck1 x86_64)
=================================================================
System uname: 2.6.13-ck1 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre7
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main /usr/local/gentopia"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib alsa avi bash-completion berkdb bitmap-fonts cdr crypt
cups curl dbus eds encode esd flac foomaticdb fortran gdbm gif gnome gpm
gstreamer gtk gtk2 hal howl imagemagick imlib ipv6 java jpeg kde libwww lzw
lzw-tiff mad maildir mikmod mono motif mozilla mp3 mpeg mysql ncurses nls nptl
ogg oggvorbis opengl pam pdflib perl pic png python qt quicktime readline ruby
sdl speex spell sqlite ssl tcltk tcpd tetex theora tiff truetype-fonts
type1-fonts usb userlocales vorbis xine xml xml2 xmms xpm xv zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 11 teidakankan 2005-08-31 22:28:51 UTC
(In reply to comment #9)
> Same problem here on 2.6.13-ck1, on amd64 
>  
> For those with problems, this is a temporary fix 
> emerge iproute2 
> and add 
> modules=("iproute2") 
> to /etc/conf.d/net 

This worked for me on gentoo-sources-2.6.13, x86 pentium3.
Comment 12 Octavio Ruiz (Ta^3) 2005-08-31 22:37:44 UTC
Seem's to be a kernel 2.6.13 related problem... no problems with
"<sys-kernel/gentoo-sources-2.6.13" (that's it gentoo-sources-2.6.12-r10)


Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.13-gentoo x86_64)
=================================================================
System uname: 2.6.13-gentoo x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre7
ccache version 2.4 [enabled]
dev-lang/python:     2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/splash /etc/terminfo
/etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache collision-protect distlocks keeptemp
multilib-strict noauto parallel-fetch sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="es"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 GAPING_SECURITY_HOLE X Xaw3d aac aim alsa avi bash-completion berkdb
bitmap-fonts bluetooth buttons bzip2 cdparanoia cdr crypt cups curl dga directfb
dvd dvdread emacs encode fam fbcon flac foomaticdb fortran gdbm gif gimpprint
gpgme gpm gstreamer gtk gtk2 hlapi icq imagemagick imap imlib ipv6 irc jabber
java javascript jpeg justify leim libcaca libwww lzw lzw-tiff mad mikmod mng
motif mozdevelop mozsvg mp3 mpeg mpi msn ncurses new-login nls nptl nvidia
offensive ogg oggvorbis opengl oss pam pcre pdflib perl png python quicktime
readline real rtc samba scanner sdl sms spell ssl svg symlink tcpd tetex tiff
truetype truetype-fonts type1-fonts unicode usb userlocales vorbis wmf xml2 xmms
xpm xprint xv xvid yahoo zlib linguas_es userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 13 Roy Marples (RETIRED) gentoo-dev 2005-08-31 22:40:28 UTC
Created attachment 67384 [details, diff]
fixes ifconfig net.lo error checking

To apply

patch -p0 < /path/to/patch

Please test and report back ASAP
Comment 14 Sebastian Bergmann (RETIRED) gentoo-dev 2005-08-31 22:47:07 UTC
The patch from comment #13 did not solve the issue for me.
Comment 15 Octavio Ruiz (Ta^3) 2005-08-31 22:55:06 UTC
Doesn't resolve the problem here either.

Behaviour:

avalancha ~ # /etc/init.d/net.lo start
 * Starting lo
 *   Loading networking modules for lo
 *     modules: ifconfig
 *       ifconfig provides interface
 *   Bringing up lo
 *     127.0.0.1/8                               [ ok ]
 *   Adding routes
 *     127.0.0.0/8 ...                           [ ok ]

avalancha ~ # /etc/init.d/net.lo stop
 * WARNING:  you are stopping a boot service.
 * Stopping lo
 *   Loading networking modules for lo
 *     modules: ifconfig
 *   Bringing down lo
 *     Shutting down lo ...                      [ ok ]

avalancha ~ # /etc/init.d/net.lo start
 * Starting lo
 *   Loading networking modules for lo
 *     modules: ifconfig
 *       ifconfig provides interface
 *   Bringing up lo
 *     127.0.0.1/8
SIOCSIFADDR: File exists
SIOCSIFFLAGS: Cannot assign requested address
SIOCSIFNETMASK: Cannot assign requested address
SIOCSIFBRDADDR: Cannot assign requested address
SIOCSIFFLAGS: Cannot assign requested address    [ !! ]

avalancha ~ # /etc/init.d/net.lo stop
 * ERROR:  "net.lo" has not yet been started.

avalancha ~ # /etc/init.d/net.lo start
 * Starting lo
 *   Loading networking modules for lo
 *     modules: ifconfig
 *       ifconfig provides interface
 *   Bringing up lo
 *     127.0.0.1/8                               [ ok ]
 *   Adding routes
 *     127.0.0.0/8 ...                           [ ok ]
Comment 16 Roy Marples (RETIRED) gentoo-dev 2005-08-31 23:02:10 UTC
Created attachment 67388 [details, diff]
fixes kernel 2.6.13 + ifconfig lo issue

I just replicated this using a 2.6.13 g.s kernel - any g.s kernel lower does
not have this issue. However, I see no harm in fixing it here as we have a
similar fix for iproute for 2.6.12 kernels!

New patch should work. Please test and report back.
Comment 17 Octavio Ruiz (Ta^3) 2005-08-31 23:08:15 UTC
Attachment 67388 [details, diff] doesn't work too, same behaviour. I'm on IRC (ta^3) if you want
more quickly feedback. :-)
Comment 18 Roy Marples (RETIRED) gentoo-dev 2005-08-31 23:41:11 UTC
Created attachment 67389 [details, diff]
fixed bring lo up too early

New patch, problem was not what I thought.

Please test and report back
Comment 19 Sebastian Bergmann (RETIRED) gentoo-dev 2005-08-31 23:59:03 UTC
The patch from comment #18 solves the issue for me.
Comment 20 Roy Marples (RETIRED) gentoo-dev 2005-08-31 23:59:17 UTC
Fixed in -r1
Comment 21 SpanKY gentoo-dev 2005-09-01 06:10:10 UTC
*** Bug 104460 has been marked as a duplicate of this bug. ***
Comment 22 David Li 2005-09-01 11:54:29 UTC
Someone please mark bug #104486 as a duplicate.
Comment 23 SpanKY gentoo-dev 2005-09-01 17:13:09 UTC
*** Bug 104486 has been marked as a duplicate of this bug. ***