Export fails

Marcel Guldemond asked on August 10, 2015 22:30

I'm trying to export a testing site we're using to familiarize ourselves with working in Kentico, and the export process finishes in the portal application, but no file shows up in the kentico folders.

I checked the log details and it looks like it's failing with this error:

ERROR:@@Error exporting objects. Message: Thread was being aborted.

Exception type: System.Threading.ThreadAbortException Stack Trace: at CMS.FormEngine.FormControlExport.Export_After(Object sender, ExportEventArgs e) at CMS.Base.AbstractHandler.CallEventHandler[TArgs](EventHandler1 h, TArgs e) at CMS.Base.AbstractHandler.Raise[TArgs](String partName, List1 list, TArgs e, Boolean important) at CMS.Base.AdvancedHandler2.RaiseAfter(TArgs e) at CMS.Base.AdvancedHandler2.RaiseAfter(TArgs e) at CMS.Base.AdvancedHandler2.Finish() at CMS.CMSImportExport.ExportProvider.ExportObjectType(SiteExportSettings settings, TranslationHelper th, String objectType, Boolean siteObjects) at CMS.CMSImportExport.ExportProvider.ExportObjectsData(SiteExportSettings settings)

thanks, Marcel

Update

(realized I could add my progress into the question, instead of adding answers)

So I removed the Media Libraries from the list of selected objects to see what would happen. The process errored out the same way again, but then I noticed that this statement was added to the top of the output:

Application has been restarted and the logging of the export process has been terminated. Please make suCopying 'Form controls' files Copying 'Form controls' metafiles

Does anyone have any idea what this means?

Thanks again, Marcel

Correct Answer

Bryan Soltis answered on August 11, 2015 17:08

Hello Marcel,

For your AppPool, what account is it running under? The default is "Application Pool Identity", however, I have always found it easy to set it to "Network Service" and assign permission on the entire site folder for that user. For the permissions, I usually set it to "Modify" to give it the ability to do what it needs to do for the export. Another option is to grant "Full Control" to ensure that permissions are definitely not the cause.

  • Bryan
0 votesVote for this answer Unmark Correct answer

Recent Answers


Roman Hutnyk answered on August 10, 2015 22:46

I saw that happening when there are RAM limits setup for your application - export/import of a large amount of objects requires sufficient amount of resources. :(

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on August 10, 2015 22:48

This is typically because IIS was shut down or restarted or some other process caused an error on the site and the site restarted. You might also check that the user running the AppPool has access to write to the /App_Data and /CMSSiteUtils directories. The exported file should reside in the /CMSSiteUtils/Export directory.

0 votesVote for this answer Mark as a Correct answer

Marcel Guldemond answered on August 11, 2015 16:07

Thanks Roman, but the server this site is running on has 100+ GB of disk space left, and almost 4GB of free RAM, so it doesn't seem like resources are an issue.

Brenden, thanks, I'll try expanding the AppPool user's permissions to see if that helps. I've already had to add permissions for the /Export and the /App_Data/Persistent directories. I'll try going up a level and adding permissions.

thanks, Marcel

0 votesVote for this answer Mark as a Correct answer

Marcel Guldemond answered on August 11, 2015 16:16

Brenden, expanding the permissions for the apppool user didn't seem to work.

The last step before the error appears to be Exporting Media libraries

Is there another folder I might have to add permissions to for the media libraries?

thanks, Marcel

0 votesVote for this answer Mark as a Correct answer

Marcel Guldemond answered on August 11, 2015 17:50

Thanks Bryan, setting NETWORK SERVICE as the AppPool account and giving it Modify permission to the whole site structure results in a .zip file in the Export folder.

Next step is to see if I can import it on another instance and get the sync to work.

cheers, Marcel

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.