[OpenSIPS-Users] MediaProxy cannot read the RADIUS configuration file

dotnetdub dotnetdub at gmail.com
Wed Mar 24 00:30:46 CET 2010


On 23 March 2010 23:26, osiris123d <duane.larson at gmail.com> wrote:

>
> I am not sure why this isn't working.  The client.conf file is there and
> the
> exact same format is working on another box.
>
> Twisted is using epollreactor
> fatal error: cannot read the RADIUS configuration file
> fatal error: failed to create MediaProxy Dispatcher: object of type
> 'generator' has no len()
> Traceback (most recent call last):
> File "/usr/bin/media-dispatcher", line 62, in <module>
> dispatcher = Dispatcher()
> File "/usr/lib/pymodules/python2.5/mediaproxy/dispatcher.py", line 526, in
> __init__
> self.accounting = [__import__("mediaproxy.interfaces.accounting.%s" %
> mod.lower(), globals(), locals(), [""]).Accounting() for mod in
> set(Config.accounting)]
> File
> "/usr/lib/pymodules/python2.5/mediaproxy/interfaces/accounting/radius.py",
> line 54, in __init__
> self.handler = RadiusAccounting()
> File
> "/usr/lib/pymodules/python2.5/mediaproxy/interfaces/accounting/radius.py",
> line 90, in __init__
> raddict = pyrad.dictionary.Dictionary(*dicts)
> File "/usr/lib/pymodules/python2.5/pyrad/dictionary.py", line 145, in
> __init__
> self.ReadDictionary(dict)
> File "/usr/lib/pymodules/python2.5/pyrad/dictionary.py", line 316, in
> ReadDictionary
> fil = dictfile.DictFile(file)
> File "/usr/lib/pymodules/python2.5/pyrad/dictfile.py", line 48, in __init__
> self.__ReadNode(fil)
> File "/usr/lib/pymodules/python2.5/pyrad/dictfile.py", line 63, in
> __ReadNode
> node = _Node(fil, '', parentdir)
> File "/usr/lib/pymodules/python2.5/pyrad/dictfile.py", line 22, in __init__
> self.length = len(self.lines)
> TypeError: object of type 'generator' has no len()
>
> Whats in your client.conf?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100323/2271c6ca/attachment.htm 


More information about the Users mailing list