Error installing Miro SFU
-
on the host system. You may also use other tools like
lsof
to figure out which process is occupying that port by chance@nebulon said in Error installing Miro SFU:
on the host system
That still isn't very clear, but I think you mean SSH into the server, and run it there, right?
I don't even have this problem at present, just asking for the greater good
-
N nebulon forked this topic on
-
I just spotted that my MiroTalk has errored out with this again:
Docker Error: (HTTP code 500) server error - driver failed programming external connectivity on endpoint 16628ecd-d520-4174-ab00-d1eee973101a (8041bbc62efcf050c988cabb0c91fb4d516ac1b3076532b1d284c4f34fadf506): failed to bind port 0.0.0.0:40020/tcp: listen tcp4 0.0.0.0:40020: bind: address already in use
Hitting the retry button in repair didn't work the first time, but it did work the second time
-
Yes this is a known issue we have seen rarely. Somehow docker hasn't freed up the port yet. A retry fixes the issue, but we haven't been able to reproduce this reliably for debugging and fixing.
-
@nebulon for me the retry won't fix that issue. Do you want to take a look? I have got Version v9.0.0 and after automatic backup the app start failed yesterday. Today I restarted the whole Server, but the app start keeps failing.
@Meuschke what if you just install a completely new instance of the app? Does it work then?
-
@Meuschke what if you just install a completely new instance of the app? Does it work then?
@jdaviescoates I haven't tried yet. But I think this will work. But I thought it was a good way to test and debug, because retry don't fix the error.
-
I think this issue was boiled down to the usage of ephermeral ports . That port which you are trying to install mirotalk in is in use by some other process . See https://forum.cloudron.io/topic/14259/sftpgo-or-mirotalk-sfu-not-starting-because-they-use-ephemeral-ports/ . In essence, use ports < 32767 . The coming version already shows a warning when you try this range.
-
I think this issue was boiled down to the usage of ephermeral ports . That port which you are trying to install mirotalk in is in use by some other process . See https://forum.cloudron.io/topic/14259/sftpgo-or-mirotalk-sfu-not-starting-because-they-use-ephemeral-ports/ . In essence, use ports < 32767 . The coming version already shows a warning when you try this range.
@joseph said in Error installing Miro SFU:
I think this issue was boiled down to the usage of ephermeral ports . That port which you are trying to install mirotalk in is in use by some other process . See https://forum.cloudron.io/topic/14259/sftpgo-or-mirotalk-sfu-not-starting-because-they-use-ephemeral-ports/ . In essence, use ports < 32767 . The coming version already shows a warning when you try this range.
In case
MiroTalk SFU
support alsoWebRTCServer mode
:How to Enable WebRTCServer Mode in MiroTalk SFU (Use Fewer Ports)
If you want to reduce the number of ports used by MiroTalk SFU and make it easier to scale, you can enable the WebRTCServer Mode. This mode lets the internal WebRTC server handle all the media traffic, meaning you donβt need big port ranges anymore.
οΈ Step-by-Step Setup
-
Open your environment file
In your file manager (or terminal), open theenv
file for your MiroTalk SFU instance. -
Add the following line
SFU_SERVER=true
-
Understand the new port behavior
-
If you start from port
25000
, hereβs what happens:- 1 CPU β 1 worker β uses port 25000
- 2 CPUs β 2 workers β use ports 25000β25001
- and so onβ¦
Each worker uses only one port, not a whole range.
The WebRTCServer manages all internal media traffic automatically.
MiroTalk SFU keeps working just like before only the port handling changes.
-
-
Restart your instance
After saving theenv
file, restart your MiroTalk SFU instance.
Benefits
Fewer open ports β simpler firewall setup
Less chance of port conflicts
Better scalability β easy to scale by CPU count
Cleaner and more secure port configuration
π§ Notes
This mode is still being tested, but early results look promising.
You can learn more about theWebRTCServer
concept here:
Mediasoup Discussion: WebRTCServer and Port Binding
-