[OpenSIPS-Users] Mediaproxy Relay start error - 'MediaRelayBase' is not defined

Mark Allen mark at allenclan.co.uk
Thu Jan 7 08:30:16 EST 2021


Hi Adrian - thanks for getting back to me

I'm getting an unexpected error on apt-get update using the following in
sources.list...

    # AG Projects software
    deb http://ag-projects.com/debian unstable main
    deb-src http://ag-projects.com/debian unstable main

...I get...

    Err:10 https://ag-projects.com/debian unstable Release
         404  Not Found [IP: 85.17.186.10 443]
    E: The repository 'http://ag-projects.com/debian unstable Release' no
longer has a Release file.

...I've checked with nmap and I can see port 443 on 85.17.186.10

I've set it to use 'buster' instead of 'unstable' ('buster' was previously
giving me a similar error)...

    # AG Projects software
    deb http://ag-projects.com/debian buster main
    deb-src http://ag-projects.com/debian buster  main

...and that seems to now be working as I get...

    Hit:5 https://ag-projects.com/debian buster InRelease

...and when I install packages I'm seeing...

    Get:1 https://ag-projects.com/debian buster/main amd64
mediaproxy-common amd64 4.0.5buster [63.1 kB]
    Get:2 https://ag-projects.com/debian buster/main amd64
mediaproxy-dispatcher all 4.0.5buster [18.1 kB]
    Get:3 https://ag-projects.com/debian buster/main amd64 mediaproxy-relay
all 4.0.5buster [18.6 kB]
    Fetched 99.8 kB in 0s (535 kB/s)

...so hopefully I'm good to go now.

Thanks for your help. I'll post a follow-up once I've got it up and running








On Wed, 6 Jan 2021 at 21:59, Adrian Georgescu <ag at ag-projects.com> wrote:

> This was a bug.
>
> You must update to the latest mediaproxy version:
>
> sudo apt update
> sudo apt install mediaproxy-relay mediaproxy-common mediaproxy-dispatcher
>
> Regards,
> Adrian
>
> On 6 Jan 2021, at 12:59, Mark Allen <mark at allenclan.co.uk> wrote:
>
> Hi all - not sure what I'm missing here...
>
> I'm installing Mediaproxy onto our Debian Buster box which is also running
> OpenSIPS 3.1 but when I start the relay I'm getting an error in syslog...
>
> 15:40:07 opensipsx media-relay[4983]: INFO     Starting MediaProxy Relay
> 4.0.4
> 15:40:07 opensipsx media-relay[4983]: INFO     Set resource limit for
> maximum open file descriptors to 11000
> 15:40:07 opensipsx media-relay[4983]: CRITICAL Failed to create MediaProxy
> Relay: name 'MediaRelayBase' is not defined
> 15:40:07 opensipsx media-relay[4983]: ERROR    Traceback (most recent call
> last):#012ERROR      File "/usr/bin/media-relay", line 100, in
> <module>#012ERROR        from mediaproxy.relay import MediaRelay#012ERROR
>    File "/usr/lib/python3/dist-packages/mediaproxy/relay.py", line 290, in
> <module>#012ERROR        class MediaRelay(MediaRelayBase):#012ERROR
>  NameError: name 'MediaRelayBase' is not defined
> 15:40:07 opensipsx systemd[1]: mediaproxy-relay.service: Main process
> exited, code=exited, status=1/FAILURE
> 15:40:07 opensipsx systemd[1]: mediaproxy-relay.service: Failed with
> result 'exit-code'.
>
> I'm starting the relay with the command...
>
> systemctl start mediaproxy-relay
>
> ...I installed Mediaproxy using the Debian package using the instructions
> at http://mediaproxy.ag-projects.com/installation-guide/ and
> https://github.com/AGProjects/mediaproxy. mediaproxy-dispatcher is
> starting successfully.
>
> In the /etc/mediaproxy/config.ini file - everything is left at the default
> setting except for...
>
> dispatchers = xxx.xxx.xxx.xxx
> advertised_ip = xxx.xxx.xxx.xxx
>
> Certificates are in place in /etc/mediaproxy/tls
>
>
> Anybody got any ideas about where I've gone wrong????
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210107/5abab35e/attachment.html>


More information about the Users mailing list