Re: "Cannot assign requested address" Error starting FreeRadius
I have a GuruPlug Server 003-GP0001 running Debian Linux 6.0.3 with FreeRadius 2.1.10 installed. I have followed the Basic Configuration HOWTO<http://wiki.freeradius.org/Basic-configuration-HOWTO>, but when I get to the point of starting the server for the first time, I get this error: Fri Nov 11 18:31:49 2011 : Info: Loaded virtual server inner-tunnel Fri Nov 11 18:31:49 2011 : Info: Loaded virtual server <default> Fri Nov 11 18:31:49 2011 : Error: Failed binding to authentication address 127.0.0.1 port 18120 as server inner-tunnel: Cannot assign requested address Fri Nov 11 18:31:49 2011 : Error: /etc/freeradius/sites-enabled/ inner-tunnel[32]: Error binding to port for 127.0.0.1 port 18120 Can anybody suggest how to fix this issue? The complete output from the freeradius -X command is available: http://pastebin.com/cX3ti0wk Thanks, PaulH
On Sat, Nov 12, 2011 at 2:55 AM, Paul Heil <paul.heil@gmail.com> wrote:
Fri Nov 11 18:31:49 2011 : Error: /etc/freeradius/sites-enabled/ inner-tunnel[32]: Error binding to port for 127.0.0.1 port 18120
Can anybody suggest how to fix this issue?
(1) run it as root (2) make sure nothing else is running on that port (e.g. another freeradius instance) (3) if you don't know what (1) and (2) means, spend some time to learn some linux/unix basics. Especially the commands su/sudo, netstat, ps, and kiil. -- Fajar
On Fri, Nov 11, 2011 at 3:51 PM, Fajar A. Nugraha <list@fajar.net> wrote:
(1) run it as root (2) make sure nothing else is running on that port (e.g. another freeradius instance) (3) if you don't know what (1) and (2) means, spend some time to learn some linux/unix basics. Especially the commands su/sudo, netstat, ps, and kiil.
-- Fajar
I run freeradius as root. e.g $sudo freeradius -X According to lsof, nothing is using port 1820. (netstat shows the same) $lsof -i :1820 Thanks, PaulH
On Fri, Nov 11, 2011 at 4:20 PM, Paul Heil <paul.heil@gmail.com> wrote:
I run freeradius as root. e.g
$sudo freeradius -X
According to lsof, nothing is using port 1820. (netstat shows the same)
$lsof -i :1820
Thanks, PaulH
Edit: Typo - Nothing is on port *18120*.
On Sat, Nov 12, 2011 at 5:51 AM, Paul Heil <paul.heil@gmail.com> wrote:
According to lsof, nothing is using port 1820. (netstat shows the same)
$lsof -i :1820
(shrug) Something in your setup is broken then. The default debian/ubuntu package should work just fine. You can either try to debug this further (ps -ef, reboot, reinstall, disable apparmor/selinux, etc.), or you can edit /etc/freeradius/sites-enabled/inner-tunnel and either change the port or disable the listen block entirely. It's only used for testing anyway. -- Fajar
On 11/11/2011 10:51 PM, Paul Heil wrote:
Edit: Typo - Nothing is on port *18120*.
Maybe the server is haunted. Seriously though, something else on the OS must be stopping the port bind; either something is already bound (see below) or something is denying permission. Are you sure you don't have 18120 specified twice in the FreeRADIUS config? Maybe it's binding once (successfully) for one virtual server, then failing to bind a second time?
$sudo freeradius -X
According to lsof, nothing is using port 1820. (netstat shows the same)
$lsof -i :1820
Well the port you should be checking is 18120 not 1820... Arran Cudbard-Bell a.cudbardb@freeradius.org Betelwiki, Betelwiki, Betelwiki.... http://wiki.freeradius.org/ !
Hi,
I run� freeradius as root. e.g
��� $sudo freeradius -X
According to lsof, nothing is using port 1820. (netstat shows the same)
��� $lsof -i :1820
..well, apart from the fact you are supposed to be looking for 18120 as er the error message... options 1) there is already a copy of FreeRADIUS running 2) theres something else running on that port (use lsof or netstat -an) 3) you have 18120 defined twice in the config 4) you dont have permissions for that socket - selinux might be blocking alan
participants (5)
-
Alan Buxey -
Arran Cudbard-Bell -
Fajar A. Nugraha -
Paul Heil -
Phil Mayers