Migrator export not working after upgrading to v2021.1

Hi Guys

We are experimenting with Octopus deploy and have run into an issue after the upgrade to Octopus.2021.1-x64 (Build 7236).

The upgrade did go well but when we tried to export the data(after upgrade) using the octopus manager, we have run into an issue.

Below is the error log from the Octopus manager export

Error: ===============================================================================
Error: The filename, directory name, or volume label syntax is incorrect. : ‘C:\Users\van.le\Desktop\Octopus-deploy-export06092021\Events\Spaces-1.Submitted interruption Manual Back up Production Database with notes- Skipped. This deployment is to new prod, and new prod database is not currently in use- this is the first thing that will use it. I have recently restored current prod DB to new prod DB server (RDS). That backup is still good, no additional backup needed…json’
Error: System.IO.IOException
Error: at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
Error: at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
Error: at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
Error: at Octopus.Shared.Util.OctopusPhysicalFileSystem.Replace(String oldFilePath, Stream newStream, Int32 overwriteFileRetryAttempts)
Error: at Octopus.Migrator.Core.ExportProcess.ExportController.WriteAnyObjectToFile(String directory, String filename, IId obj) in ExportController.cs:line 871
Error: at Octopus.Migrator.Core.ExportProcess.ExportController.WriteFile(String directory, String filename, IId obj) in ExportController.cs:line 855
Error: at Octopus.Migrator.Core.ExportProcess.ExportController.WriteDocuments(String singularNoun, IEnumerable1 documents, ExportFileNameOption fileNameOption)+MoveNext() in ExportController.cs:line 814 Error: at Octopus.Migrator.Core.ExportProcess.ExportController.Write(String singularNoun, IEnumerable1 documents, ExportFileNameOption fileNameOption) in ExportController.cs:line 577
Error: at Octopus.Migrator.Core.ExportProcess.ExportController.Export() in ExportController.cs:line 107
Error: at Octopus.Migrator.Cli.Commands.ExportCommand.Start() in ExportCommand.cs:line 89
Error: at Octopus.Shared.Startup.AbstractCommand.Start(String[] commandLineArguments, ICommandRuntime commandRuntime, OptionSet commonOptions)
Error: at Octopus.Shared.Startup.OctopusProgram.Start(ICommandRuntime commandRuntime)
Error: at Octopus.Shared.Startup.ConsoleHost.Run(Action`1 start, Action shutdown)
Error: at Octopus.Shared.Startup.OctopusProgram.RunHost(ICommandHost host)
Error: at Octopus.Shared.Startup.OctopusProgram.Run()
Error: -------------------------------------------------------------------------------
Error: Terminating process with exit code 100
Error: Full error details are available in the log files at:
Error: C:\Octopus\Logs
Error: C:\Users\van.le\AppData\Local\Octopus\Logs
Error: If you need help, please send these log files to Octopus Deploy Help & Support - Octopus Deploy
Error: -------------------------------------------------------------------------------
Error: The previous command returned a non-zero exit code of: 100
Error: The command that failed was: “C:\Program Files\Octopus Deploy\Octopus\Octopus.Migrator.exe” export --instance “OctopusServer” --directory “C:\Users\van.le\Desktop\Octopus-deploy-export06092021” --password “XXX”

We thought it might be a problem with the audit event name being too long, so we deleted the deploy relating to the event. However the problem was not solved.

Could you please take a look and advise the resolution for this?


Hi there,

Thanks for reaching out, glad to hear the upgrade went mostly ok!

Release 2021.1 came with a great new feature specifically designed to help facilitate Importing and Exporting Projects and so the process has changed a little bit. I’ve attached our documentation here which outlines how to best use it, showing how you are now able to export projects directly from the UI.

If you are still having issues or have any questions with the new exporting feature, feel free to let me know!

Best Regards,


Just following up on this as I’ve learnt we have raised a bug with our Migrator that looks relevant here, if you would like to track it’s progress :slight_smile:

Best Regards,

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.