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
  • 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. Syncthing
  3. Running 2 instances of Syncthing on 1 server

Running 2 instances of Syncthing on 1 server

Scheduled Pinned Locked Moved Unsolved Syncthing
6 Posts 2 Posters 1.6k Views 2 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.
  • L Offline
    L Offline
    lucidfox
    wrote on last edited by
    #1

    I'm trying to run a second instance of Syncthing on a server (installed on another domain). I set the sync port in Cloudron to a non-standard port '22846' while setting up the second instance, but it just isn't able to connect to other devices. Is this because other ports apart from '22000' are blocked? In the app config page it says 'Port over which syncthing will exchange data (do not disable) (1024 - 65535)'

    syncthing on my desktop reports these errors:
    tcp://x.xx.xxx.xx:22846
    No connection could be made because the target machine actively refused it
    tcp://default:22846
    no such host (11:15:21)

    syncthing on cloudron reports this error:
    tcp://xxx.xxx.xxx.xxx:22846
    no route to host (11:18:17)

    Any help figuring this out will be much appreciated. Thanks.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lucidfox
      wrote on last edited by
      #2

      Changing the Sync Protocol Listen Addresses in the Syncthing settings 'Connections' tab to 'default' seems to have done the trick.

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

        Thanks for sharing that information. Just to confirm, does that change also survive app restarts?

        L 1 Reply Last reply
        0
        • nebulonN nebulon

          Thanks for sharing that information. Just to confirm, does that change also survive app restarts?

          L Offline
          L Offline
          lucidfox
          wrote on last edited by lucidfox
          #4

          @nebulon No, the port gets reset to the one defined on the Cloudron dashboard when restarting the app (and there is only 1 listener listed on Syncthing). But the connection to the syncthing instances on my other devices work fine after that, even though they didn't initially on that port.

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

            Actually it has nothing to do with 2 instances on one server. Essentially it looks like the initial handshake between server and device does not work when the app is not on the default port. Once the handshake is performed it works regardless of port changes. This might just be a syncthing bug. Not sure yet.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              lucidfox
              wrote on last edited by
              #6

              That does seem to make sense. I just wanted to mention the second instance, as the default port wasn't an option.

              1 Reply Last reply
              0
              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