-
Bug
-
Resolution: Fixed
-
High
-
6.3.1, 6.4.2
-
29
-
Severity 2 - Major
-
21
-
The fix shipped in 6.5.1 added Restore Passwords To Recover Admin User Rights.
This method can be used to recover an administrator account in cases like this and other cases. The documentation Migrate from Confluence Cloud to Server has also been updated.
Summary
Backup taken from Cloud doesn't allow users to login after import in Server.
Credentials sysadmin username/password as mentioned on Migrate from Confluence Cloud to Server - Atlassian Documentation don't work.
Environment
- Confluence Cloud
Steps to Reproduce
- Create a Confluence Cloud export
- Install latest Confluence Server
- On the set up page, use the Cloud XML export to import a full site
- Log in as sysadmin/sysadmin
Expected Results
sysadmin user is able to login using password sysadmin
Actual Results
sysadmin user is not able to login.
Notes
The export doesn't contain the passwords for any of the users.
The sysadmin account is not fully created. There is no entry for sysadmin in cwd_user table and no cwd_membership table entries, but there is a sysadmin entry in the user_mapping table.
Workaround
See
To add an admin user to the database with password admin
- Shutdown Confluence
- Run this SQL insert to create the admin user with password admin
insert into cwd_user(id, user_name, lower_user_name, active, created_date, updated_date, first_name, lower_first_name, last_name, lower_last_name, display_name, lower_display_name, email_address, lower_email_address, directory_id, credential) values (1212121, 'admin', 'admin', 'T', '2009-11-26 17:42:08', '2017-11-26 17:42:08', 'System', 'system', 'Administrator', 'administrator', 'System Administrator', 'system administrator', 'admin@example.com', 'admin@example.com', (select id from cwd_directory where directory_name='Confluence Internal Directory'), 'x61Ey612Kl2gpFL56FT9weDnpSo4AV8j8+qx2AuTHdRyY036xxzTTrw10Wq3+4qQyB+XURPWx1ONxp3Y3pB37A=='); insert into user_mapping values ('2c9681954172cf560000000000000001', 'admin', 'admin');
- Add the admin user to the confluence-users and confluence-administrators groups
insert into cwd_membership (id, parent_id, child_user_id) values (888888, (select id from cwd_group where group_name='confluence-users' and directory_id=(select id from cwd_directory where directory_name='Confluence Internal Directory')), 1212121); insert into cwd_membership (id, parent_id, child_user_id) values (999999, (select id from cwd_group where group_name='confluence-administrators' and directory_id=(select id from cwd_directory where directory_name='Confluence Internal Directory')), 1212121);
- Restart Confluence
- Log in as user admin with password admin
- causes
-
CONFCLOUD-52260 Cloud to Server export users can't log in
- Closed
-
CONFCLOUD-57171 XML Site Backup Does not Export User Credentials
- Closed
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...