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. Support
  3. Turn domain Matrix-Synapse not changing after moving to another my.domain

Turn domain Matrix-Synapse not changing after moving to another my.domain

Scheduled Pinned Locked Moved Solved Support
turn
14 Posts 3 Posters 1.7k Views 3 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.
  • DanTheManD Online
    DanTheManD Online
    DanTheMan
    wrote on last edited by girish
    #1

    Hi there,

    I recently moved the Cloudrons my.domain (Dashboard) to another domain of mine.
    Now after a while i could not connect new calls through Matrix-Synapse so i checked the Turn settings in the config (homeserver.yaml).

    I discovered that it was still pointing to the old my.domain address so i changed it to the new one, but after rebooting Matrix it came back to the old one......

    What to do now.....?

    1 Reply Last reply
    1
    • girishG girish moved this topic from Support on
    • girishG girish moved this topic from Matrix (Synapse/Element) on
    • girishG girish marked this topic as a question on
    • jdaviescoatesJ Offline
      jdaviescoatesJ Offline
      jdaviescoates
      wrote on last edited by
      #2

      I'm not sure but perhaps you need to update the well-known location?

      https://docs.cloudron.io/domains/#well-known-locations

      I use Cloudron with Gandi & Hetzner

      1 Reply Last reply
      0
      • DanTheManD Online
        DanTheManD Online
        DanTheMan
        wrote on last edited by
        #3

        I have checked that one but I think federation still works. It is only the turn server that points to the old domain and will not change to the new one....

        1 Reply Last reply
        1
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by girish
          #4

          @DanTheMan Think this is a bug . We don't seem to update the turn server information when the dashboard domain changes. I will investigate tomorrow and provide a fix/workaround.

          1 Reply Last reply
          3
          • DanTheManD Online
            DanTheManD Online
            DanTheMan
            wrote on last edited by DanTheMan
            #5

            Thanks for checking that Girish 👍

            1 Reply Last reply
            1
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by girish
              #6

              This is a bug and I can reproduce it. A silly workaround:

              • Backup synapse
              • Move synapse to another domain. For example, synapse2.domain.com
              • Create a clone of the backup to the original domain synapse.domain.com

              This should fixup the turn server configuration.

              DanTheManD 1 Reply Last reply
              2
              • DanTheManD Online
                DanTheManD Online
                DanTheMan
                wrote on last edited by DanTheMan
                #7

                Thanks a lot for that Girish 🙏
                I will check on it tommorow and report back when successfully accomplished....

                1 Reply Last reply
                1
                • girishG girish

                  This is a bug and I can reproduce it. A silly workaround:

                  • Backup synapse
                  • Move synapse to another domain. For example, synapse2.domain.com
                  • Create a clone of the backup to the original domain synapse.domain.com

                  This should fixup the turn server configuration.

                  DanTheManD Online
                  DanTheManD Online
                  DanTheMan
                  wrote on last edited by DanTheMan
                  #8

                  @girish
                  In the meantime I was thinking about the domain change (move) for cloning, like you described.

                  But doesn't this interfere with the rules that Synapse has/depends on?

                  I read this (old) article somewhere:

                  Why can't I rename my homeserver?
                  Currently, the homeserver name is assumed never to change. This means that if you rename your server, other servers will think it's a different server.

                  Perhaps in the future we will add an API for changing the homeserver name, but for now this is not supported.

                  https://matrix.org/docs/older/faq/

                  It's an old documentation, but I just want to be on the safe side....

                  girishG 1 Reply Last reply
                  0
                  • DanTheManD DanTheMan

                    @girish
                    In the meantime I was thinking about the domain change (move) for cloning, like you described.

                    But doesn't this interfere with the rules that Synapse has/depends on?

                    I read this (old) article somewhere:

                    Why can't I rename my homeserver?
                    Currently, the homeserver name is assumed never to change. This means that if you rename your server, other servers will think it's a different server.

                    Perhaps in the future we will add an API for changing the homeserver name, but for now this is not supported.

                    https://matrix.org/docs/older/faq/

                    It's an old documentation, but I just want to be on the safe side....

                    girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #9

                    @DanTheMan we are not changing the matrix location. We are simply restoring from latest backup into same location as before. You can delete the synapse2.domain.com in the steps above. So:

                    The end goal is here is just restore from latest backup to synapse.domain.com. This fixes up the turn configuration.

                    • Backup your current synapse located at synapse.domain.com
                    • Stop the synapse app synapse.domain.com
                    • Move synapse to another domain. For example, move it to synapse2.domain.com. The reason for this is to free up synapse.domain.com
                    • Now, create a clone of the backup created in step 1 to synapse.domain.com

                    If everything is fine, you can just delete the app at synapse2.domain.com .

                    DanTheManD 1 Reply Last reply
                    0
                    • girishG girish

                      @DanTheMan we are not changing the matrix location. We are simply restoring from latest backup into same location as before. You can delete the synapse2.domain.com in the steps above. So:

                      The end goal is here is just restore from latest backup to synapse.domain.com. This fixes up the turn configuration.

                      • Backup your current synapse located at synapse.domain.com
                      • Stop the synapse app synapse.domain.com
                      • Move synapse to another domain. For example, move it to synapse2.domain.com. The reason for this is to free up synapse.domain.com
                      • Now, create a clone of the backup created in step 1 to synapse.domain.com

                      If everything is fine, you can just delete the app at synapse2.domain.com .

                      DanTheManD Online
                      DanTheManD Online
                      DanTheMan
                      wrote on last edited by DanTheMan
                      #10

                      @girish I'm a little stuck (not sure) with step 3 and maybe 4:

                      • 3: Move synapse to another domain. For example, move it to synapse2.domain.com. The reason for this is to free up synapse.domain.com

                      How do we move Synapse exactly? By just going to the location of the existing install and change the synapse.domain.com to synapse2.domain.com?
                      Or do we have to install a second app with synapse2.domain.com pointed to it?

                      girishG 1 Reply Last reply
                      0
                      • DanTheManD DanTheMan

                        @girish I'm a little stuck (not sure) with step 3 and maybe 4:

                        • 3: Move synapse to another domain. For example, move it to synapse2.domain.com. The reason for this is to free up synapse.domain.com

                        How do we move Synapse exactly? By just going to the location of the existing install and change the synapse.domain.com to synapse2.domain.com?
                        Or do we have to install a second app with synapse2.domain.com pointed to it?

                        girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by girish
                        #11

                        @DanTheMan said in Turn domain Matrix-Synapse not changing after moving to another my.domain:

                        How do we move Synapse exactly? By just going to the location of the existing install and change the synapse.domain.com to synapse2.domain.com?

                        yes, exactly. Just go to Location view of the app and change the subdomain to synapse2 - https://docs.cloudron.io/apps/#location

                        Then, clone is the clone button in the backup section of the synapse2 app - https://docs.cloudron.io/backups/#clone-app

                        1 Reply Last reply
                        0
                        • DanTheManD Online
                          DanTheManD Online
                          DanTheMan
                          wrote on last edited by DanTheMan
                          #12

                          Everything worked out really good and calling through the Elements app is working again.
                          Thanks for the great and fast support Girish 🙏

                          We can close this one as solved!!

                          1 Reply Last reply
                          2
                          • girishG girish has marked this topic as solved on
                          • girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by
                            #13

                            @DanTheMan thanks! I am working on fixing the bug in any case.

                            1 Reply Last reply
                            2
                            • DanTheManD Online
                              DanTheManD Online
                              DanTheMan
                              wrote on last edited by
                              #14

                              Great👍
                              then we have at least tackled this bug for the upcoming future.

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