Exception thrown when trying to migrate file storage to Azure Storage account

Former Member
Former Member

I'm trying to migrate the file storage for our community to Azure Blob Storage following the guide here -  How Do I Migrate My Existing File Storage to Azure? 

I've carried out all the steps according to the documentation, but when the migration job runs I get an exception.

The error from the logs is:2022-05-23 09:20:00,319 ERROR [27] - Error occured executing job 'Centralized File Storage Migration Job (Id=03cc08a5-2548-479a-aad1-caa25c012dbf, JobId=e5c983e6-05a3-436f-948d-b7d26cfd9f9a, Platform=evolution) ExecutionTimeUtc: 5/23/2022 9:20:00 AM': UnknownException: Exception occured while running background job (Centralized File Storage Migration Job (Id=03cc08a5-2548-479a-aad1-caa25c012dbf, JobId=e5c983e6-05a3-436f-948d-b7d26cfd9f9a, Platform=evolution) ExecutionTimeUtc: 5/23/2022 9:20:00 AM). (An error occurred while executing a background job. The error has been logged for the administrator to review.) ---> System.TypeLoadException: Method 'get_ContentLength' in type 'Telligent.Evolution.Azure.Filestorage.AzureBlobFileReference' from assembly 'Telligent.Evolution.Azure.Filestorage, Version=1.0.55.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
at Telligent.Evolution.Azure.Filestorage.AzureBlobFilestorageProvider.ConvertBlobToCentralizedFile(CloudBlob blob)
at Telligent.Evolution.Azure.Filestorage.AzureBlobFilestorageProvider.<>c__DisplayClass32_0.<GetFile>b__0() in D:\work\121c032b8e6dae45\Filestorage\AzureBlobFilestorageProvider.cs:line 223
at Telligent.Evolution.Azure.Filestorage.Cache.GetOrAddToCache[T](String key, Func`1 loader, CacheScope cacheScope) in D:\work\121c032b8e6dae45\Filestorage\Cache.cs:line 14
at Telligent.Evolution.Azure.Filestorage.AzureBlobFilestorageProvider.GetFile(String path, String fileName, Boolean fallbackToSource) in D:\work\121c032b8e6dae45\Filestorage\AzureBlobFilestorageProvider.cs:line 221
at Telligent.Evolution.Platform.Components.CentralizedFileStorage.Implementations.CFSMigrationLogStorage.ClearIsRunning()
at Telligent.Evolution.Platform.Components.CentralizedFileStorage.Implementations.CentralizedFileStorageProviderMigrationJob.Execute(JobData data)
at Telligent.Evolution.Components.Jobs.EvolutionJobRunner.SubExecute(JobExecutionContext context)
at Telligent.Evolution.Components.Jobs.BaseJobRunner.Execute(JobExecutionContext job)
--- End of inner exception stack trace ---
at Telligent.Evolution.Components.Jobs.BaseJobRunner.Execute(JobExecutionContext job)
at ...()

Does anyone know if there is a fix for this?

Thanks

Steve

  • I would contact support and open a ticket, specifically make sure you are running the correct version of the azure components for your version.

  • Actually, please check the How Do I Migrate My Existing File Storage to Azure? again as we've updated the download links. The page you referenced includes download links as well as the the general doc (non-migrating) on  deploying to azure  and they were out of sync.

  • Former Member
    0 Former Member in reply to Kevin Cunningham

    I've downloaded the right versions of the Azure components and run the migration job. It looks like everything has uploaded to blob storage. but it seems to be having problems downloading some of the assets from the themefiles folder.

    I'm getting placeholder images where some font characters would be used, for example, the "magnifying glass"  in the search box

    Looking in the monitoring section of the administration portal, I can see an exception being thrown trying to retrieve entypo.woff

    and the stacktrace is:

    UnknownException: An error occurred while serving a local CFS file (An unexpected error prevented your requested action from completing. The error has been logged for the administrator to review.) ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at Telligent.Evolution.Extensibility.Storage.Providers.Version1.FileSystemFileStorageProvider.HandleHttpRequest(HttpContextBase context, ICentralizedFile genericFile)
       --- End of inner exception stack trace ---
       at Telligent.Evolution.Platform.Logging.ErrorLogger.Unknown(String internalMessage, Exception innerException)
       at Telligent.Evolution.Extensibility.Storage.Providers.Version1.FileSystemFileStorageProvider.HandleHttpRequest(HttpContextBase context, ICentralizedFile genericFile)
       at Telligent.Evolution.Extensibility.Storage.Providers.Version1.FileSystemFileStorageHttpHandler.ProcessRequest(HttpContext context)
       at Telligent.Evolution.Urls.Routing.SiteUrlHttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
       at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
       at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
       at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
       at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
       at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)