aua94
aua94

Reputation: 1

Freeradius in debugging mode error

**Im trying to run freeradius in debugging mode( freeradius -X) but I get an error. the error is "Failed binding to authentication address * port 1812: Address already in use /etc/freeradius/radiusd.conf[240]: Error binding to port for 0.0.0.0 port 1812"

Why I'm I getting this error?**

Upvotes: 0

Views: 21845

Answers (6)

Brent K.
Brent K.

Reputation: 1083

You can control the debugging using the init script interface

sudo /etc/init.d/freeradius stop
sudo /etc/init.d/freeradius debug-threaded

Upvotes: 0

Gilson PJ
Gilson PJ

Reputation: 3600

You can stop the freeradius using below command

sudo /etc/init.d/freeradius stop

And then you can start again using below command

sudo /etc/init.d/freeradius start

Upvotes: 0

Helmar Junior
Helmar Junior

Reputation: 31

You can running

killall freeradius && freeradius -X

Upvotes: 0

Barathi
Barathi

Reputation: 189

Run the command 'killall freeradius' ( if on ubuntu ) Then,Restart the service, '/etc/init.d/freeradius restart' and stop the service, '/etc/init.d/freeradius stop' Now, if you run the command 'freeradius -X' you will not get the error.

Upvotes: 0

philip
philip

Reputation: 75

You can do this to stop all freeradius ID

ps –A | grep freeradius

To get process ID of freeradius

kill -9 freeradius-PID

Start FreeRadius again

sudo /etc/init.d/freeradius start

Upvotes: 1

Arran Cudbard-Bell
Arran Cudbard-Bell

Reputation: 6075

Another instance of FreeRADIUS is running and bound to UDP port 1812. killall radiusd

Upvotes: 0

Related Questions