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.

  • Blocking: the package fails
  • Build stage: UnrealBuildTool, ExitCode=8
  • From user reports, not yet reproduced in our lab

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

  1. Look at the path in the error: the denied path.
  2. 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.
  3. Exclude the engine and project folders from real-time antivirus scanning, then retry.
  4. 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.

Reports and sources

Decode your log

Paste your packaging log, or drop Log.txt with Cook-*.txt / UBA-*.txt. The analysis runs in your browser: the log is never uploaded.

Get notified when the in-editor plugin launches

The same decoder inside the Unreal Editor, with checks that catch these errors before you cook.