Restore confluence server 6.2.2 backup into cloud instance
Asked by Ernesto Balestrini:

Hi I would appreciate any help rewarding this issue.   

We had a Jira 7.1/Confluence 2.2 server running and for some reason the machine does not boot anymore. all i have left is a jira and confluence backup file  

I have been able to restore jira on the cloud using the back up file for it but with confluence I am having a bit more troubles.   

When i try to restore the backup file in the cloud instance i get this error:   

**We can't import your file because it's from an old server version. Please use the [Cloud Migration Assistant for Confluence](https://confluence.atlassian.com/confcloud/cloud-migration-assistant-for-confluence-959303217.html) or upgrade your server version to 6.14 or later before retrying.** I thought i might be able to install a new instance of confluence in my machine, restore and upgrade before moving to the cloud but once i restore the confluence backup in my local instance this last b**rakes and give me errors related to the old url.**   

So i went to update the .xml files in the backup .zip file with the new localhost url and tried again restoring it on a fresh install of confluence but still brakes the installation.   

<br />

Is there anything else i can do? is there an online tool to migrate my backup or can i run a cloud version of the old confluence?   

Thanks in advance.


Answers:
author: Ernesto Balestrini
body: By following this step by step.  
<https://confluence.atlassian.com/conf64/restore-passwords-to-recover-admin-user-rights-936511358.html>


author: Nic Brough -Adaptavist-
body: It is what it says, you'll need to take your 6.14 backup, restore it to an empty 6.14 temporary server system, upgrade it to 7.4, then export it to xml, then you'll be able to import that into a Cloud system.

It sounds like you've made a start on this, but you should not be messing with xml files, you should be looking at what "breaks and gives me errors" in the restored system. Fix those first. If you're stuck on how, then you could tell us what the problems are, and we might be able to help

comments: author: Ernesto Balestrini
body: Fair enought,

From a clean installation of confluence 6.2.2, i have tried to restore the data from the old server... using the zip file (**backup untouched**).

- Restore running.... Completed.   

- Click on confluence icon to see the home page and i get ckicked out so i need to log in again.   

- Now i go and Reset password... (i assume the user password is getting overwritten with the one in the backup)...   

- Now I am able to log in but i get **this exception:**   

### Cause {#toc-hId-1145486002}

com.atlassian.crowd.exception.runtime.OperationFailedException: org.apache.http.conn.ConnectTimeoutException: Connect to **jira.myOldDomain.com** :80 \[**jira.myOldDomain.com** \] failed: connect timed out  
at com.atlassian.crowd.embedded.core.CrowdServiceImpl.updateUserCredential(CrowdServiceImpl.java:431)

caused by: org.apache.http.conn.ConnectTimeoutException: Connect to **jira.myOldDomain.com** :80 \[**jira.myOldDomain.com** \] failed: connect timed out  
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:143)

caused by: java.net.SocketTimeoutException: connect timed out  
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)  

I am assuming the backup was connected to my **jira.myOldDomain.com instance which is down,** and this new fresh install is pointing to the localhost fresh installation of jira.  

<br />

The question is how to reconfigur the fresh installation (now restored with the wrong jira url) to the original fresh url (localhost:8080).  

Again thanks for the support.


author: Nic Brough -Adaptavist-
body: Your assumption seems right - it's trying to connect to a Crowd that isn't there any more.

I think you might need a local admin - you can get one by following <https://confluence.atlassian.com/doc/restore-passwords-to-recover-admin-user-rights-158390.html>


author: Ernesto Balestrini
body: Everything on this link makes sense but the confluence instance wont start manually... It will only start by the start menu item as a service... \<- this complain because i dont have java installed.

I have stop the confluence server and modified setenv.bat adding the following line:  

**CATALINA_OPTS="-Datlassian.recovery.password=tmp_password"**

and setenv.sh  

**set CATALINA_OPTS=-Datlassian.recovery.password=tmp_password**

I proceed with the second option (not java installed) -\> If you **installed Confluence using the installer** , and don't have Java installed, use the Start and Stop Confluence options in the Start menu, or:  
To start Confluence run <installation-directory>\startup-bundled-jre.bat

But either way the **recovery_admin** account wont let me either. Showing:

The following error(s) occurred:

* Sorry, an error occurred trying to log you in. Please try again.


author: Nic Brough -Adaptavist-
body: 6.2.2 doesn't have the recovery password option as it says in the doc, you'll need to do what the doc says for older versions.


author: Ernesto Balestrini
body: You are right, I am exploring the DB option now :)


author: Ernesto Balestrini
body: [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454) thanks for the support, i can now access the instance after reseting the password of the admin user and changing the order of the directory by SQL queries.

Thanks.


Tags: cloud

confluence-cloud