Solved User management changed when app moved from one cloudron to another
While cleaning up a number of old cloudrons merging them into one new cloudron (2.1.1) where I try to host several domains, I tried to move the taiga app from old to new cloudron using Cloudron CLI tool. The old Taiga was set to handle its own user management, but when it is moved to the new cloudron it automatically get changed to "Allow all users from this cloudron"
This also happens to other apps (Rocket.Chat, Etherpad, and naked domain Wordpress so far) when moved from one cloudron to another, and is a serious problem. App users that has no user account in Cloudron will not get access to that app any longer, including myself.
@stoccafisso When you install apps using the CLI tool, it uses Cloudron SSO by default. Use
cloudron install --no-sso --backup <id>and that will solve your problem.
@girish Tank you. I apologise for my ignorance. I will try the --no-sso part
@girish does this also apply to NextCloud ?
I have moved my nextcloud app to another cloudron but I can't login anymore and i'm wondering how to recover my access, I still have the old container app running in the old cloudron, but no matter what I try I can't login on the second cloudron using the same credentials, even tho, users match on both side.
Anything I'm missing?
For apps, accounts are matched by username, so if the same users have the same username on different Cloudrons then they should be correctly mapped.
@nebulon Interesting, because that's exactly the case, but I cannot login, even the original admin account, does not work and the logs are not being particularly useful.
I simply installed Nextcloud on the other cloudron, then I restored the backup using the UI, container setting are the same then the other cloudron, so i'm not sure what I'm doing wrong
@rmdes just to confirm, this is with both instances using Cloudron usermanagement? The admin account is never part of LDAP so you should be able to use the
occtool to set the password for that one.
@nebulon Yes in both cases it use cloudron users management.
I managed to create a user group and then added this group and their users to the app management itself, I managed to login, but each users has no files, this is like a new nextcloud install, even tho the files, they are inside the container, I can see the files from the Cloudron File explorer, but when I login with the user that was the original owner of these files, there is nothing, but default nextcloud files.
I was about to delete the original app on the original cloudron, but now I'm waiting because I could have lost everything. I'm not sure what I can do next so that all the files are restored to each user, this is worrying.
So I used the cloudron file browser to try and move the "files" folder from my previous user to the newly mapped user folder generated by nextcloud on the new nextcloud instance.
I can login but the files are not present, as if they were never uploaded in the first place.
So basically I have a working nextcloud instance with 30GB of files that I can't see from the nextcloud interface, even tho they are inside the container.
something is missing, this cannot be how I should migrate right ?
Alright, just for future similar issues,
here is the solution : sudo -u www-data php -f /app/code/occ files:scan "username"