Cloud migration
Asked by Benjamin Cuthbert:

When trying to run cloud migration we are getting this error

0% - An unexpected error occurred during step: Migrating attachments. Error: An IO exception occurred when communicating with a downstream service


Answers:
author: Ramona Scripcaru
body: Hey Benjamin,

At first glance, I would say that this error is caused by the *java.net.SocketTimeoutException: timeout* and possible root causes are:

|----------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| The remote application is in deadlock. | * Check that the remote application is operational, by accessing it as usual from the browser.                                                                                                                                         |
| There is a network connection problem. | * Use the tools described [below](https://confluence.atlassian.com/kb/network-and-connectivity-troubleshooting-guide-720405335.html#Networkandconnectivitytroubleshootingguide-tools) to check the connection with the remote machine. |

**More specifically:**

* If the application has been configured with an outbound proxy, the remote application URL can be added to the **nonProxyHosts** to allow the application link to bypass it.
  * See [How to Configure Outbound HTTP and HTTPS Proxy for your Atlassian application](https://confluence.atlassian.com/kb/how-to-configure-outbound-http-and-https-proxy-for-your-atlassian-application-834000120.html)
* **nonProxyHosts** may be configured incorrectly and non-functional. See:
  * [Java Option http.nonProxyHosts does not work](https://confluence.atlassian.com/jirakb/java-option-http-nonproxyhosts-does-not-work-214863640.html)
  * [JAVA Option '-Dhttp.nonProxyHosts' Does Not Work on Windows OS](https://confluence.atlassian.com/bitbucketserverkb/java-option-dhttp-nonproxyhosts-does-not-work-on-windows-os-779171161.html)

What we need to make sure is that your Internet connection from the Confluence Server host is stable, not blocked by a firewall / some network policy enforcing software and try migration one more time.

Let me know how this goes for you, and if this is still not working, we can open a support case where you can attach the Support zip file and we can have a look over the server logs.

Cheers,

Ramona

comments: author: Benjamin Cuthbert
body: The server has full access to the internet directly without a proxy server. Is it the connection the cloud confluence that is the issue? or does the cloud confluence need to connect into our hosted server?


author: Ramona Scripcaru
body: Yes, not the Confluence Cloud, but the plugin will need to connect to your server site in order to access the server database and extract the space details.

If you haven't checked before, can you please make sure that you have allowed these domains for Atlassian Cloud and related services:

* [https://\*.atl-paas.net](https://%2A.atl-paas.net/)
* [https://\*.atlassian.com](https://%2A.atlassian.com/)
* [https://\*.atlassian.io](https://%2A.atlassian.io/)
* [https://\*.atlassian.net](https://%2A.atlassian.net/)
* [https://\*.jira.com](https://%2A.jira.com/)
* [https://ajax.googleapis.com](https://ajax.googleapis.com/)
* [https://cdnjs.cloudflare.com](https://cdnjs.cloudflare.com/)

Also, worth mentioning, is that the user from the server and from the cloud has to have the same email address, to be a site-admin in both sites and to have administrator and export access for the spaces that you want to migrate.

Reference documentation:

<https://confluence.atlassian.com/cloud/atlassian-cloud-ip-ranges-and-domains-744721662.html>

Cheers,

Ramona


author: Ramona Scripcaru
body: Hey Benjamin,

Definitely! I've [submitted a new support case](https://support.atlassian.com/contact/) in your name and you should have received a confirmation.

We'll confirm the meeting details in the private case, it will really help me if prior to the meeting, you can [create the Confluence server support zip](https://confluence.atlassian.com/support/create-a-support-zip-790796819.html) file and upload the zip file to the support case.

You can create this file from **Confluence** go to **Settings** \> **General Configuration** \> **Troubleshooting and support tools** (under **Administration**) and should provide us with more details and a caused by statement for this error.

Cheers,

Ramona


author: Benjamin Cuthbert
body: Can we setup a webex or google hangout to go over this? I see no errors in the logs or anything so I don't know what it is doing.


author: Benjamin Cuthbert
body: So i checked my user is the same email on the local server and the remote cloud instance. Locally i have these groups in my profile confluence-administrators confluence-users and the cloud i have SITE ADMIN

The local server is open to the internet on port 443.


Tags: confluence-cloud