All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server
-
This is even more concerning that the post-migration username issue!
As far as I can tell none of the folders and files that were in the Nextcloud before migrating it to a new Cloudron server have been migrated over with it
(but all the pointless annoying default Nextcloud files are all there again)
Luckily I've not actually switched the domain over and the old version of the app is still live and running on the old Cloudron server, but I need to get this working and at present it just isn't, at all.
-
This is really the same issue as https://forum.cloudron.io/topic/10107/migrating-nextcloud-to-a-different-cloudron-has-resulted-in-all-the-nextcloud-user-s-usernames-having-_xxxx-appended-at-the-end . It's thinking of your old Cloudron users and new Cloudron users as different.
-
@girish thanks, as I said there:
@jdaviescoates said in Migrating Nextcloud to a different Cloudron has resulted in all the Nextcloud user's usernames having _xxxx appended at the end:
@girish said in Migrating Nextcloud to a different Cloudron has resulted in all the Nextcloud user's usernames having _xxxx appended at the end:
as long as the new Cloudron and old Cloudron use the same usernames.
I think this is probably the issue. I think I imported the backup before importing all the users! I've now imported all the users, uninstalled the broken install, and am currently re-importing the backup again...
-
@jdaviescoates what do you mean by importing all users? Are you referring to Cloudron side? Note that importing users does not change the unique uid (this is a unique id generated on the fly). You will hit the same issue again.
Any reason why you are not doing Cloudron level migration/restore and instead doing app by app migration ? If you do Cloudron restore, the uids are retained and will be the same in the new server also.
-
@girish said in All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server:
@jdaviescoates what do you mean by importing all users?
I'm mean using the Cloudron export/ import users features here:
@girish said in All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server:
Note that importing users does not change the unique uid (this is a unique id generated on the fly). You will hit the same issue again.
Oh, damn!
@girish said in All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server:
Any reason why you are not doing Cloudron level migration/restore and instead doing app by app migration ?
Yes, because I'm retiring one barely used Cloudron completely and moving the apps over to my primary Cloudron which is now on a dedicated server with spare capacity.
Same thing with another Cloudron server that just wasn't powerful enough for PeerTube.
Basically I'm moving all the apps in 2 small Cloudrons into a third (my main, primary) big Cloudron.
-
@girish said in All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server:
You will hit the same issue again.
Confirmed
So is it not possible to move an instance of Nextcloud from one Cloudron to another? Because I really need to do that, twice.
Now at a total loss as to what to do
-
@jdaviescoates that makes sense. So, I recommend one of these:
-
This depends on how much you use nextcloud. Just setup a fresh nextcloud and import things over from your previous install. Most things have import/export . For files, since you already installed a broken one, it already has the files. Just cp over all your files from broken install to the fresh one. After you copy files, https://docs.cloudron.io/apps/nextcloud/#rescan-files in web terminal. Note that you will have to also re-share stuff if you use that feature.
-
Alternately, you have to wait for us to investigate if the situation has changed wrt migrating users from uid based installations .
-
-
@girish said in All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server:
@jdaviescoates that makes sense. So, I recommend one of these:
- This depends on how much you use nextcloud. Just setup a fresh nextcloud and import things over from your previous install. Most things have import/export . For files, since you already installed a broken one, it already has the files. Just cp over all your files from broken install to the fresh one. After you copy files, https://docs.cloudron.io/apps/nextcloud/#rescan-files in web terminal. Note that you will have to also re-share stuff if you use that feature.
OK, I might do that. Thankfully the two instances of Nextcloud I need to migrate aren't very large nor very actively used.
- Alternately, you have to wait for us to investigate if the situation has changed wrt migrating users from uid based installations .
That'd be great. Ideally Nextcloud on Cloudron would be properly portable like most other apps seem to be.
For now I'm just going to do nothing and leave the Nexcloud apps where there are (but do really want to move them so I can save money by cancelling the VPS servers they are currently on)
-
@girish said in All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server:
Alternately, you have to wait for us to investigate if the situation has changed wrt migrating users from uid based installations .
Out of interest (because it came up again here did you ever get around to investigating this?
And re "uid based installations" - is that some legacy thing? i.e. are there non-"uid based installations" - and were you referring to installations of Nextcloud or installations of Cloudron?
I'm thinking/ hoping that perhaps you meant uid installations of Nextcloud and that was a legacy thing and now they aren't like that and perhaps Nextcloud is portable from one Cloudron server to another? But I'm not at all clear
-