I currently have a WebCenter Portal installation that uses the Content Presenter task flow extensively to display links to documents stored in WebCenter Content. This content was previously being manually uploaded/migrated between environments which resulted in the same folders/documents existing but with different internal IDs for each environment.
Since the Content Presenter references WebCenter Content using these internal IDs, any Content Presenters needed to be manually reconfigured to use the different IDs in each environment and WebCenter Portal could not be automatically deployed/migrated.
After some reading, I found that automated replication of WebCenter Content via the Archiver tool was the way to go. This was way more complicated then I expected (as UCM tends to be) so I compiled the below overview of what is involved in setting this up.
Server Configuration
Before content replication can be configured, the source and target WebCenter Content servers both need to be configured as per below:Enable Trash
To configure Trash:
- Login to the content server as an admin
- Expand Administration and select Folder Configuration
- Click the System Folder Configuration button
- Click the disabled, grey, circle icon beside Trash
- Click Allow <user> to Mark Modified Folders
Configure the FolderStructureArchive Component
By default, the Archiver tool will only export content, and not the folders/collections storing the content. This FolderStructureArchive is used to handle folders, but it is not enabled by default.This component needs to be enabled on the source (pushing) WebCenter Content server, but I like to enable the same components across all of my WebCenter installs, so I completed the below on both the source and target servers:
- Login to the content server as an admin
- Expand Administration and select Admin Server -> Component Manager
- Select the advanced component manager link at the top of the pages
- Under the Disabled Components list select FolderStructureArchive
- Click the Enable button
- Expand Administration and select Admin Server -> General Configuration
- In the Additional Configuration Variables text box add the following line.
- AllowArchiveNoneFolderItem=false
- Click Save
Define the Outgoing Provider(s)
To allow your source server to be able to push to a target server, the target server must be defined as an outgoing provider:- Login to the Source content server as an admin
- Expand Administration and select Providers
- Under the Create a New Provider heading, click the Add link beside the outgoing provider type
- Provide the relevant values for the following properties (using Test as an example):
- Provider Name: <EnvironmentName> (e.g. Test)
- Provider Description: The WebCenter Content Test Environment
- Server Host Name: server.host.name
- Server Port: 4444
- Instance Name: serverinstancename
- Relative Web Root: cs
- Leave everything else as default, and click Add
"For performance monitoring of a push transfer, you also should set up an outgoing provider from the target (proxied) Content Server instance back to the source (local) Content Server instance. This 'talkback' provider can then notify the source Content Server instance when each transfer is complete. A push transfer will work without the talkback provider, but the source Content Server instance would not be aware of transfer completion or problems."
Restart UCM Managed Server
For the above changes to take effect you need to restart the UCM managed server on the source and targetArchive Creation
Once your content servers are configured, you can then define the exports and imports archives for replication.Create the Import Archive
An import archive needs to be defined on the target server to accept the export from the source:- Login to the Target content server as an admin
- Expand Administration and select Admin Applets
- Select Archiver to open the Java applet
- Select Options -> Open Archive Collection...
- Double click the default collection (should be the same as the instance name)
- Click Edit -> Add...
- Enter a Archive Name such as "<Env>FoldersAndContentImport" then click OK
- Select the new Archive
- Click the Transfer To tab
- Under Transfer Options click the Edit button
- Select the Is Targetable checkbox
- Click OK
- Close Archiver
Create the Export Archive
Instead of using Archiver on the source content server to define the archive, we create it using the FolderStructureArchive component we enabled earlier:- Login to the Source content server as an admin
- Expand Administration and select Folder Archiver Configuration
- Select the default Collection Name (should be the same as the instance name)
- Enter a descriptive name e.g. "<Env>FoldersAndContentExport"
- Expand and select your relevant folders you wish to export:
- Contribution Folders - This is where my WebCenter Portal content is stored
- Trash - Required to allow folder/content deletes
- Click Add
- Expand Administration and select Admin Applets
- Select Archiver to open the Java applet
- Select Options -> Open Archive Collection...
- If the Target collection you created above is not visible:
- Click Browse Proxied...
- Select the target server from the Proxied Server
- Select the default collection (should be the same as the instance name)
- Click OK
- Double click the default Source collection from the Open Archive Collection... menu
- Select the new export archive
- Click the Transfer To tab
- Under Transfer Destination click the Edit button
- Select the default Collection on the target server (should be the same as the target's instance name)
- Select the targetable archive which you created a in the previous steps ("<Env>FoldersAndContentImport")
- Click OK
Manual Replication
A manual test run of the export, transfer and import process must be run before automation is configured. This is to ensure that any import mappings are done and also make sure everything is hunky dory.Remove Content From Target
If the same folders and content were already created on the target server manually, then any imports will fail due to duplicate content exceptions. If this is the case, then you first need to remove any duplicate folders/content:- Log on to the Target content server as an admin
- Expand Browse Content and select Contribution Folders
- Select all child folders and content and select Item Actions -> Delete
- Click OK to confirm
- Log on to the Target content server as an admin
- Expand Browse Content and select Trash
- Select all child folders and content and select Item Actions -> Delete
- Click OK to confirm
Run the Export/Transfer
Now that you have a fresh target server you can run the export. The export/transfer is completed on the Source server:- Select the Export archive in Archiver
- Select Export... from the Actions menu
- Accept the defaults and click OK
- Wait for the message at the bottom of Archiver to read “Exporting <archive_name> in <collection_name>: Finished”
- Select Transfer... from the Actions menu
- Wait for the message at the bottom of Archiver to read “Transferring <archive_name> in <collection_name>: Finished”
- Close Archiver
Configure Import Maps
In some cases, the internal ID of the root 'Contribution Folders' and 'Trash' folders on the target server is different to the source server. This means that any folders imported would not be placed anywhere viewable since the ID of the parent folder does not exist in the target.Only after you have an export transferred to the target server (see previous step) can you configure the import mapping:
- Open Archiver on the target server
- Select the new import Archive you created above
- Click the Import Maps tab
- Select the Table tab
- Expand the Collection Name folder and you should see a dated subfolder that lines up with the export you just performed
- Expand this folder and select the child Collections entry
- Besides Value Maps click the Edit button
- Enter the following details:
- Input Value: <id_of_the_source_contribution_folder>
- Field: dParentCollectionID
- Input Value: <id_of_the_target_contribution_folder>
- Click Add
- Enter the following details:
- Input Value: <id_of_the_source_Trash_folder>
- Field: dParentCollectionID
- Input Value: <id_of_the_target_Trash_folder>
- Click Add
- Click OK
Run the Import
The import is completed on the Target server:- Select the Import archive in Archiver
- Select Import... from the Actions menu
- Accept the defaults and click OK
- Wait for the message at the bottom of Archiver to read “Importing <archive_name> in <collection_name>: Finished”
- Close Archiver
You should now verify that everything exists on the target server.
Automatic Replication
NOTE: Automation can only be configured after the initial manual export, transfer and import is completed (see above).In our environment we want exports from the source server to be manual, but transfers to and imports from the target server to be automatic.
Configure Automatic Transfer
Automatic transfer is configured on the Source server:- Open Archiver
- Select the Export archive you created earlier
- Select the Transfer To tab
- Click the Edit button under the Transfer Options heading
- Select the Is Transfer Automated radio button
- Click OK
- Close Archiver
Configure Automatic Import
Automatic import is configured on the Target server:- Open Archiver
- Select the Import archive you created earlier
- Select the Replication tab
- Click the Register Self button
- Close Archiver
Run Replication
- Login to the Source content server as an admin
- Expand Administration and select Admin Applets
- Select Archiver to open the Java applet
- Ensure the export archive ("<Env>FoldersAndContentExport") is selected
- Select Actions -> Export...
- Make sure Export Tables is the only option checked and click OK
- Wait for the status at the bottom of the Archiver windows to say "Exporting <archive_name> in <collection_name>: Finished"
- Wait for the status at the bottom of the Archiver windows to say "Transferring <archive_name> in <collection_name>: Finished" - This will automatically occur since we made the export "Auto Transferable"
- Close Archiver
- Login to the Target content server as an admin
- Select Browse Content -> Contribution Folders
- Check that the new folder and child content exists
Troubleshooting
Checking the Archive Logs
If anything does not appear to work as expected, you can view the archiver logs on either the source or target server:- Login to the content server as an admin
- Expand Administration -> Log Files
- Select Archiver Logs
- Select the relevant date
Unable to Run Java Applets
Initially, I was unable to run any of the WebCenter Content Java applets, and kept receiving an "Application Blocked by Java Security" exception. To rectify this:- Open Java Control Panel (via Control Panel -> Java)
- Select Security tab
- Click Edit Site List...
- Click Add
- Enter the exception URL as "[[http://<host_name>]]"
- Click OK twice
- Restart browser and clear cache
Folders not Appearing
A few times in my trial and error to determine the above process I would encounter the following messages in the Archiver logs:Skip importing Row: [<content_id>(10EA6634-6FEE-1A1F-E22B-BA6427095FAB,<parent_content_id>,public,0,,,1,1,0,0,1,{ts '2014-09-23 16:52:17.992'},,,,{ts '2014-09-23 16:52:17.992'},,,,,,,,weblogic,weblogic,weblogic,/Contribution Folders/<folder_name/,/9CF69ED3-8A7C-C75B-E3CB-D101CDAEF577/10EA6634-6FEE-1A1F-E22B-BA6427095FAB,/<parent_content_id>/<content_id>] in Table Collections.)
This generally meant on of two things:
- That the folders actually had been imported, but into a different location, OR
- The import was attempting to import folders with the same name to the same location
- Delete the suspected duplicate folders
- Rebuild indexes
- Rerun the export/import