UATHelper: Packaging (Windows (64-bit)): ERROR: Failed to copy

Hi!

After 4 hours of packaging, it was all for nothing due to unknown error. Any help with this please?

The error line specifically is:
UATHelper: Packaging (Windows (64-bit)): ERROR: Failed to copy D:\UE\TechDemo\Saved\StagedBuilds\WindowsNoEditor\TechDemo\Content\Paks\TechDemo-WindowsNoEditor.pak to C:\Users\elis\Desktop\demo\WindowsNoEditor\TechDemo\Content\Paks\TechDemo-WindowsNoEditor.pak

UATHelper: Packaging (Windows (64-bit)): Failed to copy D:\UE\TechDemo\Saved\StagedBuilds\WindowsNoEditor\TechDemo\Content\Paks\TechDemo-WindowsNoEditor.pak to C:\Users\elis\Desktop\demo\WindowsNoEditor\TechDemo\Content\Paks\TechDemo-WindowsNoEditor.pak, deleting, waiting 10s and retrying.
UATHelper: Packaging (Windows (64-bit)): SafeCopyFile Exception was Exception in mscorlib: There is not enough space on the disk.
UATHelper: Packaging (Windows (64-bit)): Stacktrace:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
UATHelper: Packaging (Windows (64-bit)):    at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.InternalUtils.SafeCopyFile(String SourceName, String TargetName, Boolean bQuiet, List`1 IniKeyBlacklist, List`1 IniSectionBlacklist) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 378
UATHelper: Packaging (Windows (64-bit)): ERROR: Failed to copy D:\UE\TechDemo\Saved\StagedBuilds\WindowsNoEditor\TechDemo\Content\Paks\TechDemo-WindowsNoEditor.pak to C:\Users\elis\Desktop\demo\WindowsNoEditor\TechDemo\Content\Paks\TechDemo-WindowsNoEditor.pak
UATHelper: Packaging (Windows (64-bit)): ERROR: Failed to copy D:\UE\TechDemo\Saved\StagedBuilds\WindowsNoEditor\TechDemo\Content\Paks\TechDemo-WindowsNoEditor.pak to C:\Users\elis\Desktop\demo\WindowsNoEditor\TechDemo\Content\Paks\TechDemo-WindowsNoEditor.pak
UATHelper: Packaging (Windows (64-bit)):        (see C:\Users\elis\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+ue+UE_4.26\Log.txt for full exception trace)
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Error

Hello TheoT,

In my project same error was when I haven’t enough space on my disk. In second block UATHelper tells you this .

Hi!

Thanks for the reply.
This is obvious now in hindsight. I found out that too but forgot to delete the thread. Hopefully it can help others. I managed to reduce project size by over 80% by carefully reading the excellent packaging documentation.