AEM Communities Upgrade Template Migration Communities template miggratiom migrates custom templates (email, sites, groups, functions) from /etc/community/templates to /conf/global/settings/community/templates. This migration is required for a customer upgrading to 6.4 or higher version from 6.3 or lower version. The templates are backward compatible and will work without migration as well but the new templates will still be created under /etc only.
Steps to migrate :
- build communities-template-migration bundle.
- On each of the author and publish instances:
- Stop the instance.
- install the communities-template-migration bundle.
- Make a HTTP POST call to http://:/libs/social/upgrade/templateMigrationServlet.json with ADMIN credentials.
- Verify the logs if the migration completed successfully.
- Start the instance.
- Validate from crx/de that /etc/community/templates is empty and existing templates are moved to /conf/global/settings/community/templates.
AEM Communities UGC Migration Tool
2/22/2017 This product contains 4 distinct pieces:
- com.adobe.communities.ugc.migration.legacyExport: An exporter package for extracting user-generated content (UGC) from legacy versions of Adobe Experience Manager versions 5.6.1 and 6.0. Additionally, this package can export profile scores.
- com.adobe.communities.ugc.migration.legacyProfileExport: An exporter package specifically for exporting profile data (messages and social-graph) from AEM 6.0, where those features were introduced.
- package com.adobe.communities.ugc.migration: This provides both an exporter and an importer service for UGC and profile data into and out of AEM 6.1+.
- communities-ugc-migration-pkg: This package provides a graphical user interface for importing UGC into 6.1+. It must be installed in /crx/packMgr. The UI shows up in the admin section at "libs/social/console/content/importUpload.html".
Currently, there isn't support for exporting messages and social-graph from AEM 6.1+
The following types of UGC can be migrated from AEM 5.6.1 or 6.0 into AEM 6.1:
- Forums
- Question and Answers
- Comments
- Journals
- Calendars
- Ratings
- Scoring
Additionally, these additional types can be migrated from 6.0 to 6.1
- Messages
- Social Graphs (who follows who)
Since messages and social graphs can only be migrated from 6.0 (as they didn't exist in 5.6.1) there is a separate bundle that handles their export
- Build the package "communities-ugc-migration-legacyExport" using maven.
- Install the resulting .jar file in /system/console/bundles of the machine you want to export from.
- Go to /crx/de and expand /content to find the root node for the component you wish to export (not within /content/usergenerated). Copy the path to the root of the components you wish to export.
- In your browser, go to /services/social/ugc/export?path=[path you copied in crx/de]. This will trigger a file download of a zip archive containing all the UGC at or below the root node path you provided.
- To export profile scores, you will need to look up the path to your system's profiles. By default, it is /home/users, but your value may be custom.
- Go to /services/social/scores/export?path=/home/users (replace /home/users with your own value if it's different). Save the response as a json file.
- Build the package "communities-ugc-migration-legacyProfileExport" using maven.
- Install the resulting .jar file in /system/console/bundles of the machine you want to export from.
- To export messages in a zip archive, navigate to /services/social/messages/export.
- To export social graph, you will need to look up the path to your system's profiles. By default, it is /home/users, but your value may be custom.
- Go to /services/social/graph/export?path=/home/users (replace /home/users with your own value if it's different). Save the response as a json file.
- Build the package "communities-ugc-migration" using maven.
- Install the resulting .jar file in /system/console/bundles of the machine you want to export from.
- Go to /crx/de and expand /content to find the root node for the component you wish to export (not within /content/usergenerated). Copy the path to the root of the components you wish to export.
- In your browser, go to /services/social/ugc/export?path=[path you copied in crx/de]. This will trigger a file download of a zip archive containing all the UGC at or below the root node path you provided.
- Build the package "communities-ugc-migration" using maven.
- Install the resulting .jar file in /system/console/bundles on a publish node of your AEM 6.1 instance where you wish to import.
- Build the package "communities-ugc-migration-pkg" using maven.
- Install the .zip package file in /crx/packMgr.
- If you haven't already, you'll need to create the UGC component nodes for the content you want to migrate.
- In your browser, visit /libs/social/console/content/importUpload.html
- Use the form on that page to upload the zip archive you downloaded during the export process.
- The form on the page should expand to show a dropdown with a list of files extracted from the archive just uploaded, along with a text input field. The files from the archive are named according to their relative path below the root node you selected for export. Use that relative path to determine where in the new system you want that content to reside. For each file to be imported, select it from the dropdown, then put in the path to the UGC component node that matches the type of content you want to import and press the import button.
As the content is imported, the file containing that content will automatically be deleted from the system. If you want to delete, rather than import, any of the files extracted from the archive, just select them in the dropdown list and press the "delete" button.
- Build the package "communities-ugc-migration" using maven.
- Install the resulting .jar file in /system/console/bundles on a publish node of your AEM 6.1 instance where you wish to import.
- If you haven't already, you'll need to create the UGC component nodes for the content you want to migrate.
- Unzip the archive generated by the export function.
- Send the individual json files to the import servlet by providing both the file and the path (as a URL parameter) to the UGC content node that should reference the imported content. Example import command: curl -i -u"admin:admin" -X POST -F"file=@/Users/sample/Downloads/export/en/community/hiking/calendar/jcr:content.json" http://localhost:4503/services/social/ugc/import?path=/content/geometrixx-outdoors/en/community/hiking/calendar/jcr:content/par/calendar
- Build the package "communities-ugc-migration" using maven.
- Install the resulting .jar file in /system/console/bundles on a publish node of your AEM 6.1 instance where you wish to import.
- Use curl to upload the scores file to the import servlet
- Example import command: curl -i -u"admin:admin" -X POST -F"file=@/Users/sample/Downloads/socialScores.json" http://localhost:4503/services/social/scores/import
- Build the package "communities-ugc-migration" using maven.
- Install the resulting .jar file in /system/console/bundles on a publish node of your AEM 6.1 instance where you wish to import.
- Use curl to upload the social graph file to the import servlet Example import command: curl -i -u"admin:admin" -X POST -F"file=@/Users/sample/Downloads/socialGraph.json" http://localhost:4503/services/social/graph/import
- Build the package "communities-ugc-migration" using maven.
- Install the resulting .jar file in /system/console/bundles on a publish node of your AEM 6.1 instance where you wish to import.
- Use curl to upload the messages archive file to the import servlet Example import command: curl -i -u"admin:admin" -X POST -F"file=@/Users/sample/Downloads/export.zip" http://localhost:4503/services/social/messages/import
Communities Badges migration migrates badges paths from /etc/community/badging/images to new paths (/libs/community/badging/images, /content/community/badging/images). This migration is required for a customer upgrading to 6.4 or higher version from 6.3 or lower version. If this migration is not done, User's old badges would continue pointing to old paths(/etc).
Pre-requisite:
- Make sure old badges images are present before running migration script.
- Users should not be assigned any new badges(having new paths) prior migration as it might lead to conflict with old badges during migration.
Steps to migrate :
-
Add the site path(where the badging and scoring rules are configured) in below mentioned file (com.adobe.cq.social.badges.resource.migrator.internal.BadgingContants).
-
build cq-social-badges-migrator bundle.
-
On any of publisher instance: a. - Stop the instance. b. - install the cq-social-badges-migrator bundle. c. - Add a logger for package "com.adobe.cq.social.badges.resource" from http://:/system/console/slinglog
-
Create New Badges
- Make a HTTP POST call to http://:/libs/social/badges/badgeResourceCreateServlet with ADMIN credentials.
- Check the logs for any error in log file created in 3c.
-
Delete Old Badges
- Make a HTTP POST call to http://:/libs/social/badges/badgeResourceDeleteServlet with ADMIN credentials.
- Check the logs for any error in log file created in 3c.
-
Validate Badges Make a HTTP POST call to http://:/libs/social/badges/badgeResourceValidationServlet with ADMIN credentials.
- Check the logs for any error or "vaidation failed" in log file created in 3c.