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. Issues on server migration

Issues on server migration

Scheduled Pinned Locked Moved Unsolved Support
installrestore
2 Posts 2 Posters 666 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.
    • C Offline
      C Offline
      CarbonBee
      wrote on last edited by girish
      #1

      Hi,

      I've got an issue when I want to restore a Cloudron backup on another server. I want to clone my Cloudron server A on another server B : it's what the doc calls "migration" .
      I did that to test a complete backup of my main server, while keeping it alive.

      What is going on:

      • Backup of Cloudron A (running on Ubuntu 16.04)
      • Installation of same version Cloudron on ther fresh server B (Ubuntu 18.04)
      • Copying Cloudron A backup on server B
      • Setting up the DNS of Cloudron B
      • Using "Looking to restore" and providing all information
      • Near the end, a message saying "Not found" is displayed
      • Going to my.<server B>, login prompt is displayed, but it redirects to my.<server A>/login_callback.html?token=<??>&state=<??>
      • Subdomains B are unreachable, returning 404 errors
      • After rebooting, my.<server B>/#/apps is reachable
      • Cloudron B has the same Cloudron ID as Cloudron A
      • Subdomains are reachable, but all application are in "Restoring (pending)" status
      • When doing cloudron inspect:
        • apiEndpoint is <server B>
        • every <app>.domain is set to <server A> and <app>.fqdn are <app>.<server A>
      • Users on server B are correct as well as groups
      • When going to "Domains & Certs", an "Internal Error" message appears and "Domains" section is empty
      • When adding domain <server B> with a wildcard DNS API provider, it still displays "Internal Error" and an empty domain list
      • When repairing applications and setting their domain to <server B>, they are still in "error" status
      • When changing all database entries where <server A> was mentionned to <server B>, they are still in "error" status
      • Deleting all application then restoring one by one from backup seemed to work, but not for a long time. After a few day, more than half of the applications were in "error" status.

      One should be able to clone a Cloudron server easily from a backup, even if the DNS is different. And what are the issue of having two different Cloudron servers with the same ID ?

      I submit a new issue for this.

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

        @CarbonBee Did I understand correctly that the DNS of cloudron A and Cloudron B are different above?

        If so, the behavior is expected (not saying it is correct or even good). Currently, there is no easy way to easily 'migrate' domains - it is only easy to migrate a Cloudron from one server to another provided that all the DNS remains the same.

        Can you explain your use case a bit more so we can try to come up with a solution together? I guess you are trying to test your backups? How can we make this work when Cloudron has multiple domains? Once you restore to another server, Cloudron will do the DNS setup of apps automatically and it will end up re-configuring the DNS of the apps to point to this new server.

        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