Access to the path is denied when packaging in Unreal Engine
A .NET build tool (AutomationTool, Turnkey or UnrealBuildTool) tried to write a file and Windows refused. These tools write inside the engine folder, so an engine installed in a protected location fails here.
Paste your log: find the cause in seconds Runs in your browser, nothing is uploaded.
Common causes
- The engine is installed under C:\Program Files and the build runs without administrator rights.
- Antivirus or another process is locking the file.
- The folder is read-only, or owned by another user account.
How to fix it
- Look at the path in the error: the denied path.
- If it is inside Program Files, move the engine to a folder your user owns (for example D:\Epic\UE_5.x), or grant your account write access to the engine folder.
- Exclude the engine and project folders from real-time antivirus scanning, then retry.
- As a quick test, run the editor once as administrator: if packaging works, the problem is permissions.
Questions
Can it be caught before cooking?
Yes, it can be checked before you start a cook: Test write access to Engine/Binaries, Engine/Intermediate and Engine/Programs/AutomationTool.