Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Restore confluence server 6.2.2 backup into cloud instance

Ernesto Balestrini May 13, 2020

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 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 brakes 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. 


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. 

2 answers

2 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 13, 2020

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

Ernesto Balestrini May 13, 2020

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

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.


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. 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 13, 2020

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

Ernesto Balestrini May 14, 2020

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.
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 14, 2020

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.

Ernesto Balestrini May 14, 2020

You are right, I am exploring the DB option now :) 

Ernesto Balestrini May 14, 2020

@Nic Brough -Adaptavist- 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. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events