From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Fischer <matthias.fischer@ipfire.org> To: development@lists.ipfire.org Subject: Re: Restarting dhcp or adding a host leads to "could not parse line"-errors in '/var/log messages' Date: Sat, 13 Jul 2019 13:12:51 +0200 Message-ID: <d5fce2d6-a195-159b-91a7-cd56a695b458@ipfire.org> In-Reply-To: <eed10f50-5c6b-8702-6ab3-418b0fa27d79@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5748891669781780483==" List-Id: <development.lists.ipfire.org> --===============5748891669781780483== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Filed as Bug #12115: https://bugzilla.ipfire.org/show_bug.cgi?id=3D12115 On 13.07.2019 12:57, Matthias Fischer wrote: > Hi, >=20 > I reverted: >=20 > https://git.ipfire.org/?p=3Dipfire-2.x.git;a=3Dcommitdiff;h=3Dc3c2ae4475a0e= 99a6163027405a45a1e2b4fa8b6 >=20 > and >=20 > https://git.ipfire.org/?p=3Dipfire-2.x.git;a=3Dcommit;h=3D6874a5765b887b51e= 324e1afbddc4516d66a710f >=20 > Errors are gone. >=20 > On 13.07.2019 10:20, Matthias Fischer wrote: >> Hi, >>=20 >> Sorry, but we're at it again... >>=20 >> DHCP-Configuration: >> No addresspool, only fixed leases, working fine, no problems during >> operation. And I mean it. NO problems! All clients are operational. >>=20 >> But a few days after adding a new host to fixed leases, I stumbled upon >> a whole lot of error lines in '/var/log/messages'. One host, one line. >>=20 >> ***SNIP*** >> dhcp[3480]: Could not parse line: on,[HOSTADRESS],[HOSTNAME],localdomain,on >> ***SNAP*** >>=20 >> Today I tested this on a testmachine with a fresh install (Core 134): >>=20 >> - Activated dhcp (dhcp.cgi), added two fixed leases, just for fun. >> - Added one host (hosts.cgi), page reloads and stays "Waiting for ...". >> - Added second host (hosts,cgi), page reloads and stays "Waiting for >> ..." and the new host is not shown. No errors in >> '/var/log/httpd/error_log/'! >>=20 >> - After playing a while with the testmachine I looked at >> '/var/log/messages' and found a lot of 'could not parse line' errors >> again. One error line for each host. Seems to be the same on my >> production machine. ;-( >>=20 >> ***SNIP*** >> dhcp[3480]: Could not parse line: on,192.168.100.50,test1,localdomain,on >> dhcp[3480]: Could not parse line: on,192.168.100.50,test1,localdomain,on >> dhcp[3480]: Could not parse line: on,192.168.100.50,test1,localdomain,on >> dhcp[3480]: Could not parse line: on,192.168.100.50,test1,localdomain,on >> dhcp[3480]: Could not parse line: on,192.168.100.50,test,localdomain,on >> dhcp[3480]: Could not parse line: on,192.168.100.50,test1,localdomain,on >> dhcp[3480]: Could not parse line: on,192.168.100.50,test,localdomain,on >> dhcp[3480]: Could not parse line: on,192.168.100.51,test1,localdomain,on >> dhcp[3480]: Could not parse line: on,192.168.100.50,test,localdomain,on >> dhcp[3480]: Could not parse line: on,192.168.100.51,test1,localdomain,on >> dhcp[3480]: Could not parse line: on,192.168.100.50,test,localdomain,on >> dhcp[3480]: Could not parse line: on,192.168.100.51,test1,localdomain,on >> dhcp[3480]: Could not parse line: on,192.168.100.53,test3,localdomain,on >> ***SNAP*** >>=20 >> And this happens every time I restart 'dhcp' or add/edit a host. >>=20 >> Current '/var/ipfire/main/hosts' on testmachine contains: >>=20 >> ***SNIP*** >> on,192.168.100.50,test0,localdomain,on >> on,192.168.100.51,test1,localdomain,on >> on,192.168.100.52,test2,localdomain,on >> ***SNAP*** >>=20 >> Restarting 'dhcp' or editing a host gives me (e.g): >>=20 >> ***SNIP*** >> 11:06:50 dhcpd: Wrote 0 deleted host decls to leases file. >> 11:06:50 dhcpd: Wrote 0 new dynamic host decls to leases file. >> 11:06:50 dhcpd: Wrote 0 leases to leases file. >> 11:06:50 dhcpd: Server starting service. >> 11:06:50 dhcp[9159]: Could not parse line: >> on,192.168.100.50,test0,localdomain,on >> 11:06:50 dhcp[9159]: Could not parse line: >> on,192.168.100.51,test1,localdomain,on >> 11:06:50 dhcp[9159]: Could not parse line: >> on,192.168.100.52,test2,localdomain,on >> ***SNAP*** >>=20 >> 'dhcp' and fixed leases are working though! >>=20 >> Can anyone confirm or has a hint were to look? I didn't find a grip on >> this yet. >>=20 >> Best, >> Matthias >>=20 >=20 >=20 --===============5748891669781780483==--