Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154714 - Network services not starting: "... is scheduled to start when ..."
Summary: Network services not starting: "... is scheduled to start when ..."
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-10 11:46 UTC by Markus Peloquin
Modified: 2006-11-16 16:38 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Peloquin 2006-11-10 11:46:08 UTC
I have this problem, and nobody seems to have a solution.  It's either that nobody figures it out or it just magically starts working again.  Nobody really knows what's wrong, so I can't fix it myself.

$ emerge --info
Portage 2.1.1-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r1 i686)
=================================================================
System uname: 2.6.18-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1.73GHz
Gentoo Base System version 1.12.6
Last Sync: Thu, 09 Nov 2006 22:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4, 2.5-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://prometheus.cs.wmich.edu/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ "
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acpi acpm aim alsa apache2 apm arts audiofile bash-completion berkdb bitmap-fonts blas bzip2 cdparanoia cdr cli cracklib crypt css cups dhcp divx4linux dlloader doc dri dts dv dvd dvdr dvdread eds elibc_glibc emacs emboss encode esd fame fbcon ffmpeg fftw flac font-server foomaticdb fortran ftp gcj gif ginac glut gmp gnutls gpm gs gstreamer gtk gtk2 hal howl hpn iconv icq ieee1394 imap imlib input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 isdnlog ithreads java javascript jce jpeg jpeg2k kde kerberos kernel_linux krb4 lapack ldap libcaca libedit libg++ libwww linguas_en lzo mad mikmod mime mmx mmx2 mng motif mp3 mpeg mplayer msn nas ncurses network nfs nls nntp nptl nsplugin ogg oggvorbis openal opengl oss pam pcmcia pcre pdf perl png posix pppd prelude python qt3 qt4 quicktime rar readline real reflection rtc samba sasl sdl seamonkey session sockets socks5 spell spl sse sse2 ssl subtitles svg svga sysvinc tcl tcltk tcpd tetex tga theora threads tiff tk truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v41 vcd video_cards_nvidia video_cards_vga vim-with-x vorbis wifi win32codecs wxwindows xine xinerama xinetd xml xorg xpm xprint xscreensaver xv xvid yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

$ rc-update show
           alsasound |      default                  
             apache2 |      default                  
            bootmisc | boot                          
             checkfs | boot                          
           checkroot | boot                          
               clock | boot                          
            coldplug | boot                          
         consolefont | boot                          
                dbus |      default                  
            ddclient |      default                  
                 dma |      default                  
             dovecot |      default                  
                 gpm |      default                  
                hald |      default                  
            hostname | boot                          
             keymaps | boot                          
               local |      default nonetwork        
          localmount | boot                          
       mDNSResponder |      default                  
             modules | boot                          
               mysql |      default                  
            net.eth0 |      default                  
            net.eth1 |      default                  
              net.lo | boot                          
            netmount |      default                  
                 nfs |      default                  
            nfsmount |      default                  
                ntpd |      default                  
              pcmcia |      default                  
           rmnologin | boot                          
               samba |      default                  
                sshd |      default                  
              svscan |      default                  
           syndaemon |      default                  
            sysklogd |      default                  
             urandom | boot                          
      vpnclient_init |      default                  
              vsftpd |      default                  
                 xdm |      default                  
              xinetd |      default

$ cat /etc/conf.d/net
config_eth0=( "dhcp" )
modules_eth1=( "wpa_supplicant" "dhcpcd" !"iwconfig")
config_eth1=( "dhcp" )
wpa_supplicant_eth1="-Dwext"
wpa_timeout_eth1=60

I don't know how to get my boot log, but suffice to say that that dovecot, netmount, sshd, and svscan (qmail) give the message "$i is scheduled to start when net.eth0 or net.eth1 has started".  net.eth0/1 do start eventually.  If I try to run them explicitly from the terminal I get the same message.  I remedied the situation by commenting out the "need net" line from the initscripts that refuse to start, but I know this is not the correct solution.  Also, these version numbers might be important:

gentoo-sources-2.6.18-r1
baselayout-1.12.6
ifplugd-0.28-r7
wpa_supplicant-0.5.4
ipw2200-firmware-3.0

Any help would be greatly appreciated.  Thanks.
Comment 1 Markus Peloquin 2006-11-10 11:49:42 UTC
One more thing is that this bug is similar to http://bugs.gentoo.org/show_bug.cgi?id=118801 .  That bug does not really have a solution, though.
Comment 2 Roy Marples (RETIRED) gentoo-dev 2006-11-10 12:37:01 UTC
Sounds like you need to set RC_STRICT_NET_CHECKING="lo" in /etc/conf.d/rc

Or if you're feeling brave, try baselayout-1.13.0_alpha
Comment 3 Markus Peloquin 2006-11-13 15:53:38 UTC
I tried the newest version of baselayout.  It didn't fix the problem, and so far it only made things difficult (it is masked afterall).  Also, and I don't want to spend too much time on this because I'm awfully busy, I don't think setting the services to start after net.lo will help.  I would assume (and I'm not certain) that some of them need to have a real IP address when they start.  For example, apache2 when starting without a real network cannot find the hostname so just uses 192.168.0.101.  But then again, I suppose it's less of a hack than editing the init scripts.
Comment 4 Roy Marples (RETIRED) gentoo-dev 2006-11-13 16:50:26 UTC
(In reply to comment #3)
> For example, apache2 when starting without a real network cannot find the
> hostname so just uses 192.168.0.101.  But then again, I suppose it's less of a
> hack than editing the init scripts.

OK, so you really are using stuff that binds to IP's defined by other scripts.
What you're seeing isn't a bug with baselayout. You've emerged netplugd/iplugd/wpa_supplicant/pppd to control the interface link. These services configure in the background which is why you're seeing the "scheduled to start" message.

Well, when the link does come up then those services will get started. This is correct behaviour.

You previously said
> I remedied the situation by commenting out the "need net" line from the
> initscripts that refuse to start, but I know this is not the correct solution.

Which is the same thing as setting RC_STRICT_NET_CHECKING="lo"

So what is the real error here? Is it that netplug/ifplugd/etc don't actually bring the link up? If so, what network card is it?
Comment 5 Markus Peloquin 2006-11-14 15:09:53 UTC
Just noticed something.  This is probably why I have to keep typing 'dhcpcd eth1' when I use wireless.

$ ps -ef | grep ifplugd
root      8159     1  0 15:53 ?        00:00:00 /usr/sbin/ifplugd --iface=eth0

So, it appears that ifplugd isn't starting on each interface.  I tried adding 'ifplugd' to modules_eth1 in /etc/conf.d/net to no avail.  No matter which network interface is loaded, ifplugd starts with net.eth0 but it never starts with net.eth1.  I'm not sure, but this might be the issue.

eth0 is like that one friend.  You know, the one you hate.  You have one piece of your pizza left, and he comes in and say, "oh thanks!"
Comment 6 Markus Peloquin 2006-11-16 16:38:59 UTC
A-ha!  I had in September switched from wireless-tools to wpa_supplicant because my school switched to WPA this year.  My computer worked fine for a while.  I recently found out that wpa_cli wrote to log, so I checked out syslog and found out that /etc/init.d/net.eth1 was failing to start because of an illegal module name 'mode'.  There was an offending line in /etc/conf.d/wireless:

config_EECS_WPA=( "mode managed" )
# 'EECS_WPA' is the ESSID at my school

Okay, so nothing's wrong with baselayout.  My network services start and everything now.  Sorry if I caused any grief.