Self hosted hardware upgrade
-
For me the Migration of Cloudron on a new operating system / New Hardware proved to be exceptionally challenging, and numerous errors were encountered. Please refrain from deleting anything until you can verify a successful transition, as I was compelled to revert to my old server. I was initially using Ubuntu 20.04 and aimed to conduct a fresh install on Ubuntu 22.04 but experienced failure four times. The primary reason for these failures was the malfunctioning of the restore functionality; the system would either become unresponsive or fail entirely. Additionally, the 'restore from file' feature also didn't work correctly; it did not register that a file was attached from NFS, despite properly entering all recovery path files and recovery key passphrases.
I proceeded to update the existing server, following the guidelines provided in the documents, but discovered gaps in the documentation. The upgrade prompted several inquiries about node default or ignore settings, which I navigated as best I could. The second attempt brought success, but there was still an application that failed to load.
I'm looking forward to comparing your results, but please ensure to keep the old machine intact until you have verified that every element is functioning seamlessly.
-
Against that, I’ve migrated 4 times flawlessly.
But don’t change os version and as stated, don’t delete anything until verified ! -
Actually I wouldn't install/restore at all both are x86-64 architectures. If the older SSD is decent, you could just put that additionally into the new system and use as rootfs, then you can move dockerimages and apps onto the faster nvme disk. Or otherwise I would put both disks temporarily onto the same system and copy over the rootfs from the old to the new disk, then install a bootloader on the new one. Last time I used just the
dd
comand to copy the disks whole, which worked fine, but also the bootloader had to be reconfigured to pick the right root disk identifier. -
Yeah I could easily image the older SSD to the new one.. One other consideration, is that its IPv6 enabled, using digital ocean DNS, will the customised records updated to the presumably new ipv6 addresses the new ethernet will have assigned ?
-
So I imaged the 240 SATA SSD to a 1TB NVME SSD... and booted the new machine.
During boot I see thisNot sure where I can edit the disk UUID to match ?
I found this guide https://www.tecmint.com/change-uuid-of-partition-in-linux/is this the only thing I will need to manually reconfigure?
But am now wondering if I just went back to the original plan?
use the backup to restore, building a fresh install with same installer version ?I also have 2.5Gb ethernet on the new system.
-
@AartJansen said in Self hosted hardware upgrade:
Not sure where I can edit the disk UUID to match ?
I think this is in /etc/fstab . But just to double check, you are having trouble booting linux correct?
-
Awesome, I edited fstab to reflect the new UUID of the VFAT partition.. and that error is gone. I also manage to install the new ethernet driver so my new cloudron is getting an IP from DHCP..
Next how do I login ? If I use the new IP from a browser I get...
"You are seeing this page because the DNS record of 192.168.1.39 is set to this server's IP but Cloudron has no app configured for this domain."I just want to make sure its working as due to needing the old server runnining again, the image on the new server is missing the latest emails, etc.
-
@AartJansen Cloudron is already installed and setup it seems. You have to use my.domain.com to access the dashboard (and not the IP). Accessing by IP is only valid during setup time.
-
ok, thanks for that, I'll stop trying to run more checks, and just fire it up, do a restore. See what happens.
-
Yeah thats a horrible failure then, its main page is working, but most of my 12 apps are "not responding" and there doesn't seem to be a way to do a restore of my (everything, but especially mail ) data ?
-
What‘s in the logs?
Are services running?
How long have you given the services time to come up? -
Task Error
If a configuration, update, restore or backup action resulted in an error, you can retry the task.
An error occurred during the resize operation: Addons Error: Network error setting up mysql: connect ECONNREFUSED 172.18.30.1:3000
Thats for roundcube
-
I found postgresql doing this...
Oct 12 18:45:13Resetting root password
Oct 12 18:45:20Detected existing installation
Oct 12 18:45:20Resetting root password -
Your services overview? All green?
-
Nah, a few things like sql to be working..
-
Ok, your database services are not running - what's in the logs there?
-
girish sorted it remotely. there was some corruption. needed to restore from backup. Glad to have the support subscription.
-
-