Migration fails with message "System.IO.IOException: The directory is not empty."

Refers to:

  • Plesk

Created:

2016-11-16 13:00:57 UTC

Modified:

2016-12-21 19:45:41 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Migration fails with message "System.IO.IOException: The directory is not empty."

Symptoms

Migraton from HELM is failed with this message:

System.IO.IOException: The directory is not empty.
at ForeignMigratorCore.Msc.HandleException(Exception ex, Boolean throwFurther, Boolean writeLog)
at WinAgent.WinAgentImpl.handleException(Exception ex, Boolean throwFurther, Boolean writeLog)

In migraton log file handler.log :

[2014-05-30 00:05:21.405|3648] INFO: Executing <subprocess[4620] 'C:\\\\Program Files (x86)\\\\Parallels\\\\Plesk\\\\PMM\\\\Migration\\\\migrmng --backup --content-transport=rsync --mssql-native-backup-mode-supported --remote-db-servers-file=C:\\\\Program Files (x86)\\\\Parallels\\\\Plesk\\\\PMM\\\\msessions\\\\20140529231428850\\\\remote_db_servers --withstatus --session-path=C:\\\\Program Files (x86)\\\\Parallels\\\\Plesk\\\\PMM\\\\msessions\\\\20140529231428850 --dumps-dir=C:\\\  emp\\\\20140529231428850'>
[2014-05-30 00:06:39.780|3648] INFO: Subprocess raised ExecuteException: Subprocess <subprocess[4620] 'C:\\\\Program Files (x86)\\\\Parallels\\\\Plesk\\\\PMM\\\\Migration\\\\migrmng --backup --content-transport=rsync --mssql-native-backup-mode-supported --remote-db-servers-file=C:\\\\Program Files (x86)\\\\Parallels\\\\Plesk\\\\PMM\\\\msessions\\\\20140529231428850\\\\remote_db_servers --withstatus --session-path=C:\\\\Program Files (x86)\\\\Parallels\\\\Plesk\\\\PMM\\\\msessions\\\\20140529231428850 --dumps-dir=C:\\\ emp\\\\20140529231428850'> was finished with exit code -3
== STDOUT ====================
<?xml version="1.0" encoding="utf-8"?>
<execution-result status="error">
<message severity="error">
<description>System.IO.IOException: The directory is not empty.

at ForeignMigratorCore.Msc.HandleException(Exception ex, Boolean throwFurther, Boolean writeLog)
at WinAgent.WinAgentImpl.handleException(Exception ex, Boolean throwFurther, Boolean writeLog)</description>
</message>
</execution-result>
== STDERR ====================

In backup log:

    [2014-05-30 08:08:39.586|4620] Error: 3Y8S1: Error during client migration
psacontentfile.PSAZipperException: There is not enough space on the disk. ---> System.IO.IOException: There is not enough space on the disk. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count) at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count) at psacontentfile.SplittedFileVolume.Write(Byte[] buffer, Int32 offset, Int32 count) at psacontentfile.SplittedFileStream.doWrite(Byte[] buffer, Int32 offset, Int32 count) at psacontentfile.SplittedFileStream.Write(Byte[] buffer, Int32 offset, Int32 count) at ICSharpCode.SharpZipLib.Zip.Compression.Streams.DeflaterOutputStream.Finish() at ICSharpCode.SharpZipLib.Zip.ZipOutputStream.CloseEntry() at ICSharpCode.SharpZipLib.Zip.ZipOutputStream.Finish() at psacontentfile.PSAZipper.close() --- End of inner exception stack trace --- at psacontentfile.PSAZipper.close() at psacontentfile.PSAZipper.Dispose() at HelmMigrator.Helm3Dumpers.SiteDumper.DumpWwwContent(SiteContext context) at HelmMigrator.Helm3Dumpers.SiteDumper.DumpContent(SiteContext context) at HelmMigrator.Helm3Dumpers.SiteDumper.DumpSiteHosting(SiteContext context) at HelmMigrator.Helm3Dumpers.SiteDumper.Dump(SiteContext context, FileNameStructureCreator fsCreator) at HelmMigrator.Helm3Dumpers.SubscriptionDumper.DumpSite(SubscriptionContext context, CDomain helmDomain, FileNameStructureCreator fsCreator) at HelmMigrator.Helm3Dumpers.SubscriptionDumper.Dump(SubscriptionContext context, Object owner, FileNameStructureCreator fsCreator) at HelmMigrator.Helm3Dumpers.ClientDumper.DumpDomains(ClientContext context, Object owner, FileNameStructureCreator fsCreator) at HelmMigrator.Helm3Dumpers.ClientDumper.Dump(ClientContext context, Object owner, FileNameStructureCreator fsCreator) at HelmMigrator.Helm3Dumpers.ResellerDumper.DumpClients(ResellerContext context, Object owner, FileNameStructureCreator fsCreator) ( Client will not be migrated )
[2014-05-30 08:08:39.758|4620] Debug:

-----------------------------Exception_handled--------------------------------
System.IO.IOException: The directory is not empty.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive)
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive)
at HelmMigrator.Helm3Dumper.Abort()
at HelmMigrator.Helm3Dumper.Dump(DumpDescription dumpDesc, String selectedObjects)
at HelmMigrator.Helm3Agent.PrepareDump(DumpDescription dumpDesc, String selectedObjects)
at WinAgent.WinAgentImpl.PrepareDump(DumpDescription dumpDesc, String accountsInfo)
------------------------------------------------------------------------------
[2014-05-30 00:06:39.593|4620] Debug: /\\/\\/\\/\\/\\/\\/\\/\\ End SyncLog /\\/\\/\\/\\/\\/\\/\\/\\
[2014-05-30 00:06:39.734|4620] Debug: ForeignMigratorCore.MigratorException: System.IO.IOException: The directory is not empty.

at ForeignMigratorCore.Msc.HandleException(Exception ex, Boolean throwFurther, Boolean writeLog)
at WinAgent.WinAgentImpl.handleException(Exception ex, Boolean throwFurther, Boolean writeLog)

Server stack trace:
at WinAgent.WinAgentImpl.handleException(Exception ex, Boolean throwFurther, Boolean writeLog)
at WinAgent.WinAgentImpl.PrepareDump(DumpDescription dumpDesc, String accountsInfo)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at ForeignMigratorCore.IAgent.PrepareDump(DumpDescription dumpDesc, String selectedAccounts)
at PsaMigrMng90.MigrMng90.Backup(Boolean deleteDump, Boolean skipDownloadDump, Boolean deferredContentMode, Boolean mssqlNativeBackupModeSupported, String remoteDbServersFile)
at migrmng.App.Main(String[] args)
[2014-05-30 00:06:39.734|4620] Debug: Saving result...
[2014-05-30 00:06:39.765|4620] Debug: migrmng exits with code -3
[2014-05-30 00:06:39.781|4620] Debug: Unload domain.

Cause

There is not enough space for backup on the source server.

Resolution

Free space on the source server or change disk which stores a backup in WINAgentMng.exe.config :

<add key="DumpDirectory" value="" />
Have more questions? Submit a request
Please sign in to leave a comment.