Problems with Plugin Confluence Cloud Migration Assistant
Asked by Rafael Pagliari:

Hi guys,

We are looking to migrate Confluence Server to the Cloud. However, we are encountering an issue with the migration plugin. It appears in gray as if it is not available or something of that nature. When we click on "Enable," it takes some time processing, displaying the message "Enabling Confluence Cloud Migration Assistant. Please Wait." After that, it presents:

"An unexpected error occurred. Refer to the logs for more information."

What could be the issue? We initially considered a firewall, but we haven't noticed anything blocking. Are there any specific ports that should be open?

Thank you,


Answers:
author: Rafael Pagliari
body: Hi guys, after many attempts, I finally succeeded.

Basically, for some reason, the tables were locked, and every time you try to enable the plugin, it creates new tables.

However, it doesn't delete the existing ones or update them, so an error occurs. Through trial and error, I arrived at these tables, then dropped all of them and enabled it again, and it simply works.

For those facing the same issue, below is how to do it.

DELETE FROM public.plugindata WHERE plugindata.pluginkey = 'com.atlassian.migration.agent';

DROP TABLE public.mig_app_assessment_info;

DROP TABLE public.mig_detected_event_log;

DROP TABLE public.mig_check_result;

DROP TABLE public.mig_analytics_event;

DROP TABLE public.mig_attachment;

DROP TABLE public.mig_db_changelog;

DROP TABLE public.mig_db_changelog_lock;

DROP TABLE public.mig_sequences;

DROP TABLE public.mig_stats;

DROP TABLE public.mig_step;

DROP TABLE public.mig_task;

DROP TABLE public.mig_work_item;

DROP TABLE public.mig_plan;

DROP TABLE public.mig_cloud_site;

DROP TABLE public.mig_exclude_app;

DROP TABLE public.mig_check_override;

DROP TABLE public.mig_spaces;

DROP TABLE public.mig_app_access_scope;

DROP TABLE public.mig_needed_in_cloud_app;

DROP TABLE public.mig_export_cache;

DROP TABLE public.mig_invalid_email_user;

DROP TABLE public.mig_user_domain_rules;

:)


author: Rik de Valk
body: Hi,

Network connectivity for CCMA is documented property by Atlassian: <https://confluence.atlassian.com/confkb/connect-the-confluence-cloud-migration-assistant-to-atlassian-cloud-976753742.html>

I would recommend working with a partner to do your migration.

Happy holidays!

comments: author: Rafael Pagliari
body: Hi Rik, we performed a full release to test enabling the plugin, however, it continues to display the same error. We've attempted alternative approaches as well.

Second attempt:

Uninstalled the plugin.  
Shut down Confluence.  
Cleaned the following directories:  
bundled-plugins/  
plugins-cache/  
plugins-osgi-cache/  
plugins-osgi-cac  
plugins-temp/  
Started Confluence.  
Tried to update, but it didn't work.  
Repeated the process, manually installed the plugin successfully, but when attempting to enable, the same error persisted: "Failed to enable app Confluence Cloud Migration Assistant (com.atlassian.migration.agent)."  
The logs only show the following:

<br />

8-Dec-2023 13:36:29.416 WARNING \[Catalina-utility-4\] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread \[https-jsse-nio2-8443-exec-5 url: /rest/plugins/1.0/com.atlassian.migration.agent-key; user: rafael\] (id=\[21\]) has been active for \[66,533\] milliseconds (since \[12/28/23, 1:35 PM\]) to serve the same request for \[<https://XXX.com.br/rest/plugins/1.0/com.atlassian.migration.agent-key>\] and may be stuck (configured threshold for this StuckThreadDetectionValve is \[60\] seconds). There is/are \[1\] thread(s) in total that are monitored by this Valve and may be stuck.

The error occurs again after 5 minutes.


Tags: confluence-server

migration-customer-care

server