Unable to login to Confluence after migrating it to a different server
Asked by jing wang:

Hi all, I have migrated the JIRASoftware and Confluence from one server to another server, after the migration, I can no longer log into to Confluence but my jira login still works, I googled online and found a solution below, but it did not work for me.

<https://community.atlassian.com/t5/Confluence-questions/Cannot-log-into-Confluence-after-moving-servers/qaq-p/84901>

I also tried to use forgot password method, it sent me the URL which does not work for me at all.

Any help?


Answers:
author: robert Mugabuhamye
body: hello [@jing wang](/t5/user/viewprofilepage/user-id/3025096)   

if your confluence was linked to an LDAP kind of system, it is normal.  

You should try to use the recovery admin:  
<https://confluence.atlassian.com/doc/restore-passwords-to-recover-admin-user-rights-158390.html>   

This should work

comments: author: jing wang
body: hi [@robert Mugabuhamye](/t5/user/viewprofilepage/user-id/385916) , I'm not using an LDAP kind of system.

I also tried the recovery admin method, it does not work for me.

In my case, I can log back in to JIRA with no issue, but login to Confluence, it returned me incorrect password, I tried the forgot passage, with the link, I can open it only from the local host (as the url is http://localhost:8090/xxxxx instead of http://{hostname}:8090/xxxx. ), after I entered the new password. I got following error page returned. Do you have any other clues what I should do to fix this issue? Thank you!

Oops - an error has occurred

[![logo](http://localhost:8090/images/logo/confluence_48_white.png "Confluence")](http://localhost:8090/)System Error {#toc-hId--1408898469}
--------------------------------------------------------------------------------------------------------------------------------------------

A system error has occurred --- our apologies!

For immediate troubleshooting, consult our **[knowledge base](http://confluence.atlassian.com/display/CONFKB/Confluence+Knowledge+Base+Home)** for a solution.

If you would like to receive support from Atlassian's support team, ask your **[Confluence administrator](http://localhost:8090/contactadministrators.action)** to create a support issue on [Atlassian's support system](http://support.atlassian.com/) with the following information:

1. a description of your problem and what you were doing at the time it occurred
2. a copy of the error and system information found below
3. a copy of the application logs (if possible).

Your Confluence administrator can use the **[support request form](http://localhost:8090/admin/raisesupportrequest.action)** to create a support ticket which will include this information.

We will respond as promptly as possible.  
Thank you!

[**Return to site homepage...**](http://localhost:8090/)


author: robert Mugabuhamye
body: hello [@jing wang](/t5/user/viewprofilepage/user-id/3025096) .  

what do you mean by the recovery does not work? it is supposed to work and there should be no reason why.  
are you on a Linux system? windows? on windows, do you start your confluence as a service? with the .bat. ?   
This will help narrow down how to configure your recovery admin.  


author: jing wang
body: I"m on a Windows server, my confluence is configured as a service. I followed the restore password document, I used cmd prompt to run the .bat file to start confluence service, when I tried to use recovery_admin user to login, I was not able to login. I still got the "Please re-enter your login details and type in the word below." message, am i missing anything? btw, my confluence version is 6.7.1. [@robert Mugabuhamye](/t5/user/viewprofilepage/user-id/385916)


author: robert Mugabuhamye
body: [@jing wang](/t5/user/viewprofilepage/user-id/3025096) if you confluence is starting as a service, you have to set your recovery password in the JVM start-up arguments.   

On this [link](https://confluence.atlassian.com/adminjiraserver/setting-properties-and-options-on-startup-938847831.html), you can follow the section "windows service" and set the params for confluence:

-Datlassian.recovery.password=\<your-password\>  

restart confluence by restarting the service and you should be good to go


author: jing wang
body: [@robert Mugabuhamye](/t5/user/viewprofilepage/user-id/385916) thank you so much for your help! I was able to login using the recovery_admin account and updated the base URL from {localhost} to {hostname}. Is there anything else I need to update? as after that, I tried to my user credential to login, I still got the "Please re-enter your login details and type in the word below" and the reset password still took me to the "Opps - an error has occurred" page.

Oops - an error has occurred

[](http://localhost:8090/)System Error {#toc-hId--1408897387}
-------------------------------------------------------------


author: jing wang
body: hi [@robert Mugabuhamye](/t5/user/viewprofilepage/user-id/385916) , I logged in as recovery_admin and used this account to reset my user password, the reset was not successfully, it gave me the following error, any insight what else should be corrected?

The following error(s) occurred:

* Failed to change user password. Check your server logs for more information.


author: robert Mugabuhamye
body: [@jing wang](/t5/user/viewprofilepage/user-id/3025096) My guess is your users are not managed in confluence but in Jira, that is why you can't set your password in confluence.

You can go in both "application links" sections of jira and confluence.

you should see the link that is configure for jira/confluence.  
delete it in both apps and recreate it. you should be good


author: jing wang
body: [@robert Mugabuhamye](/t5/user/viewprofilepage/user-id/385916)I deleted the application link "application links" from both jira and conflurence and re-created it, but I still can't login as my user account. my account was admin on both servers, I can only login to jira but not the confluence.


author: jing wang
body: Should I restart the confluence service while I still have my recovery_admin account active?


author: robert Mugabuhamye
body: you should check in confluence: "users directory" the state of "Remote Jira Directory".  
try to sync it, if it doens't work edit its params. Mainly application name/application password.   

application name and password should be set in your Jira instance: user management -\> Jira server  
<https://confluence.atlassian.com/adminjiraserver/allowing-connections-to-jira-for-user-management-938847045.html>  


author: jing wang
body: hi [@robert Mugabuhamye](/t5/user/viewprofilepage/user-id/385916) , I followed the doucment and synced the "users directory", but still can't login via my user account. I also updated the IP address for jira user server, it was old one before.


author: jing wang
body: Hi [@robert Mugabuhamye](/t5/user/viewprofilepage/user-id/385916) I found that my user name is in confluence admin and user group but it's not in a member of confluence admin group on JIRA, after I added myself, I'm able to login to Confluence now, thank you so much for your help! I really appreciate it.


author: robert Mugabuhamye
body: [@jing wang](/t5/user/viewprofilepage/user-id/3025096)   
glad that it worked.  

I would recommend to creates a local admin that is in confluence local user directory before the next migration. before you do your data exports ;)


author: jing wang
body: hi [@robert Mugabuhamye](/t5/user/viewprofilepage/user-id/385916) i have a side question, for some reason, I can see the spaces that were migrated to the new server from spaces drop down menu, however, when I click on All spaces, I do not see any spaces from space directory, do you have any idea why? Should I submit a new question for this?


author: jing wang
body: never mind, I need to rebuild content indexing :)