Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
snvvOffline
Post subject: isc-dhcp-server upgrade problem  PostPosted: 19.06.2014, 21:20



Joined: 2010-09-13
Posts: 295

Status: Offline
Hello, in the last DU failed to upgrade.
However, I don’t face any connectivity problem yet.


      Quote:
Setting up isc-dhcp-server (4.3.0+dfsg-1) ...
[FAIL] Starting ISC DHCP server: dhcpd[....] check syslog for diagnostics. ... failed!
failed!
invoke-rc.d: initscript isc-dhcp-server, action "start" failed.
dpkg: error processing package isc-dhcp-server (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up console-data (2:1.12-5) ...
Looking for keymap to install:
NONE
Setting up r-cran-haplo.stats (1.6.8-1) ...
Errors were encountered while processing:
isc-dhcp-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: isc-dhcp-server upgrade problem  PostPosted: 19.06.2014, 22:11



Joined: 2010-08-25
Posts: 746

Status: Offline
Given that you explicitly mention "I don’t face any connectivity problem yet" (which kind of suggests that you might depend on dhcp client functionality, rather than a dhcpd), do you actually require "isc-dhcp-server" or would purging it solve the issue as well (of course, if isc-dhcp-server is broken, it needs to be fixed anyways)?
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: isc-dhcp-server upgrade problem  PostPosted: 20.06.2014, 00:50



Joined: 2010-08-25
Posts: 746

Status: Offline
Looking at it a bit further under a virtual machine, I'd assume the following:
- you have isc-dhcp-server installed, but don't actually use it and have never configured it.
- the isc-dhcp-server init script (which is used as fallback by systemd, in the absence of a dedicated systemd unit) now fails, as you haven't configured the dæmon properly.

If you had followed systemd's advice of:
      Code:
[…]
Generating /etc/default/isc-dhcp-server...
Job for isc-dhcp-server.service failed. See 'systemctl status isc-dhcp-server.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript isc-dhcp-server, action "start" failed
you would have noticed this error message (likely) confirming my suspicion above:
      Code:
# systemctl status isc-dhcp-server.service
isc-dhcp-server.service - LSB: DHCP server
   Loaded: loaded (/etc/init.d/isc-dhcp-server)
   Active: failed (Result: exit-code)
  Process: 2861 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, status=1/FAILURE)

aptosid dhcpd:
dhcpd: Not configured to listen on any interfaces!
dhcpd:
dhcpd: If you think you have received this message due to a bug rather
dhcpd: than a configuration issue please read the section on submitting
isc-dhcp-server: Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed!
isc-dhcp-server: failed!
systemd[1]: isc-dhcp-server.service: control process exited, code=exited status=1
systemd[1]: Failed to start LSB: DHCP server.
systemd[1]: Unit isc-dhcp-server.service entered failed state.


If that is your problem, you have basically three options:
- if you don't need isc-dhcp-server (apparently you don't) and have no intention to use it anytime soon, just purge it:
      Code:
# apt-get purge isc-dhcp-server

- if you don't need isc-dhcp-server right now, but want to keep it installed for future use:
      Code:
# update-rc.d isc-hdcp-server disable
# apt-get install -f

- if you actually want to use isc-dhcp-server right now, but can't get it to install:
      Code:
# edit /etc/default/isc-dhcp-server    ## configure it as needed
# apt-get install -f


Reporting a non-zero exit status from isc-dhcp-server's initscript upon installing/ upgrading it is probably an unfortunate choice by its maintainer and you might want to discuss this problem with him/ her in form of a bugreport against this package. Personally I'd consider having no interfaces to listen on a valid configuration signifying to the system not to do anything (don't start the dæmon, warn, but don't report an error to the init system), but this is certainly open to interpretation and discussion.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio