Cloud Migration Assistant for Confluence - enable fails
Asked by Zac Wolff:

Confluence (on-prem) Server - 6.8.0

Cloud Migration Assistant for Confluence - 1.0.9

Plugin installs OK.

Plugin fails to enable.

Error message:

Error creating bean with name 'cloudSiteSetupService': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate \[com.atlassian.migration.agent.service.cloud.CloudSiteSetupService\]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.atlassian.migration.agent.service.cloud.CloudSiteSetupService.\<init\>()  


Answers:
author: Zac Wolff
body: after working with confluence support it was determined that my okta (okta-confluence-3.0.6.jar) add-on was conflicting with the cloud migration add-on.

removing the okta add-on (restarting services, etc.) allowed my cloud migration add-on to enable.


author: Lauri Vasko
body: Standalone confluence with installation in http://\<public-ip\>:8090 and no "wiki" or "confluence" at the end, did not allow enabling Migration Manager. In some deep logs there was mention of URL being missing from some bean constructor.

SOLUTION was to redefine confluence base-url in general configuration.

I just added "/" at the end so it became "http://\<public-ip\>:8090/" and saved it.

After that, I was able to enable Migration Manager.

My theory is, that base url was NOT set, but upon rendering general configuration, my IP and port were shown as default value (even though it was not saved in database), upon saving a change to it, that DB field got populated and resolved the missing URL error from within Migration Managers dependency.

comments: author: Kevin Suter
body: Thanks Lauri, solved my problem!


author: cYbercOsmOnauT
body: I also had the problem that the Addons didn't enable. We could solve it with the help of the Atlassian Support. Our problem was that the Confluence Analytics System Addon was disabled. Don't ask me why but this blocked enabling the Cloud Migration Assistant.


author: Etienne Janse van Rensburg
body: Good day Diego,

I have also followed all of your suggested steps, yet non of them has been successful.  
w.r.t the last step, after that, Confluence starts up, but as soon as I need to access any administration content, an "System Error" occurs. I have in the mean time, reverted back to a server snapshot i took, before attempting any of the steps suggested.

comments: author: Zac Wolff
body: [@Etienne Janse van Rensburg](/t5/user/viewprofilepage/user-id/1410604) please see my accepted answer. I hope this helps you.


author: Diego
body: Hello there Zac!

We can start by checking if the plugins cache are fine by clearing them and then trying to enable to plugin once more:
> 1. Schedule a downtime for Confluence
> 2. Remove the following folders:
>    1. \<confluence-home\>/bundled-plugins
>    2. \<confluence-home\>/plugins-cache
>    3. \<confluence-home\>/plugins-osgi-cache
>    4. \<confluence-home\>/plugins-temp
>    5. \<confluence-home\>/bundled-plugins_language
> 3. Start Confluence
> 4. Click **Cog Icon\>General Configuration**
> 5. Search for **Content Indexing** in the left menu bar
> 6. Click the **Rebuild** button

If the above yields no results, we can also try the following:
> 1. Click **cog icon \> Add-ons**
> 2. Scroll down **to the bottom of the page**
> 3. Click **Enter safe mode**
> 4. Proceed to **enter safe mode**
> 5. Now, enable just the Cloud Migration Assistance Plugin
> 6. Check if the plugin actually enables

Now, we still have a third option here:
> 1. Schedule a downtime for Confluence
> 2. Uninstall the Cloud Migration Assistant for Confluence
> 3. Remove the following folders:
>    1. \<confluence-home\>/bundled-plugins
>    2. \<confluence-home\>/plugins-cache
>    3. \<confluence-home\>/plugins-osgi-cache
>    4. \<confluence-home\>/plugins-temp
>    5. \<confluence-home\>/bundled-plugins_language
> 4. Start Confluence
> 5. Download the plugin directly from here:
>    1. [Cloud Migration Assistant for Confluence](https://marketplace.atlassian.com/apps/1219672/cloud-migration-assistant-for-confluence?hosting=server&tab=overview&_ga=2.82765343.846054878.1552915427-1770418407.1541684782)
> 6. Install it via File Upload:
>    1. [Installing Marketplace apps \| Installing by file upload](https://confluence.atlassian.com/upm/installing-add-ons-273875715.html#InstallingMarketplaceapps-Installingbyfileupload)
> 7. Check if the plugin enables

Hey, I know that this can be quite a info at once but, could you clarify a few points for us:
> 1. Are you able to enable or disable other plugins?
> 2. Has the plugin worked at some point in the past?
> 3. Which version of Java are you currently using in your environment?
> 4. Is this your production instance?

Zac, looking forward to your reply!

comments: author: Zac Wolff
body: Thank you for the reply.

A couple answers to your questions.

1. Yes, we have other plugins installed and enabled. I haven't attempted to enable/disable them recently. That is a good idea to test.

2. No, this is our first time working with this plugin.

3. java -version

```
java version "1.7.0_161"
OpenJDK Runtime Environment (rhel-2.6.12.0.0.1.el6_9-x86_64 u161-b00)
OpenJDK 64-Bit Server VM (build 24.161-b00, mixed mode)
```

4. Yes, this is our production environment.

I need to schedule a downtime for confluence to work on the options you suggested.


author: Zac Wolff
body: [@Diego](/t5/user/viewprofilepage/user-id/1188952)

This morning I had confluence downtime and attempted your suggested steps.

I still was not able to enable the plugin.

The error message in the logs stayed consistent throughout.

I did notice the link you provided was migration-agent-2.0.2.jar which was newer than then migration-agent-1.0.9.jar I was previously using. But it didn't seem to help. Same failure and error.

I answered your other questions in the previous reply.

Do you have any further suggestions?


Tags: confluence-server

server