Freeradius is crashing while proxying a request.

Amit P amit.subscription at gmail.com
Sat Nov 25 08:57:14 UTC 2023


Hi,

Freeradius is crashing with signal 6 when no live homeserver is available,
while proxying a request.

I have only one home server in my pool and when it is marked as dead and a
new access-request is received freeradius is crashed.

Logs:
Sat Nov 25 08:52:27 2023 : Debug: (1) No proxy response, giving up on
request and marking it done
Sat Nov 25 08:52:27 2023 : Proxy: Marking home server 20.0.0.4 port 1812 as
zombie (it has not responded in 30.000000 seconds).
Sat Nov 25 08:52:27 2023 : ERROR: (1) Failing proxied request for user
"00:50:56:96:ff:32", due to lack of any response from home server 20.0.0.4
port 1812
Sat Nov 25 08:52:27 2023 : Debug: (1) Clearing existing &reply: attributes
Sat Nov 25 08:52:27 2023 : Debug: (1) Found Post-Proxy-Type
Fail-Authentication
Sat Nov 25 08:52:27 2023 : Debug: (1) server default {
Sat Nov 25 08:52:27 2023 : Debug: (1)   Post-Proxy-Type sub-section not
found.  Ignoring.
Sat Nov 25 08:52:27 2023 : Debug: (1)   # Executing group from file
/etc/raddb/sites-enabled/default
Sat Nov 25 08:52:27 2023 : Debug: (1) }
Sat Nov 25 08:52:27 2023 : Auth: (1) Login incorrect (Home Server failed to
respond): [00:50:56:96:ff:32] (from client 20.0.0.1 port 2 cli
00-50-56-96-FF-32)
Sat Nov 25 08:52:27 2023 : Debug: (1) There was no response configured:
rejecting request
Sat Nov 25 08:52:27 2023 : Debug: (1) Using Post-Auth-Type Reject
Sat Nov 25 08:52:27 2023 : Debug: (1) # Executing group from file
/etc/raddb/sites-enabled/default
Sat Nov 25 08:52:27 2023 : Debug: (1)   Post-Auth-Type REJECT {
Sat Nov 25 08:52:27 2023 : Debug: (1)     modsingle[post-auth]: calling
attr_filter.access_reject (rlm_attr_filter)
Sat Nov 25 08:52:27 2023 : Debug: %{User-Name}
....
Sat Nov 25 08:52:57 2023 : Debug: PING: Zombie period is over for home
server remoteradius2
Sat Nov 25 08:52:57 2023 : Proxy: Marking home server 20.0.0.4 port 1812 as
dead.
Sat Nov 25 08:52:57 2023 : Debug: PING: Reviving home server remoteradius2
in 300 seconds
Sat Nov 25 08:52:57 2023 : Debug: Waking up in 2.7 seconds.
....
....
at Nov 25 08:53:56 2023 : Debug: (2) Received Access-Request Id 5 from
20.0.0.1:50918 to 20.0.0.2:1812 length 169
Sat Nov 25 08:53:56 2023 : Debug: (2)   User-Name = "00:50:56:96:ff:32"
Sat Nov 25 08:53:56 2023 : Debug: (2)   Calling-Station-Id =
"00-50-56-96-FF-32"
....
Sat Nov 25 08:53:56 2023 : Debug: (2)   } # authorize = updated
Sat Nov 25 08:53:56 2023 : Debug: Using home pool auth for realm realm2
Sat Nov 25 08:53:56 2023 : ERROR: (2) Failed to find live home server:
Cancelling proxy
Sat Nov 25 08:53:56 2023 : WARNING: (2) No home server selected
Sat Nov 25 08:53:56 2023 : Debug: (2) Clearing existing &reply: attributes
Sat Nov 25 08:53:56 2023 : Debug: (2) Found Post-Proxy-Type
Fail-Authentication
Sat Nov 25 08:53:56 2023 : Error: ASSERT FAILED src/main/process.c[2485]:
request->home_server != NULL
CAUGHT SIGNAL: Aborted
Backtrace of last 12 frames:
/usr/lib/libfreeradius-radius.so.0(fr_fault+0x144)[0xffff81bc0d64]
/usr/lib/libfreeradius-server.so.0(rad_assert_fail+0x2c)[0xffff81c219fc]
radiusd[0x42f648]
radiusd[0x436490]

# radiusd  -v
radiusd: FreeRADIUS Version 3.0.20 (git #d94c953ab), for host
aarch64-cnos-linux-gnu, built on Mar  9 2018 at 12:34:56
FreeRADIUS Version 3.0.20

Thanks & Regards,
Amit


More information about the Freeradius-Users mailing list