Was trying to build my project and got this error:
UATHelper: Packaging (Windows (64-bit)): Copying NonUFSFiles to staging directory: C:.…\Saved\StagedBuilds\WindowsNoEditor
UATHelper: Packaging (Windows (64-bit)): ERROR: System.IO.IOException: The process cannot access the file ‘C:\Users.…\Saved\StagedBuilds\WindowsNoEditor\LandNav.exe’ because it is being used by another process.
The fix was to include some maps in the “include maps” list in project packaging settings. Just wanted to report this here because the build error seemed to suggest something else which was confusing, so maybe this helps somebody in future.
(unrelated note, this new thread is requiring me to add a tag, but the list of tags is limited)
Same problem here. What are the maps you included there?
Correlated or not to the project or generic maps?
What I receive in Unreal 5.0 Pre 2:
Took 60,4719298s to run UnrealPak.exe, ExitCode=0
UATHelper: Packaging (Windows): Copying NonUFSFiles to staging directory: C:\Users\DEV\Desktop\BMK_VEE_UE5\Saved\StagedBuilds\Windows
UATHelper: Packaging (Windows): ERROR: System.IO.IOException: The process cannot access the file 'C:\Users\DEV\Desktop\BMK_VEE_UE5\Saved\StagedBuilds\Windows\BMK_VEE_UE5.exe' because it is being used by another process.
UATHelper: Packaging (Windows): at System.IO.FileSystem.OpenHandle(String fullPath, Boolean asDirectory)
UATHelper: Packaging (Windows): at System.IO.FileSystem.SetLastWriteTime(String fullPath, DateTimeOffset time, Boolean asDirectory)
UATHelper: Packaging (Windows): at System.IO.File.SetLastWriteTimeUtc(String path, DateTime lastWriteTimeUtc)
UATHelper: Packaging (Windows): at AutomationTool.CommandUtils.CopyFileIncremental(FileReference Source, FileReference Dest, Boolean bAllowDifferingTimestamps, List`1 IniKeyDenyList, List`1 IniSectionDenyList) in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\CommandUtils.cs:line 1422
UATHelper: Packaging (Windows): at AutomationScripts.Project.CopyOrWriteManifestFilesToStageDir(Boolean bPerformCopy, DeploymentContext SC, Dictionary`2 Mapping, String ManifestName) in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 1745
UATHelper: Packaging (Windows): at AutomationScripts.Project.CopyUsingStagingManifest(ProjectParams Params, DeploymentContext SC) in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 1806
UATHelper: Packaging (Windows): at AutomationScripts.Project.ApplyStagingManifest(ProjectParams Params, DeploymentContext SC) in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 4017
UATHelper: Packaging (Windows): at AutomationScripts.Project.CopyBuildToStagingDirectory(ProjectParams Params) in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 4565
UATHelper: Packaging (Windows): at BuildCookRun.DoBuildCookRun(ProjectParams Params) in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 207
UATHelper: Packaging (Windows): at BuildCookRun.ExecuteBuild() in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 41
UATHelper: Packaging (Windows): at AutomationTool.BuildCommand.Execute() in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 344
UATHelper: Packaging (Windows): at AutomationTool.Automation.Execute(List`1 CommandsToExecute, Dictionary`2 Commands) in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 254
UATHelper: Packaging (Windows): at AutomationTool.Automation.Process(ParsedCommandLine AutomationToolCommandLine, StartupTraceListener StartupListener, HashSet`1 ScriptModuleAssemblies) in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 153
UATHelper: Packaging (Windows): (see C:\Users\DEV\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+Epic+Games+UE_5.0\Log.txt for full exception trace)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 6m 19s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Windows): Updating environment variables set by a Turnkey sub-process
UATHelper: Packaging (Windows): Impossibile trovare il percorso specificato.
UATHelper: Packaging (Windows): Impossibile trovare il percorso specificato.
Sorry I did not update this. It was not related to including maps. In fact I still have this problem and I have not found a way to get around it.
However, the build does actually work, you just have to get it in the saved>staged builds folder.
I’ve seen a few threads about this problem and tried every solution I could find, but I still cant figure a solution. I don’t care so much though because I’m still able to get the build despite the error.