* [gentoo-user] dhcpcd 2.0.0 - Boot process hangs
@ 2005-08-31 16:31 Christoph Daldrup
2005-08-31 16:44 ` Sergio Polini
2005-09-06 15:20 ` [gentoo-user] " Christoph Daldrup
0 siblings, 2 replies; 11+ messages in thread
From: Christoph Daldrup @ 2005-08-31 16:31 UTC (permalink / raw
To: gentoo-user
Hello Gentoo-Users,
I've recently done an "emerge -tuvD world" and dhcpcd was updated from
version dhcpcd-1.3.22_p4-r11 to version 2.0.0. The emerge went fine, no
error message, no note to update config-files, everything seemed to be fine.
But at the next reboot, I wasn't able to get an IP adress, and the boot
process hanged at that stage. The last thing shown looked like the MAC
adress, although I'm not sure on that.
The only thing I could do to get my working gentoo back was booting with
knoppix, chrooting and going back to the old version of dhcpcd.
Now everything works fine with the old version again, but I'd like to
know if that is a bug or if I've done something wrong.
TIA
Christoph
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] dhcpcd 2.0.0 - Boot process hangs
2005-08-31 16:31 [gentoo-user] dhcpcd 2.0.0 - Boot process hangs Christoph Daldrup
@ 2005-08-31 16:44 ` Sergio Polini
2005-08-31 17:02 ` Christoph Daldrup
2005-09-06 15:20 ` [gentoo-user] " Christoph Daldrup
1 sibling, 1 reply; 11+ messages in thread
From: Sergio Polini @ 2005-08-31 16:44 UTC (permalink / raw
To: gentoo-user
Christoph Daldrup:
> I've recently done an "emerge -tuvD world" and dhcpcd was updated
> from version dhcpcd-1.3.22_p4-r11 to version 2.0.0. The emerge went
> fine, no error message, no note to update config-files, everything
> seemed to be fine.
>
> But at the next reboot, I wasn't able to get an IP adress,
> [etc.]
I emerged -uvDN world on Sunday and dhcpcd 2.0.0 is masked.....
HTH
Sergio
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] dhcpcd 2.0.0 - Boot process hangs
2005-08-31 16:44 ` Sergio Polini
@ 2005-08-31 17:02 ` Christoph Daldrup
2005-09-01 7:41 ` Stefan Frank
0 siblings, 1 reply; 11+ messages in thread
From: Christoph Daldrup @ 2005-08-31 17:02 UTC (permalink / raw
To: gentoo-user
Am 31.08.2005 18:44 schrieb Sergio Polini:
> I emerged -uvDN world on Sunday and dhcpcd 2.0.0 is masked.....
According to <http://packages.gentoo.org/ebuilds/?dhcpcd-2.0.0> , it
isn't anymore, at least for amd64, x86 and sparc. ;)
On my local system, it ist masked through the package.mask file now.
Christoph
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] dhcpcd 2.0.0 - Boot process hangs
2005-08-31 17:02 ` Christoph Daldrup
@ 2005-09-01 7:41 ` Stefan Frank
2005-09-01 12:36 ` Christoph Daldrup
0 siblings, 1 reply; 11+ messages in thread
From: Stefan Frank @ 2005-09-01 7:41 UTC (permalink / raw
To: gentoo-user; +Cc: Christoph Daldrup
On Wednesday 31 August 2005 19.02, Christoph Daldrup wrote:
> Am 31.08.2005 18:44 schrieb Sergio Polini:
> > I emerged -uvDN world on Sunday and dhcpcd 2.0.0 is masked.....
>
> According to <http://packages.gentoo.org/ebuilds/?dhcpcd-2.0.0> , it
> isn't anymore, at least for amd64, x86 and sparc. ;)
>
> On my local system, it ist masked through the package.mask file now.
>
> Christoph
I just did a emerge -u dhcp and I was able to do /etc/init.d/net.eth0 restart
without problems. Try to clear the cache of dhcpcd under /var/lib/dhcpc (?)
and to start it again.
Maybe you should consider using sys-apps/ifplugd. It's quite useful - it
starts the net.ethX only if the cable is plugged in. If there is a problem,
you just could remove the plug and the net.ethX is not started. And you may
not use Knoppix to solve such problems, there are possibilities to append a
boot option in GRUB/LILO (there was just a thread about it) to boot into
single mode.
Hope this helps!
Stefan
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] dhcpcd 2.0.0 - Boot process hangs
2005-09-01 7:41 ` Stefan Frank
@ 2005-09-01 12:36 ` Christoph Daldrup
2005-09-03 12:23 ` Christoph Daldrup
0 siblings, 1 reply; 11+ messages in thread
From: Christoph Daldrup @ 2005-09-01 12:36 UTC (permalink / raw
To: gentoo-user
Am 01.09.2005 09:41 schrieb Stefan Frank:
> I just did a emerge -u dhcp and I was able to do /etc/init.d/net.eth0 restart
> without problems. Try to clear the cache of dhcpcd under /var/lib/dhcpc (?)
> and to start it again.
Thanks for that suggestion, I will try later.
> Maybe you should consider using sys-apps/ifplugd. It's quite useful - it
> starts the net.ethX only if the cable is plugged in. If there is a problem,
> you just could remove the plug and the net.ethX is not started.
I am using ifplugd, but when the cable is not connected, it tries to
start my wifi connection with dhcp...
> And you may not use Knoppix to solve such problems, there are
> possibilities to append a boot option in GRUB/LILO (there was just a
> thread about it) to boot into single mode.
Thanks for that hint, too. :)
Christoph
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] dhcpcd 2.0.0 - Boot process hangs
2005-09-01 12:36 ` Christoph Daldrup
@ 2005-09-03 12:23 ` Christoph Daldrup
2005-09-04 16:52 ` [gentoo-user] " Sven Köhler
0 siblings, 1 reply; 11+ messages in thread
From: Christoph Daldrup @ 2005-09-03 12:23 UTC (permalink / raw
To: gentoo-user
Am 01.09.2005 14:36 schrieb Christoph Daldrup:
> Am 01.09.2005 09:41 schrieb Stefan Frank:
>
>> I just did a emerge -u dhcp and I was able to do /etc/init.d/net.eth0 restart
>> without problems. Try to clear the cache of dhcpcd under /var/lib/dhcpc (?)
>> and to start it again.
>
> Thanks for that suggestion, I will try later.
OK, I tried again. I do get an IP, I can connect to the internet, but
the dhcpcd-process does not finish. In a working gentoo environment that
is not a big problem, but while booting, this is bad.
This is the output I get:
> * Bringing up eth1
> * dhcp
> * Running dhcpcd ...
> ClassID = "Linux 2.6.12-gentoo-r9 i686"
> ClientID = "61.7.1.00.0E.35.BC.F8.71"
> parseDhcpMsgRecv: 6 options received:
> i=1 len=4 option = 255.255.255.0
> i=3 len=4 option = 192.168.0.1
> i=6 len=4 option = 192.168.0.1
> i=51 len=4 option = 259200
> i=53 len=1 option = 2
> i=54 len=4 option = 192.168.0.1
> DhcpMsgRecv->yiaddr = 192.168.0.2
> DhcpMsgRecv->siaddr = 0.0.0.0
> DhcpMsgRecv->giaddr = 0.0.0.0
> DhcpMsgRecv->sname = ""
> ServerHardwareAddr = 00.09.5B.D8.68.18
> parseDhcpMsgRecv: 9 options received:
> i=1 len=4 option = 255.255.255.0
> i=3 len=4 option = 192.168.0.1
> i=6 len=4 option = 192.168.0.1
> i=28 len=4 option = 192.168.0.255
> i=51 len=4 option = 259200
> i=53 len=1 option = 5
> i=54 len=4 option = 192.168.0.1
> i=58 len=4 option = 0
> i=59 len=4 option = 0
> DhcpMsgRecv->yiaddr = 192.168.0.2
> DhcpMsgRecv->siaddr = 0.0.0.0
> DhcpMsgRecv->giaddr = 0.0.0.0
> DhcpMsgRecv->sname = ""
> ServerHardwareAddr = 00.09.5B.D8.68.18
Then the output stops, but I don't get a prompt. :(
What am I doing wrong?
Christoph
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Re: dhcpcd 2.0.0 - Boot process hangs
2005-09-03 12:23 ` Christoph Daldrup
@ 2005-09-04 16:52 ` Sven Köhler
2005-09-04 17:58 ` Christoph Daldrup
0 siblings, 1 reply; 11+ messages in thread
From: Sven Köhler @ 2005-09-04 16:52 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 393 bytes --]
> OK, I tried again. I do get an IP, I can connect to the internet, but
> the dhcpcd-process does not finish. In a working gentoo environment that
> is not a big problem, but while booting, this is bad.
The dhcpcd process must not finish. Imagine a DHCP-lease that is invalid
after 10 minutes. The dhcpcd must regularly (well, before the lease is
invalidated by the server) renew the lease.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 253 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: dhcpcd 2.0.0 - Boot process hangs
2005-09-04 16:52 ` [gentoo-user] " Sven Köhler
@ 2005-09-04 17:58 ` Christoph Daldrup
2005-09-05 2:12 ` Sven Köhler
0 siblings, 1 reply; 11+ messages in thread
From: Christoph Daldrup @ 2005-09-04 17:58 UTC (permalink / raw
To: gentoo-user
Am 04.09.2005 18:52 schrieb Sven Köhler:
>> OK, I tried again. I do get an IP, I can connect to the internet, but
>> the dhcpcd-process does not finish. In a working gentoo environment that
>> is not a big problem, but while booting, this is bad.
>
> The dhcpcd process must not finish. Imagine a DHCP-lease that is invalid
> after 10 minutes. The dhcpcd must regularly (well, before the lease is
> invalidated by the server) renew the lease.
But the boot process stops, and I can't work with my gentoo box. It does
not with the old version. So something is broken, maybe my configs,
maybe the ebuild.
Christoph
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Re: dhcpcd 2.0.0 - Boot process hangs
2005-09-04 17:58 ` Christoph Daldrup
@ 2005-09-05 2:12 ` Sven Köhler
0 siblings, 0 replies; 11+ messages in thread
From: Sven Köhler @ 2005-09-05 2:12 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 682 bytes --]
>>The dhcpcd process must not finish. Imagine a DHCP-lease that is invalid
>>after 10 minutes. The dhcpcd must regularly (well, before the lease is
>>invalidated by the server) renew the lease.
>
> But the boot process stops, and I can't work with my gentoo box. It does
> not with the old version. So something is broken, maybe my configs,
> maybe the ebuild.
Well, usually i'd say that the dhcpcd-process should daemonized itself
somehow, so that the boot-process continues.
I don't have any problems with the upgrade to dhcpcd, but i know of one
friend that has problems with his network-card. Getting a DHCP-address
taked about 20 seconds with that NIC and i don't know why.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 253 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] dhcpcd 2.0.0 - Boot process hangs
2005-08-31 16:31 [gentoo-user] dhcpcd 2.0.0 - Boot process hangs Christoph Daldrup
2005-08-31 16:44 ` Sergio Polini
@ 2005-09-06 15:20 ` Christoph Daldrup
2005-09-08 14:05 ` Stefan Frank
1 sibling, 1 reply; 11+ messages in thread
From: Christoph Daldrup @ 2005-09-06 15:20 UTC (permalink / raw
To: gentoo-user
Am 31.08.2005 18:31 schrieb Christoph Daldrup:
> I've recently done an "emerge -tuvD world" and dhcpcd was updated from
> version dhcpcd-1.3.22_p4-r11 to version 2.0.0. The emerge went fine, no
> error message, no note to update config-files, everything seemed to be fine.
>
> But at the next reboot, I wasn't able to get an IP adress, and the boot
> process hanged at that stage. The last thing shown looked like the MAC
> adress, although I'm not sure on that.
Finally, here is the solution to this problem:
Don't emerge dhcpcd with the 'debug' USE flag.
Thanks to the friendly helper at the gentoo web forum.
Christoph
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] dhcpcd 2.0.0 - Boot process hangs
2005-09-06 15:20 ` [gentoo-user] " Christoph Daldrup
@ 2005-09-08 14:05 ` Stefan Frank
0 siblings, 0 replies; 11+ messages in thread
From: Stefan Frank @ 2005-09-08 14:05 UTC (permalink / raw
To: gentoo-user
On Tuesday 06 September 2005 17.20, Christoph Daldrup wrote:
> Finally, here is the solution to this problem:
> Don't emerge dhcpcd with the 'debug' USE flag.
Well, this is actually the worst thing on Gentoo: in the end the origin of a
problem is always located in front of the computer :).
By the way, it's never a good idea to use debugging unless you really want to
debug something. Did you set the USE="debug" globally? I made the mistake to
restart my server with enabled debugging in OpenLDAP. The machine didn't get
further than to LDAP. It took me some time to connect a monitor and keyboard
to the machine and find the problem ;).
You never stop learning (with Linux) :).
Stefan
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-09-08 14:11 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-31 16:31 [gentoo-user] dhcpcd 2.0.0 - Boot process hangs Christoph Daldrup
2005-08-31 16:44 ` Sergio Polini
2005-08-31 17:02 ` Christoph Daldrup
2005-09-01 7:41 ` Stefan Frank
2005-09-01 12:36 ` Christoph Daldrup
2005-09-03 12:23 ` Christoph Daldrup
2005-09-04 16:52 ` [gentoo-user] " Sven Köhler
2005-09-04 17:58 ` Christoph Daldrup
2005-09-05 2:12 ` Sven Köhler
2005-09-06 15:20 ` [gentoo-user] " Christoph Daldrup
2005-09-08 14:05 ` Stefan Frank
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox