Jump to content
Sign in to follow this  
zup

DHCP server service fails after apt update/upgrade

Recommended Posts

Hello there! Just got a bash bunny that worked fine when I got it. I decided to upgrade it using apt, and got a lot of issues. I fixed the problems I had with apt (fixed issues with procps), and now it seems to have some issues with DHCP when connecting to my computer using FNDIS_ETHERNET. If I connect the bunny and then set a static ip for it, I can ssh in as normal. Then I see that the service isc-dhcp-service has failed. If I try to start that service again, it seems like it works just fine. I get a dhcp lease from the computer and can GET TARGET_IP. So maby this is an issue with the usb0 interface not being ready when the dhcp server starts or something? I am not sure. It is pretty annoying that I have to set a static ip, log in with ssh, restart the service, set dynamic ip again just to get dhcp to work 😛 Have anyone else had any issues like this? I will provide you with more logs and stuff soon

Share this post


Link to post
Share on other sites
Jan 01 00:00:11 bunny networking[181]: Configuring network interfaces...Cannot find device "usb0"
Jan 01 00:00:11 bunny networking[181]: Failed to bring up usb0.
Jan 01 00:00:11 bunny networking[181]: done.
Jan 01 00:00:11 bunny systemd[1]: Starting /etc/rc.local Compatibility...
Jan 01 00:00:11 bunny systemd[1]: Started getty on tty2-tty6 if dbus and logind are not available.
Jan 01 00:00:11 bunny systemd[1]: Starting Permit User Sessions...
Jan 01 00:00:11 bunny systemd[247]: Failed at step EXEC spawning /etc/rc.local: Exec format error
Jan 01 00:00:12 bunny systemd[1]: Starting LSB: Start NTP daemon...
Jan 01 00:00:12 bunny systemd[1]: Starting LSB: DHCP server...
Jan 01 00:00:12 bunny systemd[1]: Starting Login Service...
Jan 01 00:00:12 bunny systemd[1]: Starting System Logging Service...
Jan 01 00:00:12 bunny dhcpd[394]: Internet Systems Consortium DHCP Server 4.3.1
Jan 01 00:00:12 bunny dhcpd[394]: Copyright 2004-2014 Internet Systems Consortium.
Jan 01 00:00:12 bunny dhcpd[394]: All rights reserved.
Jan 01 00:00:12 bunny dhcpd[394]: For info, please visit https://www.isc.org/software/dhcp/
Jan 01 00:00:12 bunny dhcpd[480]: Internet Systems Consortium DHCP Server 4.3.1
Jan 01 00:00:12 bunny dhcpd[480]: Copyright 2004-2014 Internet Systems Consortium.
Jan 01 00:00:12 bunny dhcpd[480]: All rights reserved.
Jan 01 00:00:12 bunny dhcpd[480]: For info, please visit https://www.isc.org/software/dhcp/
Jan 01 00:00:12 bunny dhcpd[480]: Wrote 0 leases to leases file.
Jan 01 00:00:12 bunny dhcpd[480]:
Jan 01 00:00:12 bunny dhcpd[480]: No subnet declaration for usb0 (no IPv4 addresses).
Jan 01 00:00:12 bunny dhcpd[480]: ** Ignoring requests on usb0.  If this is not what
Jan 01 00:00:12 bunny dhcpd[480]: you want, please write a subnet declaration
Jan 01 00:00:12 bunny dhcpd[480]: in your dhcpd.conf file for the network segment
Jan 01 00:00:12 bunny dhcpd[480]: to which interface usb0 is attached. **
Jan 01 00:00:12 bunny dhcpd[480]:
Jan 01 00:00:12 bunny dhcpd[480]:
Jan 01 00:00:12 bunny dhcpd[480]: Not configured to listen on any interfaces!
Jan 01 00:00:12 bunny dhcpd[480]:
Jan 01 00:00:12 bunny dhcpd[480]: If you think you have received this message due to a bug rather
Jan 01 00:00:12 bunny dhcpd[480]: than a configuration issue please read the section on submitting
Jan 01 00:00:12 bunny dhcpd[480]: bugs on either our web page at www.isc.org or in the README file
Jan 01 00:00:12 bunny dhcpd[480]: before submitting a bug.  These pages explain the proper
Jan 01 00:00:12 bunny dhcpd[480]: process and the information we find helpful for debugging..
Jan 01 00:00:12 bunny dhcpd[480]:
Jan 01 00:00:12 bunny dhcpd[480]: exiting.
Apr 07 03:03:04 bunny isc-dhcp-server[334]: Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed!
Apr 07 03:03:04 bunny isc-dhcp-server[334]: failed!
Apr 07 03:03:04 bunny systemd[1]: isc-dhcp-server.service: control process exited, code=exited status=1
Apr 07 03:03:04 bunny systemd[1]: Failed to start LSB: DHCP server.
Apr 07 03:03:04 bunny systemd[1]: Unit isc-dhcp-server.service entered failed state.
Apr 07 03:03:04 bunny bunny_framework[233]: Starting isc-dhcp-server (via systemctl): isc-dhcp-server.serviceJob for isc-dhcp-server.service
Apr 07 03:03:04 bunny bunny_framework[233]: failed!
Apr 07 03:03:20 bunny bunny_framework[233]: cat: /var/lib/dhcp/dhcpd.leases: No such file or directory
Apr 07 03:03:21 bunny bunny_framework[233]: cat: /var/lib/dhcp/dhcpd.leases: No such file or directory
Apr 07 03:03:21 bunny bunny_framework[233]: cat: /var/lib/dhcp/dhcpd.leases: No such file or directory
Apr 07 03:03:22 bunny bunny_framework[233]: cat: /var/lib/dhcp/dhcpd.leases: No such file or directory
Apr 07 03:03:22 bunny bunny_framework[233]: cat: /var/lib/dhcp/dhcpd.leases: No such file or directory
Apr 07 03:03:23 bunny bunny_framework[233]: cat: /var/lib/dhcp/dhcpd.leases: No such file or directory
Apr 07 03:03:23 bunny bunny_framework[233]: cat: /var/lib/dhcp/dhcpd.leases: No such file or directory
Apr 07 03:03:24 bunny bunny_framework[233]: cat: /var/lib/dhcp/dhcpd.leases: No such file or directory
Apr 07 03:03:24 bunny bunny_framework[233]: cat: /var/lib/dhcp/dhcpd.leases: No such file or directory
Apr 07 03:03:25 bunny bunny_framework[233]: TARGET_IP = , TARGET_HOSTNAME = , HOST_IP =
Apr 07 03:03:26 bunny bunny_framework[233]: cat: /var/lib/dhcp/dhcpd.leases: No such file or directory
Apr 07 03:03:26 bunny bunny_framework[233]: cat: /var/lib/dhcp/dhcpd.leases: No such file or directory
Apr 07 03:03:26 bunny test_network[1218]: Switch Position is switch1 - Target Hostname is  - Target IP is  - Host IP is 172.16.64.1
# service isc-dhcp-server status
● isc-dhcp-server.service - LSB: DHCP server
   Loaded: loaded (/etc/init.d/isc-dhcp-server)
   Active: failed (Result: exit-code) since Sun 2019-04-07 03:03:04 UTC; 14min ago
  Process: 322 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, status=1/FAILURE)

Jan 01 00:00:12 bunny dhcpd[473]: ** Ignoring requests on usb0.  If this is not what
Jan 01 00:00:12 bunny dhcpd[473]: you want, please write a subnet declaration
Jan 01 00:00:12 bunny dhcpd[473]: in your dhcpd.conf file for the network segment
Jan 01 00:00:12 bunny dhcpd[473]: to which interface usb0 is attached. **
Jan 01 00:00:12 bunny dhcpd[473]:
Apr 07 03:03:04 bunny isc-dhcp-server[322]: Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed!
Apr 07 03:03:04 bunny isc-dhcp-server[322]: failed!
Apr 07 03:03:04 bunny systemd[1]: isc-dhcp-server.service: control process exited, code=exited status=1
Apr 07 03:03:04 bunny systemd[1]: Failed to start LSB: DHCP server.
Apr 07 03:03:04 bunny systemd[1]: Unit isc-dhcp-server.service entered failed state.
# service isc-dhcp-server start
# service isc-dhcp-server status
● isc-dhcp-server.service - LSB: DHCP server
   Loaded: loaded (/etc/init.d/isc-dhcp-server)
   Active: active (running) since Sun 2019-04-07 03:20:41 UTC; 2s ago
  Process: 4592 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/isc-dhcp-server.service
           └─4601 /usr/sbin/dhcpd -q -cf /etc/dhcp/dhcpd.conf -pf /var/run/dhcpd.pid usb0

Apr 07 03:20:39 bunny dhcpd[4598]: Internet Systems Consortium DHCP Server 4.3.1
Apr 07 03:20:39 bunny dhcpd[4598]: Copyright 2004-2014 Internet Systems Consortium.
Apr 07 03:20:39 bunny dhcpd[4600]: Internet Systems Consortium DHCP Server 4.3.1
Apr 07 03:20:39 bunny dhcpd[4600]: Copyright 2004-2014 Internet Systems Consortium.
Apr 07 03:20:39 bunny dhcpd[4600]: All rights reserved.
Apr 07 03:20:39 bunny dhcpd[4600]: For info, please visit https://www.isc.org/software/dhcp/
Apr 07 03:20:39 bunny dhcpd[4600]: Wrote 0 leases to leases file.
Apr 07 03:20:39 bunny dhcpd[4601]: Server starting service.
Apr 07 03:20:41 bunny isc-dhcp-server[4592]: Starting ISC DHCP server: dhcpd.
Apr 07 03:20:41 bunny systemd[1]: Started LSB: DHCP server.
Apr 07 03:21:04 bunny dhcpd[4601]: DHCPDISCOVER from 00:11:22:33:44:55 via usb0
Apr 07 03:21:05 bunny dhcpd[4601]: DHCPOFFER on 172.16.64.10 to 00:11:22:33:44:55 ([REDACTED]) via usb0
Apr 07 03:21:05 bunny dhcpd[4601]: DHCPREQUEST for 172.16.64.10 (172.16.64.1) from 00:11:22:33:44:55 ([REDACTED]) via usb0
Apr 07 03:21:05 bunny dhcpd[4601]: DHCPACK on 172.16.64.10 to 00:11:22:33:44:55 ([REDACTED]) via usb0

 

Edited by zup

Share this post


Link to post
Share on other sites

if you did an upgrade through app, upgraded the dhcp server (dnsmasq or isc, do not remember which one is used) then you may have overwritten the custom config they had for stuff thus breaking how the Bunny works.  I don't upgrade the bunny with apt.  No reason to.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...