dhcp sysv-rc upgrade bug?

2011-07-06 Thread Bonno Bloksma

Hi,

Can someone tell if this is a bug that should be filed or is it just something to be noted in the 
squeeze upgrade notes?


I also ran into other problems upgrading with dhcp when upgrading my Lenny system to Squeeze but 
after that was solved I had a little problem with the sysv-rc upgrade.
It seems I had some old packages including dhcp (probably form my Etch time) which was removed but 
not purged and which created a problem during upgrading. After purging those offending packages, 
including dhcp, the sysv-rc upgrade was no problem.


However, after then rebooting the system the isc-dhcp-server did not want to 
start because:
Jul  6 11:31:59 linrtm dhcpd: Can't open lease database /var/lib/dhcp/dhcpd.leases: No such file or 
directory --

Jul  6 11:31:59 linrtm dhcpd:   check for failed database rewrite attempt!
Jul  6 11:31:59 linrtm dhcpd: Please read the dhcpd.leases manual page if you
Jul  6 11:31:59 linrtm dhcpd: don't know what to do about this.

Maybe something went wrong with the rights on that directory after purging the old dhcp package, the 
/var/lib/dhcp directory DID exist and even had a old dhcpclient.leases file in it. The fastest way 
to resolve this for me was simply copy the current dhcpd.conf file to a save place and then:

# aptitude remove isc-dhcp-server
and
# aptitude install isc-dhcp-server
After that everything was back and once I copied the proper dhcpd.conf file in place and did a 
restart my dhcp server was up and running.


This should probably be covered somewhere in the upgrade instructions, maybe a special dhcp section 
as there were also other upgrade changes like the location of the dhcpd.conf file that were 
unexpected and undocumented.


If it is a bug in the purge process that needs to be reported... can someone tell me how to file 
that as the dhcp package is an old (Etch?) package and is no longer being maintained as far as I 
know.


Bonno Bloksma



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/23d4ce767c8c4f5f8ac766a839068...@staf.tio.nl



Re: dhcp sysv-rc upgrade bug?

2011-07-06 Thread Camaleón
On Wed, 06 Jul 2011 11:54:04 +0200, Bonno Bloksma wrote:

 Can someone tell if this is a bug that should be filed or is it just
 something to be noted in the squeeze upgrade notes?

(...)

As you finally got it solved by reinstalling the package, it could have 
been a problem with your specific setup :-?

 However, after then rebooting the system the isc-dhcp-server did not
 want to start because: 
 Jul  6 11:31:59 linrtm dhcpd: Can't open lease database 
 /var/lib/dhcp/dhcpd.leases: No such file or directory --
 Jul  6 11:31:59 linrtm dhcpd:   check for failed database rewrite attempt! 
 Jul  6 11:31:59 linrtm dhcpd: Please read the dhcpd.leases manual page if you 
 Jul  6 11:31:59 linrtm dhcpd: don't know what to do about this.
 
 Maybe something went wrong with the rights on that directory after
 purging the old dhcp package, the /var/lib/dhcp directory DID exist and
 even had a old dhcpclient.leases file in it. The fastest way to resolve
 this for me was simply copy the current dhcpd.conf file to a save place
 and then: # aptitude remove isc-dhcp-server
 and
 # aptitude install isc-dhcp-server
 After that everything was back and once I copied the proper dhcpd.conf
 file in place and did a restart my dhcp server was up and running.

(...)

Are you sure you had that file under /var/lib/dhcp/*? 

stt005:~# locate *.leases
/var/lib/dhcp3/dhclient.eth1.leases
/var/lib/dhcp3/dhclient.leases

I ask because in lenny it is located under /var/lib/dhcp3/* (note the 
3). There was a change for DHCP (both client and server) package 
between lenny and squeeze and some paths were changed in the transition.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2011.07.06.15.42...@gmail.com



Re: dhcp sysv-rc upgrade bug?

2011-07-06 Thread Bonno Bloksma

Hi,


Can someone tell if this is a bug that should be filed or is it just
something to be noted in the squeeze upgrade notes?



(...)



As you finally got it solved by reinstalling the package, it could have
been a problem with your specific setup :-?


Maybe, because this system started as Etch, then I did an install of the dhcp3 server because I 
needed a new function before the dhcp3-server became standard.



However, after then rebooting the system the isc-dhcp-server did not
want to start because:
Jul  6 11:31:59 linrtm dhcpd: Can't open lease database /var/lib/dhcp/dhcpd.leases: No such file 
or directory --

Jul  6 11:31:59 linrtm dhcpd:   check for failed database rewrite attempt!
Jul  6 11:31:59 linrtm dhcpd: Please read the dhcpd.leases manual page if you
Jul  6 11:31:59 linrtm dhcpd: don't know what to do about this.

Maybe something went wrong with the rights on that directory after
purging the old dhcp package, the /var/lib/dhcp directory DID exist and
even had a old dhcpclient.leases file in it. The fastest way to resolve
this for me was simply copy the current dhcpd.conf file to a save place
and then: # aptitude remove isc-dhcp-server
and
# aptitude install isc-dhcp-server
After that everything was back and once I copied the proper dhcpd.conf
file in place and did a restart my dhcp server was up and running.



(...)



Are you sure you had that file under /var/lib/dhcp/*?



stt005:~# locate *.leases
/var/lib/dhcp3/dhclient.eth1.leases
/var/lib/dhcp3/dhclient.leases


Yes, as that directory had been created during the setup when it was still an Etch system. Which is 
why think it was a problem with the directory permissions.

linrtm:/var/lib# ll dhcp
total 168K
-rw-r--r-- 1 root root   0 Jun 28 13:02 dhclient.leases
-rw-r--r-- 1 root root 79K Jul  6 18:26 dhcpd.leases
-rw-r--r-- 1 root root 80K Jul  6 18:18 dhcpd.leases~


I ask because in lenny it is located under /var/lib/dhcp3/* (note the
3). There was a change for DHCP (both client and server) package
between lenny and squeeze and some paths were changed in the transition.


Yes, there were changed back to what they were during Etch. The new files are indeed once again in 
/var/lib/dhcp/


Bonno



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/8f63d6751e7142df8e21ee66a0c3e...@staf.tio.nl



Re: dhcp sysv-rc upgrade bug?

2011-07-06 Thread Camaleón
On Wed, 06 Jul 2011 18:37:31 +0200, Bonno Bloksma wrote:

 Can someone tell if this is a bug that should be filed or is it just
 something to be noted in the squeeze upgrade notes?
 
 (...)
 
 As you finally got it solved by reinstalling the package, it could have
 been a problem with your specific setup :-?
 
 Maybe, because this system started as Etch, then I did an install of the
 dhcp3 server because I needed a new function before the dhcp3-server
 became standard.

Hum... curious is that the update to lenny did not move the lease files 
under /var/lib/dhcp3/ and kept the old path :-?
 
 Are you sure you had that file under /var/lib/dhcp/*?
 
 stt005:~# locate *.leases
 /var/lib/dhcp3/dhclient.eth1.leases
 /var/lib/dhcp3/dhclient.leases
 
 Yes, as that directory had been created during the setup when it was
 still an Etch system. Which is why think it was a problem with the
 directory permissions. 
 linrtm:/var/lib# ll dhcp
 total 168K
 -rw-r--r-- 1 root root   0 Jun 28 13:02 dhclient.leases 
 -rw-r--r-- 1 root root 79K Jul  6 18:26 dhcpd.leases 
 -rw-r--r-- 1 root root 80K Jul  6 18:18 dhcpd.leases~

(...)

I usually tend to agree in what computers have to say and indeed, if it 
didn't find the file -while it was there- it could be a permissions issue 
with the parent folder or that the format of the old .lease file was 
not of its liking... who knows. But given that you already have it up and 
running I wouldn't bother about it.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2011.07.06.18.46...@gmail.com