Error running mediaproxy

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

Error running mediaproxy

Antonio Reale
Hi all,
I installed mediaproxy 2.3.4, all python packages with easy_install and gnutls
2.4.3 from sources.
The system is Centos 5.3 x86.
Running media-relay or media-dispatcher I receive the same error:

---------------------------------------------------------------------------------------------------------
[root@sipsvr1 mediaproxy-2.3.4]# ./media-dispatcher --no-fork                                                  
Starting MediaProxy Dispatcher 2.3.4                                                                            
Twisted is using selectreactor                                                                                  
fatal error: failed to create MediaProxy Dispatcher: Objects/dictobject.c:533:
bad argument to internal function
Traceback (most recent call last):                                                                              
--- <exception caught here> ---                                                                                
  File "./media-dispatcher", line 56, in ?                                                                      
    dispatcher = Dispatcher()                                                                                  
  File "/usr/local/mediaproxy-2.3.4/mediaproxy/dispatcher.py", line 524, in
__init__
    self.cred = X509Credentials(cert_name='dispatcher')
  File "/usr/local/mediaproxy-2.3.4/mediaproxy/tls.py", line 132, in __init__
    twisted.X509Credentials.__init__(self, self.X509cert, self.X509key,
[self.X509ca], [self.X509crl])
  File "/usr/local/mediaproxy-2.3.4/mediaproxy/tls.py", line 99, in __get__
    return descriptor.get()
  File "/usr/local/mediaproxy-2.3.4/mediaproxy/tls.py", line 82, in get
    self.object = self.klass(f.read())
  File "<string>", line 1, in __init__

  File "build/bdist.linux-i686/egg/gnutls/validators.py", line 273, in
check_args

  File "build/bdist.linux-i686/egg/gnutls/crypto.py", line 83, in __init__

  File "/usr/lib/python2.4/site-packages/ctypes/__init__.py", line 453, in
cast
    return _cast(obj, obj, typ)
exceptions.SystemError: Objects/dictobject.c:533: bad argument to internal
function
-----------------------------------------------------------------------------------------------------------------

Can someone help me to solve this problem?
Thanks.

Regards,
Antonio

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

Re: Error running mediaproxy

Antonio Reale
In data sabato 25 aprile 2009 02:05:03, [hidden email] ha scritto:
: > Did you configure the tls stuff?
>
> -bill

Hi Bill,
what do you mean? I have all certificates provided by mediaproxy in the tls
folder and mediaproxy finds them. I know that it is not recommended to use
these certificates in production.
What other tls stuff I need to configure?
Thanks,
regards.

Antonio



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

Re: Error running mediaproxy

Antonio Reale
In reply to this post by Antonio Reale
Solved installing the latest version of ctypes.

Antonio.

2009/4/25 Antonio Reale <[hidden email]>:

> Hi all,
> I installed mediaproxy 2.3.4, all python packages with easy_install and gnutls
> 2.4.3 from sources.
> The system is Centos 5.3 x86.
> Running media-relay or media-dispatcher I receive the same error:
>
> ---------------------------------------------------------------------------------------------------------
> [root@sipsvr1 mediaproxy-2.3.4]# ./media-dispatcher --no-fork
> Starting MediaProxy Dispatcher 2.3.4
> Twisted is using selectreactor
> fatal error: failed to create MediaProxy Dispatcher: Objects/dictobject.c:533:
> bad argument to internal function
> Traceback (most recent call last):
> --- <exception caught here> ---
>  File "./media-dispatcher", line 56, in ?
>    dispatcher = Dispatcher()
>  File "/usr/local/mediaproxy-2.3.4/mediaproxy/dispatcher.py", line 524, in
> __init__
>    self.cred = X509Credentials(cert_name='dispatcher')
>  File "/usr/local/mediaproxy-2.3.4/mediaproxy/tls.py", line 132, in __init__
>    twisted.X509Credentials.__init__(self, self.X509cert, self.X509key,
> [self.X509ca], [self.X509crl])
>  File "/usr/local/mediaproxy-2.3.4/mediaproxy/tls.py", line 99, in __get__
>    return descriptor.get()
>  File "/usr/local/mediaproxy-2.3.4/mediaproxy/tls.py", line 82, in get
>    self.object = self.klass(f.read())
>  File "<string>", line 1, in __init__
>
>  File "build/bdist.linux-i686/egg/gnutls/validators.py", line 273, in
> check_args
>
>  File "build/bdist.linux-i686/egg/gnutls/crypto.py", line 83, in __init__
>
>  File "/usr/lib/python2.4/site-packages/ctypes/__init__.py", line 453, in
> cast
>    return _cast(obj, obj, typ)
> exceptions.SystemError: Objects/dictobject.c:533: bad argument to internal
> function
> -----------------------------------------------------------------------------------------------------------------
>
> Can someone help me to solve this problem?
> Thanks.
>
> Regards,
> Antonio
>

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

Re: Error running mediaproxy

Dan Pascu
In reply to this post by Antonio Reale

The trace suggests a broken ctypes module.

On Saturday 25 April 2009, Antonio Reale wrote:

> Hi all,
> I installed mediaproxy 2.3.4, all python packages with easy_install and
> gnutls 2.4.3 from sources.
> The system is Centos 5.3 x86.
> Running media-relay or media-dispatcher I receive the same error:
>
> -----------------------------------------------------------------------
>---------------------------------- [root@sipsvr1 mediaproxy-2.3.4]#
> ./media-dispatcher --no-fork
> Starting MediaProxy Dispatcher 2.3.4
> Twisted is using selectreactor
> fatal error: failed to create MediaProxy Dispatcher:
> Objects/dictobject.c:533: bad argument to internal function
> Traceback (most recent call last):
> --- <exception caught here> ---
>   File "./media-dispatcher", line 56, in ?
>     dispatcher = Dispatcher()
>   File "/usr/local/mediaproxy-2.3.4/mediaproxy/dispatcher.py", line
> 524, in __init__
>     self.cred = X509Credentials(cert_name='dispatcher')
>   File "/usr/local/mediaproxy-2.3.4/mediaproxy/tls.py", line 132, in
> __init__ twisted.X509Credentials.__init__(self, self.X509cert,
> self.X509key, [self.X509ca], [self.X509crl])
>   File "/usr/local/mediaproxy-2.3.4/mediaproxy/tls.py", line 99, in
> __get__ return descriptor.get()
>   File "/usr/local/mediaproxy-2.3.4/mediaproxy/tls.py", line 82, in get
>     self.object = self.klass(f.read())
>   File "<string>", line 1, in __init__
>
>   File "build/bdist.linux-i686/egg/gnutls/validators.py", line 273, in
> check_args
>
>   File "build/bdist.linux-i686/egg/gnutls/crypto.py", line 83, in
> __init__
>
>   File "/usr/lib/python2.4/site-packages/ctypes/__init__.py", line 453,
> in cast
>     return _cast(obj, obj, typ)
> exceptions.SystemError: Objects/dictobject.c:533: bad argument to
> internal function

--
Dan

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

Re: Error running mediaproxy

Antonio Reale
Thanks Dan,
already solved upgrading ctypes.

Regards.

--
Antonio

2009/4/27 Dan Pascu <[hidden email]>:

>
> The trace suggests a broken ctypes module.
>
> On Saturday 25 April 2009, Antonio Reale wrote:
>> Hi all,
>> I installed mediaproxy 2.3.4, all python packages with easy_install and
>> gnutls 2.4.3 from sources.
>> The system is Centos 5.3 x86.
>> Running media-relay or media-dispatcher I receive the same error:
>>
>> -----------------------------------------------------------------------
>>---------------------------------- [root@sipsvr1 mediaproxy-2.3.4]#
>> ./media-dispatcher --no-fork
>> Starting MediaProxy Dispatcher 2.3.4
>> Twisted is using selectreactor
>> fatal error: failed to create MediaProxy Dispatcher:
>> Objects/dictobject.c:533: bad argument to internal function
>> Traceback (most recent call last):
>> --- <exception caught here> ---
>>   File "./media-dispatcher", line 56, in ?
>>     dispatcher = Dispatcher()
>>   File "/usr/local/mediaproxy-2.3.4/mediaproxy/dispatcher.py", line
>> 524, in __init__
>>     self.cred = X509Credentials(cert_name='dispatcher')
>>   File "/usr/local/mediaproxy-2.3.4/mediaproxy/tls.py", line 132, in
>> __init__ twisted.X509Credentials.__init__(self, self.X509cert,
>> self.X509key, [self.X509ca], [self.X509crl])
>>   File "/usr/local/mediaproxy-2.3.4/mediaproxy/tls.py", line 99, in
>> __get__ return descriptor.get()
>>   File "/usr/local/mediaproxy-2.3.4/mediaproxy/tls.py", line 82, in get
>>     self.object = self.klass(f.read())
>>   File "<string>", line 1, in __init__
>>
>>   File "build/bdist.linux-i686/egg/gnutls/validators.py", line 273, in
>> check_args
>>
>>   File "build/bdist.linux-i686/egg/gnutls/crypto.py", line 83, in
>> __init__
>>
>>   File "/usr/lib/python2.4/site-packages/ctypes/__init__.py", line 453,
>> in cast
>>     return _cast(obj, obj, typ)
>> exceptions.SystemError: Objects/dictobject.c:533: bad argument to
>> internal function
>
> --
> Dan
>

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