Problem running MediaProxy / FreeRADIS

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem running MediaProxy / FreeRADIS

VoIPRookie
Dear Users,

I have made bunch of changes in my opensips by upgrading to 1.5.1,
adding FreeRadius to my server, and MediaProxy 2.3.

Before making changes to config files for opensips it worked fine but
after making changes it gives me following errors... I am assuming i
have screwed up in putting proper values for OpenSIPS...


FreeRADIUS failure:
root# freeradius -X
radiusd: #### Opening IP addresses and Ports ####
listen {
       type = "auth"
       ipaddr = *
       port = 0
}
listen {
       type = "acct"
       ipaddr = *
       port = 0
}
listen {
       type = "control"
 listen {
       socket = "/var/run/freeradius/freeradius.sock"
 }
Failed binding to /var/run/freeradius/freeradius.sock: Permission denied



MediaProxy failure:
root# ./media-dispatcher --no-fork

Starting MediaProxy Dispatcher 2.3.4
Twisted is using epollreactor

fatal error: cannot read the RADIUS configuration file
fatal error: failed to create MediaProxy Dispatcher: 'servers'

Traceback (most recent call last):
--- <exception caught here> ---
 File "./media-dispatcher", line 56, in <module>
   dispatcher = Dispatcher()
 File "/etc/mediaproxy/mediaproxy-2.3.4/mediaproxy/dispatcher.py",
line 523, in __init__
   self.accounting =
[__import__("mediaproxy.interfaces.accounting.%s" % mod.lower(),
globals(), locals(), [""]).Accounting() for mod in
set(Config.accounting)]
 File "/etc/mediaproxy/mediaproxy-2.3.4/mediaproxy/interfaces/accounting/radius.py",
line 53, in __init__
   self.radius = RadiusAccounting()
 File "/etc/mediaproxy/mediaproxy-2.3.4/mediaproxy/interfaces/accounting/radius.py",
line 74, in __init__
   secrets = dict(line.rstrip("\n").split(None, 1) for line in
open(config["servers"]) if len(line.split(None, 1)) == 2 and not
line.startswith("#"))
exceptions.KeyError: 'servers'

--
Please HELP...


Khan


VoIP Rookie
Every beginning has an end regardless we believe it or not...

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Problem running MediaProxy / FreeRADIS

Bogdan-Andrei Iancu
Hi Khan,

All your error are RADIUS related.

for Freeradius: have you checked if the .sock file exists and what are
the permissions?

for Mediaproxy: check if you point to a existing valid radius cfg file

Regards,
Bogdan

Khan wrote:

> Dear Users,
>
> I have made bunch of changes in my opensips by upgrading to 1.5.1,
> adding FreeRadius to my server, and MediaProxy 2.3.
>
> Before making changes to config files for opensips it worked fine but
> after making changes it gives me following errors... I am assuming i
> have screwed up in putting proper values for OpenSIPS...
>
>
> FreeRADIUS failure:
> root# freeradius -X
> radiusd: #### Opening IP addresses and Ports ####
> listen {
>        type = "auth"
>        ipaddr = *
>        port = 0
> }
> listen {
>        type = "acct"
>        ipaddr = *
>        port = 0
> }
> listen {
>        type = "control"
>  listen {
>        socket = "/var/run/freeradius/freeradius.sock"
>  }
> Failed binding to /var/run/freeradius/freeradius.sock: Permission denied
>
>
>
> MediaProxy failure:
> root# ./media-dispatcher --no-fork
>
> Starting MediaProxy Dispatcher 2.3.4
> Twisted is using epollreactor
>
> fatal error: cannot read the RADIUS configuration file
> fatal error: failed to create MediaProxy Dispatcher: 'servers'
>
> Traceback (most recent call last):
> --- <exception caught here> ---
>  File "./media-dispatcher", line 56, in <module>
>    dispatcher = Dispatcher()
>  File "/etc/mediaproxy/mediaproxy-2.3.4/mediaproxy/dispatcher.py",
> line 523, in __init__
>    self.accounting =
> [__import__("mediaproxy.interfaces.accounting.%s" % mod.lower(),
> globals(), locals(), [""]).Accounting() for mod in
> set(Config.accounting)]
>  File "/etc/mediaproxy/mediaproxy-2.3.4/mediaproxy/interfaces/accounting/radius.py",
> line 53, in __init__
>    self.radius = RadiusAccounting()
>  File "/etc/mediaproxy/mediaproxy-2.3.4/mediaproxy/interfaces/accounting/radius.py",
> line 74, in __init__
>    secrets = dict(line.rstrip("\n").split(None, 1) for line in
> open(config["servers"]) if len(line.split(None, 1)) == 2 and not
> line.startswith("#"))
> exceptions.KeyError: 'servers'
>
>  


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users