Re: radiusd crashes. ASSERT FAILED src/main/threads.c[794]

Alan DeKok via Freeradius-Users <[email protected]>
Newsgroups gmane.comp.freeradius.user
Message-ID <[email protected]>
On May 21, 2025, at 7:23 AM, Sergei Kodentsev <[email protected]> wrote:
> 
> On 21.05.2025 15:14, Alan DeKok wrote:
>> Hm... what's the rest of the debug log?
> 
> Wed May 21 12:15:21 2025 : Error: (1707753) Ignoring duplicate packet from client dhcp port 67 - ID: 45241580 due to unfinished request in component post-auth module dhcplog
> Wed May 21 12:15:21 2025 : Error: (1707764) Ignoring duplicate packet from client dhcp port 67 - ID: 336510328 due to unfinished request in component post-auth module dhcpstaticnd

  I'll take a look and see if I can reproduce this.  But the underlying issue is that those modules are slow, and are blocking the server.

  It's possible to update the server so it doesn't hit this assertion, but the server will still be unable to make progress.  It won't process packets, and it won't respond to packets.

  The only fix is to make sure that modules do not block the server.

> Wed May 21 12:15:21 2025 : WARNING: (1707865) WARNING: Module dhcpstaticnd(rlm_sql) became unblocked
...
> Wed May 21 12:15:21 2025 : WARNING: (1707913) WARNING: Module dhcproute(rlm_sql) became unblocked
> Wed May 21 12:15:21 2025 : Error: (1707919) Ignoring duplicate packet from client dhcp port 67 - ID: 632528912 due to unfinished request in component post-auth module dhcpstaticnd

 The SQL databases which these modules are querying is taking 5-30 seconds to respond.  No amount of poking FreeRADIUS will make the SQL database faster.

  Fix the SQL database so that it replies within a second, ideally much less.  FreeRADIUS will then be able to operate normally.

  Alan DeKok.

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.