Freeradius (packetfence) - Error binding to port for 127.0.0.1 port 18121
Hi all, The following is the debug output and the error I noticed in the freeradius *freeradius -X* radiusd: #### Opening IP addresses and Ports #### listen { type = "auth" ipaddr = 127.0.0.1 port = 18120 } listen { type = "auth" ipaddr = * port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } Failed binding to auth address * port 1812 bound to server default: Address already in use /etc/freeradius/sites-enabled/default[59]: Error binding to port for 0.0.0.0 port 1812 */usr/sbin/freeradius -d /usr/local/pf/raddb -n auth -fxx -l stdout* auth: #### Opening IP addresses and Ports #### listen { type = "status" virtual_server = "status" ipaddr = 127.0.0.1 port = 18121 Failed binding to status address 127.0.0.1 port 18121 bound to server status: Address already in use /usr/local/pf/raddb/auth.conf[7]: Error binding to port for 127.0.0.1 port 18121 Regards, Thirunavukkarasu
As the error message says: something is already using that port. Stop whatever that is and try again.
On 21 Mar 2022, at 12:38, P.Thirunavukkarasu <drthiruna@tanuvas.org.in> wrote:
Hi all, The following is the debug output and the error I noticed in the freeradius
*freeradius -X* radiusd: #### Opening IP addresses and Ports #### listen { type = "auth" ipaddr = 127.0.0.1 port = 18120 } listen { type = "auth" ipaddr = * port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } Failed binding to auth address * port 1812 bound to server default: Address already in use /etc/freeradius/sites-enabled/default[59]: Error binding to port for 0.0.0.0 port 1812
*/usr/sbin/freeradius -d /usr/local/pf/raddb -n auth -fxx -l stdout* auth: #### Opening IP addresses and Ports #### listen { type = "status" virtual_server = "status" ipaddr = 127.0.0.1 port = 18121 Failed binding to status address 127.0.0.1 port 18121 bound to server status: Address already in use /usr/local/pf/raddb/auth.conf[7]: Error binding to port for 127.0.0.1 port 18121
Regards, Thirunavukkarasu - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi all, I did *killall freeradius* then I did the debugging *freeradius -X* is showing the following message Failed binding to auth address * port 1812 bound to server default: Address already in use /etc/freeradius/sites-enabled/default[59]: Error binding to port for 0.0.0.0 port 1812 */usr/sbin/freeradius -d /usr/local/pf/raddb -n auth -fxx -l stdout* With this command, the server shows the message as "Ready to process" Ref: *https://wiki.freeradius.org/guide/radiusd-X <https://wiki.freeradius.org/guide/radiusd-X>* *We start the server with -X. This option gives us the best combination of useful output and readable output. * *Regards* *Thirunavukkarasu*
the port is already bound. what does the system tell you is using that port? is freeradius set to auto-restart when stopped?
On Mar 23, 2022, at 7:49 AM, P.Thirunavukkarasu <drthiruna@tanuvas.org.in> wrote:
Hi all, I did *killall freeradius* then I did the debugging *freeradius -X* is showing the following message Failed binding to auth address * port 1812 bound to server default: Address already in use /etc/freeradius/sites-enabled/default[59]: Error binding to port for 0.0.0.0 port 1812
*/usr/sbin/freeradius -d /usr/local/pf/raddb -n auth -fxx -l stdout* With this command, the server shows the message as "Ready to process"
Ref: *https://wiki.freeradius.org/guide/radiusd-X <https://wiki.freeradius.org/guide/radiusd-X>* *We start the server with -X. This option gives us the best combination of useful output and readable output. * *Regards* *Thirunavukkarasu* - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Mar 23, 2022, at 7:49 AM, P.Thirunavukkarasu <drthiruna@tanuvas.org.in> wrote:
I did *killall freeradius* then I did the debugging *freeradius -X* is showing the following message
That's not the right way to do it. This is basic system administration. Find out what system is monitoring FreeRADIUS, and use *that* tool to stop the service. If you don't know what system is monitoring FreeRADIUS, then figure it out. See the OS documentation. This isn't a FreeRADIUS issue. Alan DeKok.
Thank you all I will figure out and back to the forum Regards, Thirunavukkarasu
It means what it says. Port 18121 is already used. On 3/21/2022 12:38 PM, P.Thirunavukkarasu wrote:
participants (5)
-
Alan DeKok -
Jonathan Davis -
Kristofer Hallin -
Marki -
P.Thirunavukkarasu