Migrating Nextcloud to a different Cloudron has resulted in all the Nextcloud user's usernames having _xxxx appended at the end
-
This is what I did:
Took a backup of Nextcloud on the old Cloudron server.
Imported the backup of Nextcloud on the new Cloudron server.I could then login as one of the users on the new Cloudron, but I wasn't an admin as I should've been.
I tried adding my username as an admin using:
sudo -u www-data php -f /app/code/occ group:adduser admin <username> -n
But that didn't seem to work.
So in the end I recreated the admin user and added that user to the admin group, then I could finally login as an admin.
When I go and look at the list of users, they are all there, but every single one has got:
oldusername_1234
i.e. all the the usernames have had an
_
and for random numbers appended to the end!The bizarre thing is that even though my new username appears to be
jdaviescoates_8530
I still seem able to login with justjdaviescoates
What is going on?
-
@jdaviescoates said in Migrating Nextcloud to a different Cloudron has resulted in all the Nextcloud user's usernames having _xxxx appended at the end:
The bizarre thing is that even though my new username appears to be jdaviescoates_8530 I still seem able to login with just jdaviescoates
And I just impersonated another user too, same thing.
Perhaps that means I just don't have to worry about this. But it's still all a bit odd and disconcerting.
Why have all the usernames now got
_xxxx
appended to them?
Why is Nextcloud ignoring the_xxxx
part of the username when logging in?So many questions!
-
Does your installation have a file
/app/data/.ldap_uid
? Long time ago, we used to use Cloudron user id to identify users. While this is technically more correct, it made it hard to migrate across Cloudrons. We have since change the package long time to user username instead. Using username makes it more portable, as long as the new Cloudron and old Cloudron use the same usernames. -
-
@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 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...
Just to add more info here, I can't fully remember the details, but I'm pretty sure that didn't help as in the end I gave up trying to get this to work.
I'm pretty sure I tried it again the other way around (creating users with the exact same usernames and in the exact same groups etc) and hit exactly the same issue.