Failed to open socket
rlemaste at covad.com
Tue May 6 06:28:55 CEST 2008
Lemaster, Rob wrote:
> I recently upgraded to 2.0.4, and now I'm seeing the following error
when I start FreeRADIUS:
> Sat May 3 20:21:39 2008 : Error: ERROR: Failed to open socket:
> Sat May 3 20:21:39 2008 : Error:
/opt/freeradius-2.0.4/etc/raddb/radiusd.conf: Error binding to port
for 0.0.0.0 port 1812
> Sun May 4 01:37:24 2008 : Info: Ready to process requests.
So it *does* eventually start. Do you change the configuration
between the start attempts? If not, then it's difficult to say why it
starts one time, and then not another.
Maybe it's port re-use timers? Or something like the FreeBSD Jail
Is there a ktrace functionality on your system to see which system
calls it's doing, and what the results are?
Yes, it does appear to be starting. Radius.log is no longer reporting the error, but radiusd -X still is.
I did not change the configuration. The only change I made was to upgrade to 2.0.4 and add the "Bob" account from the setup instructions. The rest of the configuration is 100% virgin.
>From the recommendation from Joel MBA OYONE, I made sure all other terminals were closed and there were no other radius processes running.
[root at localhost bin]# ./radtest bob hello localhost 0 testing123
User-Name = "bob"
User-Password = "hello"
NAS-IP-Address = 127.0.0.1
NAS-Port = 0
Mon May 5 20:04:55 2008 : Info: Ready to process requests.
ERROR: Failed to open socket:
/opt/freeradius-2.0.4/etc/raddb/radiusd.conf: Error binding to port for 0.0.0.0 port 1812
I couldn't find a ktrace in Fedora. Any other suggestions?
More information about the Freeradius-Users