[Kea-users] lease reading error
Munroe Sollog
mus3 at lehigh.edu
Tue Oct 25 21:13:10 UTC 2016
below is my config. My leases file is ~350MB so can't easily attach that to an email.
{
"Dhcp4":
{
"control-socket": {
"socket-type": "unix",
"socket-name": "/var/kea/statistics-socket"
},
"interfaces-config": {
"interfaces": ["eth0" ]
},
"lease-database": {
"type": "memfile"
},
"expired-leases-processing": {
"reclaim-timer-wait-time": 10,
"flush-reclaimed-timer-wait-time": 25,
"hold-reclaimed-time": 3600,
"max-reclaim-leases": 100,
"max-reclaim-time": 250,
"unwarned-reclaim-cycles": 5
},
"valid-lifetime": 4000,
"subnet4": [
{
"subnet": "172.31.0.0/18",
"pools": [ { "pool": "172.31.1.1 - 172.31.31.254"} ],
"option-data": [
{
"name": "domain-name-servers",
"data": "8.8.8.8, 8.8.4.4"
},
{
"name": "routers",
"data": "172.31.0.1"
},
]
}
]
},
"Logging":
{
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
{
"output": "/var/log/kea-dhcp4.log"
}
],
"severity": "INFO",
"debuglevel": 0
},
]
}
}
On 10/25/2016 05:10 PM, Wlodek Wencel wrote:
> Hello,
> thanks for reporting that issue, I never came across this kind of
> problem. Is there a possibility that you could send us leases file and
> kea config file?
>
> Regards,
> Włodek Wencel
> QA team
>
> On 10/25/2016 11:05 PM, Todd Simmons (todsimmo) wrote:
>> Understood, in my case it was caused by a power outage. I have 14 sites running Kea 1.0.0 and that's the only time it's happened.
>>
>> Sent from my iPhone
>>
>>> On Oct 25, 2016, at 4:01 PM, Munroe Sollog <mus3 at lehigh.edu> wrote:
>>>
>>> I agree that the file is 'damaged' in some way, and of course if I delete all of the leases I expect
>>> it to start fine, but I'd like to figure out the root cause before I just blow the file away.
>>>
>>> - Munroe
>>>
>>>> On 10/25/2016 04:59 PM, Todd Simmons (todsimmo) wrote:
>>>> I had the same issue after the vm server was shutdown improperly after a power outage. I opened the file in VI and deleted all the leases (after saving a copy of course) and then it worked just fine.
>>>>
>>>> It's possible the file is damaged and that's causing the problem.
>>>>
>>>> Sent from my iPhone
>>>>
>>>>> On Oct 25, 2016, at 3:44 PM, Munroe Sollog <mus3 at lehigh.edu> wrote:
>>>>>
>>>>> running 1.0.0 code. I stopped the service a while and then when I went to start it I got the
>>>>> following error:
>>>>>
>>>>> kea-dhcp4[14193]: 2016-10-25 16:35:28.129 ERROR [kea-dhcp4.dhcp4/14193] DHCP4_INIT_FAIL failed to
>>>>> initialize Kea server: configuration error using file '/etc/kea/kea-dhcp4.conf': exceeded maximum
>>>>> number of failures 100 to read a lease from the lease file /var/lib/kea/kea-leases4.csv
>>>>>
>>>>>
>>>>> # kea-dhcp4 -V
>>>>> 1.0.0
>>>>> tarball
>>>>> linked with:
>>>>> log4plus 1.0.4
>>>>> OpenSSL 1.0.1t 3 May 2016
>>>>> database:
>>>>> MySQL backend 3.0, library 5.5.52
>>>>> PostgreSQL backend 2.0, library 90409
>>>>> Memfile backend 2.0
>>>>>
>>>>>
>>>>>
>>>>> A quick google search yeilded the comments from the header file that causes the error output, but I
>>>>> don't understand why it can't read its lease file all of a sudden. I don't know if it is pertinent,
>>>>> but there *a lot* of leases in the lease file:
>>>>>
>>>>> # wc -l /var/lib/kea/kea-leases4.csv
>>>>> 4485457 /var/lib/kea/kea-leases4.csv
>>>>>
>>>>> I obviously don't have 4.4million users though.
>>>>>
>>>>> --
>>>>> Munroe Sollog
>>>>> LTS - Senior Network Engineer
>>>>> x85002
>>>>> _______________________________________________
>>>>> Kea-users mailing list
>>>>> Kea-users at lists.isc.org
>>>>> https://lists.isc.org/mailman/listinfo/kea-users
>>>> _______________________________________________
>>>> Kea-users mailing list
>>>> Kea-users at lists.isc.org
>>>> https://lists.isc.org/mailman/listinfo/kea-users
>>>>
>>>
>>> --
>>> Munroe Sollog
>>> LTS - Senior Network Engineer
>>> x85002
>> _______________________________________________
>> Kea-users mailing list
>> Kea-users at lists.isc.org
>> https://lists.isc.org/mailman/listinfo/kea-users
>>
> _______________________________________________
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
>
--
Munroe Sollog
LTS - Senior Network Engineer
x85002
More information about the Kea-users
mailing list