Problem: Radius Does Not Start Any More

Problem

Your radius server does not start any more. You see entries like this when trying to start:

root@ucs:~# systemctl restart freeradius
Job for freeradius.service failed because the control process exited with error code.
See "systemctl status freeradius.service" and "journalctl -xe" for details.

Investigation

Do as recommended a journalctl -xe:

root@ucs:~# journalctl -xe
-- Support: https://www.debian.org/support
--
-- Unit freeradius.service has failed.
--
-- The result is failed.
Jan 28 14:20:38 ucs systemd[1]: freeradius.service: Unit entered failed state.
Jan 28 14:20:38 ucs systemd[1]: freeradius.service: Failed with result 'exit-code'.
Jan 28 14:20:39 ucs ldapsearch[22666]: DIGEST-MD5 common mech free
Jan 28 14:20:39 ucs sshd[22693]: Received disconnect from 10.7.201.7 port 57876:11: disconnected by user
Jan 28 14:20:39 ucs sshd[22693]: Disconnected from 10.7.201.7 port 57876
Jan 28 14:20:39 ucs sshd[22640]: pam_unix(sshd:session): session closed for user server$
Jan 28 14:20:40 ucs sshd[22696]: Accepted keyboard-interactive/pam for server$ from 10.0.2.7 port 57878 sh2
Jan 28 14:20:40 ucs sshd[22696]: pam_unix(sshd:session): session opened for user server$ by (uid=0)
Jan 28 14:20:41 ucs ldapsearch[22714]: DIGEST-MD5 common mech free
Jan 28 14:20:42 ucs sshd[22740]: Received disconnect from 10.7.201.7 port 57878:11: disconnected by user
Jan 28 14:20:42 ucs sshd[22740]: Disconnected from 10.0.2.7 port 57878
Jan 28 14:20:42 ucs sshd[22696]: pam_unix(sshd:session): session closed for user server$
Jan 28 14:20:42 ucs sshd[22744]: Accepted keyboard-interactive/pam for solid$ from 10.0.2.7 port 57880 sh2
Jan 28 14:20:42 ucs sshd[22744]: pam_unix(sshd:session): session opened for user solid$ by (uid=0)
Jan 28 14:20:43 ucs systemd[1]: freeradius.service: Service hold-off time over, scheduling restart.
Jan 28 14:20:43 ucs systemd[1]: Stopped FreeRADIUS multi-protocol policy server.
-- Subject: Unit freeradius.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support

[...]

Jan 28 14:20:43 ucs freeradius[22752]: /etc/freeradius/3.0/clients.conf[33]: Syntax error: Expected comma fter 'Ruckus': AP
Jan 28 14:2043 ucs freeradius[22752]: Errors reading or parsing /etc/freeradius/3.0/radiusd.conf
Jan 28 14:20:43 ucs systemd[1]: freeradius.service: Control process exited, code=exited status=1
Jan 28 14:20:43 ucs systemd[1]: Failed to start FreeRADIUS multi-protocol policy server.
-- Subject: Unit freeradius.service has failed
-- Defined-By: systemd

Solution

As shown in the above messages there is an syntax error in line 33 of clients.conf.

Check syntax and fix your typos. Then restart radius server.

Mastodon