[OpenSIPS-Users] Mediaproxy 2.1.0 on Red Hat/CentOS

John Quick John.Quick at smartvox.co.uk
Thu Nov 27 12:25:59 CET 2008


Your explanation makes a lot of sense - getting the correct version of the
gnutls libraries has been a big problem and I downloaded 2.4.2 and installed
from source after I had installed the Python libraries. However, I now have
problems re-installing packages/libraries so the old ones are properly
replaced. For example, "./setup clean" does not remove the old .so files in
the build directory for my Python packages - I had to manually delete them.
I also had to manually delete the .pyc files in the mediaproxy directory and

Have just tried rebuilding/installing:
python-gnutls-1.1.6, then 
Twisted-8.1.0, then
build_inplace mediaproxy
and I still get the same error when I run media-dispatcher.

Two things that are probably relevant:
1. The usual ./configure; make; make install process that I used for the
source package of gnutls failed to copy gnutls-extra.so file to the Linux
lib path - I eventually copied it manually, but don't feel happy about
having to do that.
2. When I rebuild Twisted-8.1.0, it gives the following error during the
"install" process, but the install script still completes:

[root at opensips02 Twisted-8.1.0]# ./setup.py install
running install
running build
running build_py
running build_ext
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC
-I/usr/include/python2.4 -c conftest.c -o conftest.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC
-I/usr/include/python2.4 -c conftest.c -o conftest.o
running build_scripts
running install_lib
copying build/lib.linux-x86_64-2.4/twisted/python/_epoll.so ->
copying build/lib.linux-x86_64-2.4/twisted/test/raiser.so ->
copying build/lib.linux-x86_64-2.4/twisted/protocols/_c_urlarg.so ->
copying build/lib.linux-x86_64-2.4/twisted/runner/portmap.so ->
to generator_failure_tests.pyc
, line 66
SyntaxError: invalid syntax

I haven't rebuilt/installed python-application or cjson packages since
upgrading gnutls - are they relevant? If so, what is the correct order for
building the various python packages?

John Quick

-----Original Message-----
From: Dan Pascu [mailto:dan at ag-projects.com] 
Sent: 27 November 2008 09:00
To: John.Quick at smartvox.co.uk
Cc: users at lists.opensips.org
Subject: Re: [OpenSIPS-Users] Mediaproxy 2.1.0 on Red Hat/CentOS

The version of libgnutls which the binary part of python-gnutls was 
compiled against is different from the one that is loaded at runtime.
You should install from source all dependencies if the OS doesn't provide 
the proper versions for you.

On Wednesday 26 November 2008, John Quick wrote:
> After installing a bunch of packages and libraries, media-dispatcher is
> almost running, but I get the following error:
> Log opened.
>  Starting MediaProxy Dispatcher 2.1.0
>  Twisted is using selectreactor
>  fatal error: failed to create MediaProxy Dispatcher: ASN1 parser:
> Element was not found.
>  Traceback (most recent call last):
>      --- <exception caught here> ---
>        File "./media-dispatcher", line 52, in ?
>          dispatcher = Dispatcher()
>        File "/usr/local/mediaproxy-2.1.0/mediaproxy/dispatcher.py",
> line 449, in __init__
>          self.cred = X509Credentials(cert_name='dispatcher')
>        File "/usr/local/mediaproxy-2.1.0/mediaproxy/tls.py", line 132,
> in __init__
>          twisted.X509Credentials.__init__(self, self.X509cert,
> self.X509key, [self.X509ca], [self.X509crl])
>        File "/usr/local/mediaproxy-2.1.0/mediaproxy/tls.py", line 99,
> in __get__
>          return descriptor.get()
>        File "/usr/local/mediaproxy-2.1.0/mediaproxy/tls.py", line 82,
> in get self.object = self.klass(f.read())
>        File "<string>", line 1, in __init__
>        File "/usr/lib64/python2.4/site-packages/gnutls/validators.py",
> line 273, in check_args
>          return func(*func_args)
>        File "/usr/lib64/python2.4/site-packages/gnutls/crypto.py", line
> 82, in __init__
>          gnutls_x509_crt_init(byref(self._c_object))
>        File
> "/usr/lib64/python2.4/site-packages/gnutls/library/errors.py", line 64,
> in _check_status
>          raise GNUTLSError(ErrorMessage(retcode))
>      gnutls.errors.GNUTLSError: ASN1 parser: Element was not found.
> It might be a problem with the libraries or packages - they have been
> very difficult to find and install for CentOS. However, it looks more
> like a problem with reading the certificates - I'm using the sample
> certs included with the mediaproxy download. Any ideas or suggestions
> would be most welcome. Thanks.
> John Quick
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


More information about the Users mailing list