Ports not available

wyvasi

Member
Hello!
One of our origin servers has port issues I checked stats and this is what I got:

-----Port Stats-----
ports_media_free=1
ports_media_busy=6
ports_media_quarantine=0
ports_wcs_agents_free=998
ports_wcs_agents_busy=0
ports_wcs_agents_quarantine=0

Do you have any suggestions why this might happen?
Port range from 20000-40000 and is running inside docker. It is not the first time seems like I need to restart the docker container every 1-2 weeks.
On this server we don't play the video only pull the video on edge.
 

Max

Administrator
Staff member
Good day.
Port range from 20000-40000 and is running inside docker.
If you've extended media ports range, and using CDN (or WebRTC pull/push), you should also set a new range for WCS agent ports which are used for that purpose, for example:
Code:
media_port_from=20000
media_port_to=40000
wcs_agent_port_from=44001
wcs_agent_port_to=55000
See also the article How to use Docker with WebRTC in production
 

wyvasi

Member
The error we got on publish or pull was 'No free ports available' forgot to mention. Thanks!
 

Max

Administrator
Staff member
The error we got on publish or pull was 'No free ports available' forgot to mention. Thanks!
Please check media ports configuration as we mentioned above. Also check server log after container start: are there any port binding errors?
Read also this article about WebRTC ports forwarding to docker instance.
 
Top