You are not logged in.

#1 2008-10-16 23:45:31

cmlr
Member
From: Rochester, NY, USA
Registered: 2007-04-18
Posts: 99

[Solved] netcfg: strange message

Can anyone tell me what this means?  When I use netcfg2 to connect the ethernet on my laptop, it does connect.  But before connecting, it prints this message

    eth0: write_lease: No such file or directory

Here is my network profile, which is essentially the same as one of the example files.

CONNECTION="ethernet"
DESCRIPTION="A very basic ethernet profile, using dhcp"
INTERFACE=eth0
IP="dhcp"
DHCP_TIMEOUT=30

################

Added 10/19/08:  Installing dhcpcd from testing solved the problem.

Last edited by cmlr (2008-10-19 21:51:07)

Offline

#2 2008-10-18 17:40:57

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: [Solved] netcfg: strange message

cmlr wrote:

eth0: write_lease: No such file or directory

it seems to be caused by dhcpcd. I'll look into it the next coming days.

[edit]
Is this a new install?

can you try this (as root):

touch /var/lib/dhcpcd/dhcpcd-eth0.lease

Last edited by pressh (2008-10-18 19:41:29)

Offline

#3 2008-10-18 20:37:07

Ahyuwhiye
Member
Registered: 2008-03-11
Posts: 7

Re: [Solved] netcfg: strange message

I am getting the same output while starting /etc/rc.d/network with 'eth0="dhcp"' in rc.conf. And yes this just happened after recently (new) installation, but it still works.


"Shiver me timbers."

Offline

#4 2008-10-18 20:40:54

cmlr
Member
From: Rochester, NY, USA
Registered: 2007-04-18
Posts: 99

Re: [Solved] netcfg: strange message

There is no directory /var/lib/dhcpcd.  Instead, I have /usr/lib/dhcpcd but no file dhcpcd-eth0.lease.  Then I ran

touch /usr/lib/dhcpcd/dhcpcd-eth0.lease

and restarted the computer.  Nothing changed, it connected, but with the same message.

pressh wrote:
cmlr wrote:

eth0: write_lease: No such file or directory

it seems to be caused by dhcpcd. I'll look into it the next coming days.

[edit]
Is this a new install?

can you try this (as root):

touch /var/lib/dhcpcd/dhcpcd-eth0.lease

Last edited by cmlr (2008-10-18 20:43:46)

Offline

#5 2008-10-19 08:32:22

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: [Solved] netcfg: strange message

cmlr wrote:

There is no directory /var/lib/dhcpcd.  Instead, I have /usr/lib/dhcpcd but no file dhcpcd-eth0.lease.  Then I ran

touch /usr/lib/dhcpcd/dhcpcd-eth0.lease

As I expect there is indeed no directory /var/lib/dhcpcd, which I expect to be causing the problem. I can test it myself when I'm home this evening, but I think you really need to at least run the touch command I gave you.
Ah well, I test it myself later today and report if it works if you don't have time before that.

Offline

#6 2008-10-19 09:36:04

atomic
Member
From: Srbija
Registered: 2008-08-20
Posts: 20
Website

Re: [Solved] netcfg: strange message

Same situation here. I had a fresh Arch install, but this time from ftp server. Before i used to do cd instalation and never had this message after starting network.  And it takes a little bit longer to activate network deamon now.
I have tried running this commmand

touch /var/lib/dhcpcd/dhcpcd-eth0.lease

as a root, and get "No such file or directory"

OK! Solved! Just have to create that dhcpcd directory in /var/lib and run that command. Thanks!

Last edited by atomic (2008-10-19 09:44:44)

Offline

#7 2008-10-19 12:45:33

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: [Solved] netcfg: strange message

yeah sorry, I wasn't sure if touch would create that directory.
The correct command should be

install -d /var/lib/dhcpcd

I'll update the package and make sure it creates an empty directory there.

Offline

#8 2008-10-19 20:37:12

cmlr
Member
From: Rochester, NY, USA
Registered: 2007-04-18
Posts: 99

Re: [Solved] netcfg: strange message

I installed dhcpcd from testing, and I no longer have problems.

Offline

Board footer

Powered by FluxBB