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. Best practice for migrating apps from one Cloudron to another?

Best practice for migrating apps from one Cloudron to another?

Scheduled Pinned Locked Moved Solved Support
migrationmigrateapps
16 Posts 7 Posters 1.7k Views 7 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.
    • jdaviescoatesJ Offline
      jdaviescoatesJ Offline
      jdaviescoates
      wrote on last edited by jdaviescoates
      #1

      I need to move a bunch of apps from one Cloudron to another.

      What's the best way to do this?

      Struggling to get my head around the correct order to do things in...

      Like, when should I add the domain used for the app to the new server?

      I'm guessing perhaps I should do something like this:

      1. make a backup of the app on the existing server.
      2. install the same version of the same app on the new sever on some temporary domain
      3. import the back of the app
      4. check everything seems to be working (although I guess this will be hard with apps that don't like their domains changing too much, like Mastodon, Peertube etc - but even WordPress I find often has lots of references to the old/ new links all over the place and I tend to need to use something like the Better Search Replace app to find and change them all)
      5. add the relevant domain to the new server
      6. re-create any mailboxes you had set-up on old server at the relevant domain (you may also wish to import email first before actually updating the DNS)
      7. change the domain of the new copy of the app on the new server to the domain it was using on the old domain

      Does that sound about right? πŸ€”

      I use Cloudron with Gandi & Hetzner

      girishG jdaviescoatesJ 2 Replies Last reply
      1
      • robiR Offline
        robiR Offline
        robi
        wrote on last edited by robi
        #2

        Here's the previous thread on this topic with an example flow:
        https://forum.cloudron.io/topic/9347/how-to-automate-migrating-importing-apps-from-cloudron-to-cloudron-via-api

        Conscious tech

        1 Reply Last reply
        1
        • jdaviescoatesJ jdaviescoates

          I need to move a bunch of apps from one Cloudron to another.

          What's the best way to do this?

          Struggling to get my head around the correct order to do things in...

          Like, when should I add the domain used for the app to the new server?

          I'm guessing perhaps I should do something like this:

          1. make a backup of the app on the existing server.
          2. install the same version of the same app on the new sever on some temporary domain
          3. import the back of the app
          4. check everything seems to be working (although I guess this will be hard with apps that don't like their domains changing too much, like Mastodon, Peertube etc - but even WordPress I find often has lots of references to the old/ new links all over the place and I tend to need to use something like the Better Search Replace app to find and change them all)
          5. add the relevant domain to the new server
          6. re-create any mailboxes you had set-up on old server at the relevant domain (you may also wish to import email first before actually updating the DNS)
          7. change the domain of the new copy of the app on the new server to the domain it was using on the old domain

          Does that sound about right? πŸ€”

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

          @jdaviescoates sounds about right. I think you don't need to worry too much about 4 because this will only be "temporary" until you give the app the same domain as before.

          jdaviescoatesJ 1 Reply Last reply
          1
          • girishG girish

            @jdaviescoates sounds about right. I think you don't need to worry too much about 4 because this will only be "temporary" until you give the app the same domain as before.

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

            @girish said in Best practice for migrating apps from one Cloudron to another?:

            I think you don't need to worry too much about 4 because this will only be "temporary" until you give the app the same domain as before.

            Perhaps when it comes to the domain itself there is nothing to worry about, but methinks "check everything seems to be working" is pretty important!

            For example, I just migrated a Ghost app and after the migration it was not longer possible to subscribe to the newsletter.

            In the logs I saw this:

            Sep 08 12:22:56Failed to send email. Reason: Mail command failed: 550 Authenticated user support@bridport.news cannot send mail as ghost@bridport.news.
            Sep 08 12:22:56
            Sep 08 12:22:56"Please see https://ghost.org/docs/config/#mail for instructions on configuring email."
            

            So I edited the App Email settings and changed ghost.app to support:

            eaa8b8b5-be52-4f67-84ff-7f140f20da43-image.png

            And then it started working again.

            But the odd thing is that in the App Email settings on the old server it has always been and is still ghost.app

            I can only guess that it was working there because I had set-up the required email addresses that are set in the portal settings in Ghost:

            41999d97-12f0-41e3-b47b-b95114bcdca2-image.png

            I guess when Cloudron couldn't find that mailbox on the new server it tried to just send as 'ghost.app' instead? 🀷

            For good measure I think I'll add a step to my post above to re-created any needed mailboxes before updating the location to the new domain...

            I use Cloudron with Gandi & Hetzner

            girishG 1 Reply Last reply
            1
            • jdaviescoatesJ jdaviescoates

              I need to move a bunch of apps from one Cloudron to another.

              What's the best way to do this?

              Struggling to get my head around the correct order to do things in...

              Like, when should I add the domain used for the app to the new server?

              I'm guessing perhaps I should do something like this:

              1. make a backup of the app on the existing server.
              2. install the same version of the same app on the new sever on some temporary domain
              3. import the back of the app
              4. check everything seems to be working (although I guess this will be hard with apps that don't like their domains changing too much, like Mastodon, Peertube etc - but even WordPress I find often has lots of references to the old/ new links all over the place and I tend to need to use something like the Better Search Replace app to find and change them all)
              5. add the relevant domain to the new server
              6. re-create any mailboxes you had set-up on old server at the relevant domain (you may also wish to import email first before actually updating the DNS)
              7. change the domain of the new copy of the app on the new server to the domain it was using on the old domain

              Does that sound about right? πŸ€”

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

              @jdaviescoates said in Best practice for migrating apps from one Cloudron to another?:

              re-create any mailboxes you had set-up on old server at the relevant domain (you may also wish to import email first before actually updating the DNS)

              I went ahead and updated the DNS before realising I should do this first! 🀦

              What should I do now if I want/ need to import the old emails? (in this case I don't think I really need to, but be good to know). Go back to the old server and re-set-up the DNS there, do the imports and then set-up the DNS on the new server again? 🀷

              I use Cloudron with Gandi & Hetzner

              1 Reply Last reply
              0
              • jdaviescoatesJ jdaviescoates

                @girish said in Best practice for migrating apps from one Cloudron to another?:

                I think you don't need to worry too much about 4 because this will only be "temporary" until you give the app the same domain as before.

                Perhaps when it comes to the domain itself there is nothing to worry about, but methinks "check everything seems to be working" is pretty important!

                For example, I just migrated a Ghost app and after the migration it was not longer possible to subscribe to the newsletter.

                In the logs I saw this:

                Sep 08 12:22:56Failed to send email. Reason: Mail command failed: 550 Authenticated user support@bridport.news cannot send mail as ghost@bridport.news.
                Sep 08 12:22:56
                Sep 08 12:22:56"Please see https://ghost.org/docs/config/#mail for instructions on configuring email."
                

                So I edited the App Email settings and changed ghost.app to support:

                eaa8b8b5-be52-4f67-84ff-7f140f20da43-image.png

                And then it started working again.

                But the odd thing is that in the App Email settings on the old server it has always been and is still ghost.app

                I can only guess that it was working there because I had set-up the required email addresses that are set in the portal settings in Ghost:

                41999d97-12f0-41e3-b47b-b95114bcdca2-image.png

                I guess when Cloudron couldn't find that mailbox on the new server it tried to just send as 'ghost.app' instead? 🀷

                For good measure I think I'll add a step to my post above to re-created any needed mailboxes before updating the location to the new domain...

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

                @jdaviescoates Oh, I think this is a bug in import app. It's not importing the mailbox configuration. I will try to reproduce.

                jdaviescoatesJ 1 Reply Last reply
                1
                • girishG girish

                  @jdaviescoates Oh, I think this is a bug in import app. It's not importing the mailbox configuration. I will try to reproduce.

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

                  @girish said in Best practice for migrating apps from one Cloudron to another?:

                  not importing the mailbox configuration.

                  Do you mean the app email settings?

                  I use Cloudron with Gandi & Hetzner

                  girishG 1 Reply Last reply
                  0
                  • jdaviescoatesJ jdaviescoates

                    @girish said in Best practice for migrating apps from one Cloudron to another?:

                    not importing the mailbox configuration.

                    Do you mean the app email settings?

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

                    @jdaviescoates yes, the app email settings is not imported.

                    jdaviescoatesJ 1 Reply Last reply
                    1
                    • girishG girish

                      @jdaviescoates yes, the app email settings is not imported.

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

                      @girish said in Best practice for migrating apps from one Cloudron to another?:

                      @jdaviescoates yes, the app email settings is not imported.

                      Perhaps that is indeed the case, in which case I'm glad I've inadvertently found a bug!

                      But in my case (as mentioned above) the original app I imported still actually had ghost.app in the app email settings too.

                      I think the cause of my issue may have been that I hadn't created the relevant mailboxes for the domain which the app (in the Ghost settings, not the Cloudron App Email setting) was configured to use.

                      Be nice if when importing an app it could somehow know about and import related mailboxes on that domain too though...

                      I use Cloudron with Gandi & Hetzner

                      girishG 1 Reply Last reply
                      0
                      • jdaviescoatesJ jdaviescoates

                        @girish said in Best practice for migrating apps from one Cloudron to another?:

                        @jdaviescoates yes, the app email settings is not imported.

                        Perhaps that is indeed the case, in which case I'm glad I've inadvertently found a bug!

                        But in my case (as mentioned above) the original app I imported still actually had ghost.app in the app email settings too.

                        I think the cause of my issue may have been that I hadn't created the relevant mailboxes for the domain which the app (in the Ghost settings, not the Cloudron App Email setting) was configured to use.

                        Be nice if when importing an app it could somehow know about and import related mailboxes on that domain too though...

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

                        @jdaviescoates said in Best practice for migrating apps from one Cloudron to another?:

                        I think the cause of my issue may have been that I hadn't created the relevant mailboxes for the domain which the app (in the Ghost settings, not the Cloudron App Email setting) was configured to use.

                        Ah! I misread your issue then. You are right, that mailbox has to be created manually. Mmmm... I wonder how the user can be reminded of this. I think for a start having this in the doc page as a checklist (which is what this thread is about!) will help.

                        jdaviescoatesJ 1 Reply Last reply
                        1
                        • girishG girish

                          @jdaviescoates said in Best practice for migrating apps from one Cloudron to another?:

                          I think the cause of my issue may have been that I hadn't created the relevant mailboxes for the domain which the app (in the Ghost settings, not the Cloudron App Email setting) was configured to use.

                          Ah! I misread your issue then. You are right, that mailbox has to be created manually. Mmmm... I wonder how the user can be reminded of this. I think for a start having this in the doc page as a checklist (which is what this thread is about!) will help.

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

                          @girish said in Best practice for migrating apps from one Cloudron to another?:

                          Ah! I misread your issue then.

                          Yeah, I think you missed or misread this bit:

                          @jdaviescoates said in Best practice for migrating apps from one Cloudron to another?:

                          But the odd thing is that in the App Email settings on the old server it has always been and is still ghost.app

                          I can only guess that it was working there because I had set-up the required email addresses that are set in the portal settings in Ghost:

                          41999d97-12f0-41e3-b47b-b95114bcdca2-image.png

                          I guess when Cloudron couldn't find that mailbox on the new server it tried to just send as 'ghost.app' instead? 🀷

                          But yeah, as you say, would be good to somehow remind users this might need to be done too, like you say:

                          @girish said in Best practice for migrating apps from one Cloudron to another?:

                          Mmmm... I wonder how the user can be reminded of this. I think for a start having this in the doc page as a checklist (which is what this thread is about!) will help.

                          Agreed πŸ™‚

                          But maybe whenever importing an app a pop-up could appear saying something like "you might also need to recreate mailboxes on this domain" or something? 🀷

                          I use Cloudron with Gandi & Hetzner

                          1 Reply Last reply
                          0
                          • sponchS Offline
                            sponchS Offline
                            sponch
                            wrote on last edited by
                            #12

                            Trying to move Mastodon to another Cloudron (same domain). The domain is already embedded in both Cloudron instances (DNS via API (Hetzner). Shouldn't it be possible with only steps 1-3 from above's guide?

                            humptydumptyH 1 Reply Last reply
                            1
                            • sponchS sponch

                              Trying to move Mastodon to another Cloudron (same domain). The domain is already embedded in both Cloudron instances (DNS via API (Hetzner). Shouldn't it be possible with only steps 1-3 from above's guide?

                              humptydumptyH Offline
                              humptydumptyH Offline
                              humptydumpty
                              wrote on last edited by
                              #13

                              @sponch If the domain is already added on both Cloudrons, then you're correct, steps 1-3 would do the trick.

                              1 Reply Last reply
                              1
                              • hpz24H Offline
                                hpz24H Offline
                                hpz24
                                wrote on last edited by
                                #14

                                Now I'm curious: does an app actually survive the move to another cloudron instance with a different domain?
                                Or is this a case-by-case story?

                                humptydumptyH J 2 Replies Last reply
                                1
                                • hpz24H hpz24

                                  Now I'm curious: does an app actually survive the move to another cloudron instance with a different domain?
                                  Or is this a case-by-case story?

                                  humptydumptyH Offline
                                  humptydumptyH Offline
                                  humptydumpty
                                  wrote on last edited by
                                  #15

                                  @hpz24 when you import an app backup, it will restore to the original domain. You can then change the domain but whether it’s a problem or not depends on the app. For example, wordpress plays nice but matrix (synapse) will not.

                                  1 Reply Last reply
                                  3
                                  • hpz24H hpz24

                                    Now I'm curious: does an app actually survive the move to another cloudron instance with a different domain?
                                    Or is this a case-by-case story?

                                    J Offline
                                    J Offline
                                    joseph
                                    Staff
                                    wrote on last edited by
                                    #16

                                    @hpz24 said in Best practice for migrating apps from one Cloudron to another?:

                                    Now I'm curious: does an app actually survive the move to another cloudron instance with a different domain?

                                    In most apps, yes. The federated apps like mastodon and matrix are a special case. They don't support changing the domain . Even though the app itself will work after changing the domain, expect bad things to happen (tm) after domain change. For example, not seeing proper history of old message etc. I haven't tried this much, so this is just a warning really.

                                    1 Reply Last reply
                                    3
                                    • girishG girish marked this topic as a question on
                                    • girishG girish has marked this topic as solved on
                                    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