SaaS CMS has officially launched! Learn more now.

Migrating blobs in DXP from CMS-11 to CMS-12

Vote:
 

Hey all,

I've migrated our multi-site system to CMS-12 and am using the DXP Mgmt Portal Project Migration tool.  I am deployed to Integration.  Things seem to be functional, but the media files/blobs are missing.  All of the references are there, but the files are not:

Should the Project Migration tool's "Copy content" button copy all blobs too?  

Generally, how are people copying media files from CMS-11 installations to CMS-12 installations?  Is there a way to import the blobs in a manner similiar to how you export them with a PowerShell script?

Our production sites' content will continue to change while we test the CMS-12 Integration sites.  Will I have an opportunity to copy both database and blob content between the two Production installations?

Thanks, Kevin

#307224
Edited, Aug 21, 2023 19:13
Vote:
 

In theory you can export all your media in your old site then import to your new site. just select the asset root 

untested by me 

#307277
Edited, Aug 22, 2023 9:35
Quan Mai - Aug 22, 2023 11:29
yes it was a screenshot
Quan Mai - Aug 22, 2023 11:33
I just retried, see it now?
Kevin Gainey - Aug 22, 2023 12:21
Are you sure this will import the actual blob files that can be viewed under the Media tab? First, I tried it and it does nothing, presumably because the database references are already there. Second, the ExportedFile.episerverdata file size does not seem to indicate that it contains image content.
Quan Mai - Aug 22, 2023 13:04
Not my area of expertise, but on my test it contains the blobs for me. You might want to check if ExcludeFiles in the ExportOptions is set to true.
Kevin Gainey - Aug 22, 2023 13:30
This process focuses on the content in the database, with the blobs being secondary. If I delete the database content, sure it imports the blob with it. But if the content already exists in the database, but without the blob, then nothing is imported. We cannot delete all of our media content references.

Quan, I appreciate you taking the time to respond. I really don't think that this is proper mechanism to import blobs. There is no correlation between the content tree structure and the media tree structure.
Tomas Hensrud Gulla - Aug 24, 2023 6:56
Also, this approach will not include files in «For this page» or «For this block».
Vote:
 

I used this migration tool a few weeks back for a major site but from CMS 11 => 11 (different data center)

"Should the Project Migration tool's "Copy content" button copy all blobs too?": Yes  

"Generally, how are people copying media files from CMS-11 installations to CMS-12 installations?  Is there a way to import the blobs in a manner similiar to how you export them with a PowerShell script?"
By using the migration tool in paas portal

Our production sites' content will continue to change while we test the CMS-12 Integration sites.  Will I have an opportunity to copy both database and blob content between the two Production installations?
Yes. But you will of course overwrite any new changes. But you can do multiple copy of content to environment. It took around 20 mins for a pretty large CMS site to move all content.

I did however do a 11 => 11 migration so get in touch with support I would say if the blobs themselves doesn't show up correctly. Copy content should do that for you (db + blobs). 

#307355
Aug 23, 2023 9:19
Vote:
 

I have used the migration tool from CMS 11 to CMS 12, and it works just as Daniel says.

The migration tool should copy the blobs when you click «Copy content». I did this multiple times, and never had any issues.

#307398
Aug 24, 2023 6:57
Vote:
 

Thanks everyone.  The consensus is that the "Copy content" button works as expected.

I took Daniel's advice to contact support.  It appears that the blob container names in CMS-11 and CMS-12 are different.  I do not have a resolution from support yet, but hopefully soon.

Can someone confirm:  In the Opti+Azure setup, customers do not have access to containers used by the system via the Azure portal.

#307414
Edited, Aug 24, 2023 12:54
Vote:
 

You can temporary saas link to your blob containers and then view in Azure Storage Explorer

https://docs.developers.optimizely.com/digital-experience-platform/docs/storage-containers

#307417
Aug 24, 2023 15:09
Vote:
 

Hi Kevin,

If the container names are different, would it not be possible to rename the container name in the site configuration to match?

using EPiServer.ServiceLocation;
    using Microsoft.Extensions.DependencyInjection;
    using System;
    
    namespace SampleBlob
    {
      public class Startup
      {
        public void ConfigureServices(IServiceCollection services)
        {
          services.AddAzureBlobProvider("Azure", o =>
          {
            o.ConnectionString = {The Azure storage connection string};
            o.ContainerName = {The container name};
          });
        }
      }
    }

Just a thought.

Paul

#307454
Aug 25, 2023 7:48
Vote:
 

This has finally been solved and remedied, and numerous responses here helped me get there.  Basically:

  1. The CMS-11 project had a custom container name with configuration
  2. The CMS-12 project had no custom configuration, and was assuming the default container "mysitemedia"
  3. There was no need for the custom container name for either project, so we're going with the default name.
  4. For CMS-12, the custom container contents were merged into "mysitemedia" by Opti support.
  5. All media now shows.

Thanks everyone for the help!  I'll accept all of the responses that helped get me get there. 

#307464
Aug 25, 2023 11:22
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.