• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Dhcp not starting at reboot

Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
5 Posts 2 Posters 1.5k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    Stef
    last edited by Jan 20, 2013, 6:56 AM

    hi for a while now whenever I reboot Dhcp server doesn't start.

    Same with dnsmasq

    In the log I did found an entry for dhcp but not for dns

    Jan 20 00:14:31 php: : The command '/usr/local/sbin/dhcpleases -l /var/dhcpd/var/db/dhcpd.leases -d byronent.eu -p /var/run/dnsmasq.pid -h /var/etc/hosts' returned exit code '1', the output was 'lease file needs to exist before starting dhcpleases: No such file or directory'

    After logging on and clicking on start service it works

    Anybody else ? Is this a config problem? Or a bug?

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Jan 20, 2013, 5:09 PM

      Are you sure there are no other log messages, perhaps on the DHCP tab?

      I saw something similar once where a stale pid file was left in /var/run and for some reason it refused to start because it believed it was already running.

      You might just try to rm /var/run/* and then immediately reboot.

      Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • S
        Stef
        last edited by Jan 25, 2013, 6:48 AM

        I've tried it a couple of times,

        however it stays the same…

        Jan 25 07:23:58 dhcpleases: lease file needs to exist before starting dhcpleases
        Jan 25 07:23:58 php: : The command '/usr/local/sbin/dhcpleases -l /var/dhcpd/var/db/dhcpd.leases -d byronent.eu -p /var/run/dnsmasq.pid -h /var/etc/hosts' returned exit code '1', the output was 'lease file needs to exist before starting dhcpleases: No such file or directory'

        Maybe it's because of the previous line ?

        1 Reply Last reply Reply Quote 0
        • S
          Stef
          last edited by Jan 25, 2013, 8:14 AM

          This looks like the bug I've found here

          http://redmine.pfsense.org/issues/837

          1 Reply Last reply Reply Quote 0
          • J
            jimp Rebel Alliance Developer Netgate
            last edited by Jan 25, 2013, 12:57 PM

            That one is unrelated.

            The dhcpleases error is not the one you're after. You'd want one from just dhcpd. Check the DHCP log tab.

            Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            4 out of 5
            • First post
              4/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received