Project

General

Profile

Bug #9383

dhcpleases kqueue error

Added by Jim Pingle about 2 years ago. Updated 7 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
DHCP (IPv4)
Target version:
Start date:
03/06/2019
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.5.0
Affected Architecture:
All
Release Notes:
Default

Description

On 2.5.0 snapshots when DHCP lease integration is enabled for the DNS Resolver, the following error is logged at boot:

Mar 4 16:45:27     dhcpleases     79337     kqueue error: unkown

Associated revisions

Revision c968ef7e (diff)
Added by Luiz Souza 9 months ago

Make sure dhcpleases is killed before writing the hosts file.

Needs to happen before fopen($hosts, "w") as it is going to truncate the file
and that breaks the tracking of hosts size in dhcpleases.

Ticket: #9383

History

#1 Updated by Steve R about 2 years ago

this appears on a vanilla install with only DHCP / DNS Resolver turned on in 2.4.4_p2 on a J1900 NanoPC box

"DNS Query Forwarding" - Enable/Disabled - makes no difference to the error
"Register DHCP static mappings in the DNS Resolver" - Enable/Disabled - makes no difference to the error

the trigger for the error is "Register DHCP leases in the DNS Resolver"
- checked error occurs, unchecked no error

Error first appears immediately after boot and any time unbound is re-started

#2 Updated by Luiz Souza over 1 year ago

  • Assignee set to Luiz Souza

#3 Updated by Luiz Souza 9 months ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

Fixed in dhcpleases-0.5.

#4 Updated by Max Leighton 7 months ago

  • Status changed from Feedback to Resolved

Validated the behavior in 2.4.5_1

Tested again in

2.5.0-DEVELOPMENT (amd64)
built on Sun Sep 20 06:59:15 EDT 2020
FreeBSD 12.2-PRERELEASE

The error is no longer logged after restarting unbound/rebooting the firewall.

Marking ticket as resolved.

Also available in: Atom PDF