Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. MiroTalk
  3. Error installing Miro SFU

Error installing Miro SFU

Scheduled Pinned Locked Moved MiroTalk
70 Posts 11 Posters 19.8k Views 10 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • nebulonN nebulon

    @jdaviescoates that error is known and mostly fixed in Cloudron pending a release, please stop reporting that.

    jdaviescoatesJ Offline
    jdaviescoatesJ Offline
    jdaviescoates
    wrote on last edited by
    #53

    @nebulon I was reporting the fact that the error had gone away, but then it came back again.

    I figured the fix must've already been released (and hence why the error went away), but thanks for the update that the fix for that error hasn't actually been released yet!

    (but something has obviously changed wrt to that error as before it always happened, whereas apparently now it's only intermittent).

    I use Cloudron with Gandi & Hetzner

    1 Reply Last reply
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #54

      Right, so the issue is, that docker uses/used random free ports for logging on the system and sometimes those conflict with the port range for mirotalk. This is why it "randomly" happens. The fix is in the platform, pending a Cloudron release, not a mirotalk package.

      1 Reply Last reply
      2
      • S Offline
        S Offline
        shrey
        wrote on last edited by
        #55

        @nebulon
        Just tried setting up the MiroTalk SFU for the first time.

        I'm a bit surprised that it's marked as stable, as currently, it's pretty impractical trying to get it to work.
        Because:

        1. I was able to get it to work only after repeated cycles of editing the port, and starting Installation.
        2. Even when installed, when i try to restart the app after a modification in the config.js file, the same vicious cycle starts again.

        Is there no workaround for now?

        jdaviescoatesJ 1 Reply Last reply
        0
        • S shrey

          @nebulon
          Just tried setting up the MiroTalk SFU for the first time.

          I'm a bit surprised that it's marked as stable, as currently, it's pretty impractical trying to get it to work.
          Because:

          1. I was able to get it to work only after repeated cycles of editing the port, and starting Installation.
          2. Even when installed, when i try to restart the app after a modification in the config.js file, the same vicious cycle starts again.

          Is there no workaround for now?

          jdaviescoatesJ Offline
          jdaviescoatesJ Offline
          jdaviescoates
          wrote on last edited by
          #56

          @shrey Are you on Cloudron 7.7.2? Because I think the port clash issue is supposed to have been fixed on that.

          I use Cloudron with Gandi & Hetzner

          S 1 Reply Last reply
          1
          • jdaviescoatesJ jdaviescoates

            @shrey Are you on Cloudron 7.7.2? Because I think the port clash issue is supposed to have been fixed on that.

            S Offline
            S Offline
            shrey
            wrote on last edited by
            #57

            @jdaviescoates yes, I'm on 7.7.2

            1 Reply Last reply
            0
            • nebulonN Offline
              nebulonN Offline
              nebulon
              Staff
              wrote on last edited by
              #58

              If this happens again maybe you can run ss -lpn | grep 40092 (change the port depending on the reported port clash). Then check the process id and identify which process/container is occupying that port. So maybe there are other processes which randomly pick ports and caus the conflict, which are not tracked by the platform yet.

              jdaviescoatesJ 1 Reply Last reply
              0
              • nebulonN nebulon

                If this happens again maybe you can run ss -lpn | grep 40092 (change the port depending on the reported port clash). Then check the process id and identify which process/container is occupying that port. So maybe there are other processes which randomly pick ports and caus the conflict, which are not tracked by the platform yet.

                jdaviescoatesJ Offline
                jdaviescoatesJ Offline
                jdaviescoates
                wrote on last edited by
                #59

                @nebulon said in Error installing Miro SFU:

                If this happens again maybe you can run ss -lpn | grep 40092

                Run that where exactly?

                I use Cloudron with Gandi & Hetzner

                1 Reply Last reply
                0
                • nebulonN Offline
                  nebulonN Offline
                  nebulon
                  Staff
                  wrote on last edited by
                  #60

                  on the host system. You may also use other tools like lsof to figure out which process is occupying that port by chance

                  jdaviescoatesJ 1 Reply Last reply
                  0
                  • nebulonN nebulon

                    on the host system. You may also use other tools like lsof to figure out which process is occupying that port by chance

                    jdaviescoatesJ Offline
                    jdaviescoatesJ Offline
                    jdaviescoates
                    wrote on last edited by
                    #61

                    @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 πŸ™‚

                    I use Cloudron with Gandi & Hetzner

                    1 Reply Last reply
                    0
                    • nebulonN Offline
                      nebulonN Offline
                      nebulon
                      Staff
                      wrote on last edited by
                      #62

                      Yes sorry for the confusion, so I mean SSH into the Ubuntu server itself (in contrast to a webterminal into the app container).

                      1 Reply Last reply
                      1
                      • nebulonN nebulon forked this topic on
                      • jdaviescoatesJ Offline
                        jdaviescoatesJ Offline
                        jdaviescoates
                        wrote on last edited by
                        #63

                        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 🀷

                        I use Cloudron with Gandi & Hetzner

                        1 Reply Last reply
                        0
                        • nebulonN Offline
                          nebulonN Offline
                          nebulon
                          Staff
                          wrote on last edited by
                          #64

                          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.

                          M 1 Reply Last reply
                          1
                          • nebulonN nebulon

                            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.

                            M Offline
                            M Offline
                            Meuschke
                            wrote last edited by Meuschke
                            #65

                            @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.

                            jdaviescoatesJ 1 Reply Last reply
                            0
                            • M Meuschke

                              @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.

                              jdaviescoatesJ Offline
                              jdaviescoatesJ Offline
                              jdaviescoates
                              wrote last edited by
                              #66

                              @Meuschke what if you just install a completely new instance of the app? Does it work then?

                              I use Cloudron with Gandi & Hetzner

                              M 1 Reply Last reply
                              0
                              • jdaviescoatesJ jdaviescoates

                                @Meuschke what if you just install a completely new instance of the app? Does it work then?

                                M Offline
                                M Offline
                                Meuschke
                                wrote last edited by
                                #67

                                @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.

                                1 Reply Last reply
                                0
                                • J Offline
                                  J Offline
                                  joseph
                                  Staff
                                  wrote last edited by
                                  #68

                                  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.

                                  MiroTalkM 1 Reply Last reply
                                  1
                                  • M Offline
                                    M Offline
                                    Meuschke
                                    wrote last edited by
                                    #69

                                    @joseph I didn't know that. Thank you. I will reinstall.

                                    1 Reply Last reply
                                    0
                                    • J joseph

                                      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.

                                      MiroTalkM Offline
                                      MiroTalkM Offline
                                      MiroTalk
                                      wrote last edited by
                                      #70

                                      @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 also WebRTCServer 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

                                      1. Open your environment file
                                        In your file manager (or terminal), open the env file for your MiroTalk SFU instance.

                                      2. Add the following line

                                        SFU_SERVER=true
                                        
                                      3. 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.

                                      4. Restart your instance
                                        After saving the env 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 the WebRTCServer concept here:
                                      πŸ‘‰ Mediasoup Discussion: WebRTCServer and Port Binding

                                      1 Reply Last reply
                                      2
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      • Login

                                      • Don't have an account? Register

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • Bookmarks
                                      • Search