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

Adrian Georgescu ag at ag-projects.com
Wed Jan 6 21:57:03 EST 2021

This was a bug.

You must update to the latest mediaproxy version:

sudo apt update 
sudo apt install mediaproxy-relay mediaproxy-common mediaproxy-dispatcher


> 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/ <http://mediaproxy.ag-projects.com/installation-guide/> and https://github.com/AGProjects/mediaproxy <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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210106/18b19a9e/attachment.html>

More information about the Users mailing list