# AutomationTool Exited with ExitCode 6

**URL:** <https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** unreal-engine, UE4-26, question\
**Created:** [January 22, 2022, 4:44am UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119 "2022-01-22T04:44:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![origin.coda](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@origin.coda](https://forums.unrealengine.com/u/origin.coda)\
**Post date:** [January 22, 2022, 4:44am UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/1 "2022-01-22T04:44:05Z")

</div>

**Error Code**

Took 2444.5545271s to run UnrealBuildTool.exe, ExitCode=6  
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool failed. See log for more details. (C:\Tools\UnrealEngine\Engine\Programs\AutomationTool\Saved\Logs\UBT-UE426-Win64-Development.txt)  
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=6 (6)  
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED  
PackagingResults: Error: Unknown Error

**Context**  
I ran Unreal Engine 4 from the source code in Visual Studio. After adding assets, I realized that I ran out of space, so I uninstalled Visual Studio since I didn’t know that I would need this to actually package the whole thing. I reinstalled it then, built the UE4.sln file, and built the AutomationTool as well. However, after packaging all 700+ files, it gave me the error code I specified in the first section of this post.

**Full Error Message**  
UnrealBuildTool.Main: CompilationResultException: Error: OtherCompilationError  
UnrealBuildTool.Main: at UnrealBuildTool.ActionGraph.ExecuteActions(BuildConfiguration BuildConfiguration, List`1 ActionsToExecute) in C:\Tools\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\System\ActionGraph.cs:line 230 UnrealBuildTool.Main: at UnrealBuildTool.BuildMode.Build(TargetMakefile[] Makefiles, List`1 TargetDescriptors, BuildConfiguration BuildConfiguration, ISourceFileWorkingSet WorkingSet, BuildOptions Options, FileReference WriteOutdatedActionsFile) in C:\Tools\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 483  
UnrealBuildTool.Main: at UnrealBuildTool.BuildMode.Execute(CommandLineArguments Arguments) in C:\Tools\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 226  
UnrealBuildTool.Main: at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in C:\Tools\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 550  
Timeline.Print: Timeline:  
Timeline.Print:  
Timeline.Print: [0.000]  
Timeline.Print: 0.000   
Timeline.Print: 0.040 FileMetadataPrefetch.QueueEngineDirectory()  
Timeline.Print: 0.047 XmlConfig.ReadConfigFiles()  
Timeline.Print: 0.155 SingleInstanceMutex.Acquire()  
Timeline.Print: 0.155 UEBuildPlatform.RegisterPlatforms()  
Timeline.Print: 0.157 0.001 Initializing InstalledPlatformInfo  
Timeline.Print: 0.236 0.080 Querying types  
Timeline.Print: 0.239 0.083 MacPlatformFactory  
Timeline.Print: 0.305 0.149 TVOSPlatformFactory  
Timeline.Print: 0.318 0.162 AndroidPlatformFactory  
Timeline.Print: 0.325 0.169 HoloLensPlatformFactory  
Timeline.Print: 0.333 0.178 IOSPlatformFactory  
Timeline.Print: 0.353 0.197 LinuxPlatformFactory  
Timeline.Print: 0.360 0.204 LuminPlatformFactory  
Timeline.Print: 0.364 0.208 WindowsPlatformFactory  
Timeline.Print: 0.377 DeleteJunk()  
Timeline.Print: 0.383 TargetDescriptor.ParseCommandLine()  
Timeline.Print: 0.421   
Timeline.Print: 0.446 UEBuildTarget.Create()  
Timeline.Print: 0.452 0.005 RulesCompiler.CreateTargetRulesAssembly()  
Timeline.Print: 0.452 0.005 0.000   
Timeline.Print: 0.585 0.139 0.133 Finding engine modules  
Timeline.Print: 0.620 0.173 0.167 Finding plugin modules  
Timeline.Print: 0.626 0.179 0.173   
Timeline.Print: 0.775 0.329 0.323 Finding program modules  
Timeline.Print: 0.794 0.348 0.342 Finding program targets  
Timeline.Print: 0.808 0.362 RulesAssembly.CreateTargetRules()  
Timeline.Print: 0.950 0.503 UEBuildTarget constructor  
Timeline.Print: 0.956 0.510 0.006 Reading source file metadata cache  
Timeline.Print: 1.068 0.621 UEBuildTarget.PreBuildSetup()  
Timeline.Print: 1.603 UEBuildTarget.Build()  
Timeline.Print: 1.603 0.000   
Timeline.Print: 1.664 0.060 ExternalExecution.SetupUObjectModules()  
Timeline.Print: 1.725 0.121   
Timeline.Print: 1.970 0.366 ExternalExecution.UpdateDirectoryTimestamps()  
Timeline.Print: 2.208 0.604 UEBuildBinary.Build()  
Timeline.Print: 4.403 2.799   
Timeline.Print: 4.529 ActionGraph.CheckPathLengths  
Timeline.Print: 4.535   
Timeline.Print: 4.560 Reading action history  
Timeline.Print: 4.561 Reading dependency cache  
Timeline.Print: 4.565 Prefetching include dependencies  
Timeline.Print: 4.595 Cache outdated actions  
Timeline.Print: 4.764   
Timeline.Print: 4.785 ActionGraph.ExecuteActions()  
Timeline.Print: 2444.270   
Timeline.Print: 2444.370 FileMetadataPrefetch.Stop()  
Timeline.Print: [2444.374]

---

<div class="post-metadata">

**Author:** ![origin.coda](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@origin.coda](https://forums.unrealengine.com/u/origin.coda)\
**Post date:** [January 22, 2022, 8:22am UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/2 "2022-01-22T08:22:29Z")

</div>

Update: I tried to read the logs line by line and analyse the .cs files specified within to no avail.

---

<div class="post-metadata">

**Author:** ![origin.coda](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@origin.coda](https://forums.unrealengine.com/u/origin.coda)\
**Post date:** [January 23, 2022, 2:19am UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/3 "2022-01-23T02:19:30Z")

</div>

Bump! Anyone know how to solve this yet?

---

<div class="post-metadata">

**Author:** ![malcriado](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/malcriado/32/1081648_2.png) [@malcriado](https://forums.unrealengine.com/u/malcriado)\
**Post date:** [January 23, 2022, 10:26pm UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/4 "2022-01-23T22:26:42Z")

</div>

Is this a working project or you are migrating from a previous UE4 version?

---

<div class="post-metadata">

**Author:** ![origin.coda](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@origin.coda](https://forums.unrealengine.com/u/origin.coda)\
**Post date:** [January 24, 2022, 4:56am UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/5 "2022-01-24T04:56:32Z")

</div>

This is a working project! I think the main problem here is literally because I reinstalled Visual Studio before I built the final project from within the Unreal Editor… I have no clue how to fix this though.

---

<div class="post-metadata">

**Author:** ![killerbean](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@killerbean](https://forums.unrealengine.com/u/killerbean)\
**Post date:** [January 24, 2022, 6:12pm UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/6 "2022-01-24T18:12:44Z")

</div>

I am also stuck with same error

---

<div class="post-metadata">

**Author:** ![origin.coda](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@origin.coda](https://forums.unrealengine.com/u/origin.coda)\
**Post date:** [January 25, 2022, 4:34am UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/7 "2022-01-25T04:34:53Z")

</div>

Did you also reinstall Visual Studio like me?

---

<div class="post-metadata">

**Author:** ![killerbean](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@killerbean](https://forums.unrealengine.com/u/killerbean)\
**Post date:** [January 25, 2022, 7:20pm UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/8 "2022-01-25T19:20:25Z")

</div>

No. I tried building again and it passed this time without any error

---

<div class="post-metadata">

**Author:** ![origin.coda](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@origin.coda](https://forums.unrealengine.com/u/origin.coda)\
**Post date:** [January 26, 2022, 7:29am UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/9 "2022-01-26T07:29:21Z")

</div>

Alright, so after disabling lots of the plugins, moving it to a larger space and rebuilding everything, I no longer have this error. Weird.

I would suggest anyone that has the same problem to try and move their output directory or at least make a ton of space in their output drive.

Thanks everyone!

---

<div class="post-metadata">

**Author:** ![gwenfish](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gwenfish](https://forums.unrealengine.com/u/gwenfish)\
**Post date:** [March 28, 2022, 4:44pm UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/10 "2022-03-28T16:44:30Z")

</div>

我也碰到了相同的问题，后来发现这是因为我修改了项目最顶层文件夹的名称、并且命名不规范导致的（我使用了空格）。解决方法是，我将项目文件命中的空格去掉，就好了。

---

<div class="post-metadata">

**Author:** ![Mahdiyar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mahdiyar/32/495597_2.png) [@Mahdiyar](https://forums.unrealengine.com/u/Mahdiyar)\
**Post date:** [April 9, 2022, 7:25am UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/11 "2022-04-09T07:25:02Z")

</div>

I got exit code 6 today and tried disabling plugins but it didn’t work actually. finally I realized it happened because I had changed the game icon. so I turned the default image back and it worked properly.

---

<div class="post-metadata">

**Author:** ![newbprofi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@newbprofi](https://forums.unrealengine.com/u/newbprofi)\
**Post date:** [September 18, 2022, 6:53am UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/12 "2022-09-18T06:53:47Z")

</div>

Look upper, or watch log, described in error, you just have some fatal errors. Even if you did compile code before. For example, i had fatal error: impossible to find some include header file.

---

<div class="post-metadata">

**Author:** ![Manoloon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/manoloon/32/1001796_2.png) [@Manoloon](https://forums.unrealengine.com/u/Manoloon)\
**Post date:** [October 11, 2022, 12:09pm UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/13 "2022-10-11T12:09:59Z")

</div>

for me was the lack of the parameter -archivedirectory=“E:\Package\5.0\coop\Server”

---

<div class="post-metadata">

**Author:** ![cnywt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cnywt](https://forums.unrealengine.com/u/cnywt)\
**Post date:** [November 7, 2022, 12:22pm UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/14 "2022-11-07T12:22:57Z")

</div>

谢了 哥们 弄了我一整天

---

<div class="post-metadata">

**Author:** ![gwenfish](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gwenfish](https://forums.unrealengine.com/u/gwenfish)\
**Post date:** [November 8, 2022, 3:38pm UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/15 "2022-11-08T15:38:54Z")

</div>

😄

---

<div class="post-metadata">

**Author:** ![artplayer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@artplayer](https://forums.unrealengine.com/u/artplayer)\
**Post date:** [January 2, 2023, 10:21pm UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/16 "2023-01-02T22:21:46Z")

</div>

Hello. I know it’s an old post but I ran into the same problem today and in my case Live Coding was enabled in Editor Preferences → Live Conding and I was trying to compile my code. Disabling LiveCoding everything went back to normal.

Hope it helps someone.

---

<div class="post-metadata">

**Author:** ![Benebot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Benebot](https://forums.unrealengine.com/u/Benebot)\
**Post date:** [January 22, 2023, 8:16pm UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/17 "2023-01-22T20:16:45Z")

</div>

In my case it was because I had simply disabled the plugin Steam VR. Re-enable it will correct the issue (for now).

---

<div class="post-metadata">

**Author:** ![DryreL](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dryrel/32/1042339_2.png) [@DryreL](https://forums.unrealengine.com/u/DryreL)\
**Post date:** [February 21, 2023, 11:53am UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/18 "2023-02-21T11:53:29Z")

</div>

Same error. Reinstalling Visual Studio didn’t solve the problem.

---

<div class="post-metadata">

**Author:** ![Vertex\_Soup](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vertex\_Soup](https://forums.unrealengine.com/u/Vertex_Soup)\
**Post date:** [March 12, 2023, 7:33pm UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/19 "2023-03-12T19:33:26Z")

</div>

Thank you, this was THE ISSUE for me as well. It got auto enable the moment I changed source code access to Rider.

---

<div class="post-metadata">

**Author:** ![user\_3d9b5e193c43d19a1fa33727bb38019bd02e1557fb412725648bcf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user\_3d9b5e193c43d19a1fa33727bb38019bd02e1557fb412725648bcf](https://forums.unrealengine.com/u/user_3d9b5e193c43d19a1fa33727bb38019bd02e1557fb412725648bcf)\
**Post date:** [April 23, 2023, 9:37pm UTC](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119/20 "2023-04-23T21:37:00Z")

</div>

我将Intermediate文件夹下的build和Source文件夹删除后解决了这个问题，虚幻引擎会为你生成新的文件，如果还是无法解决的话，尝试将一起打包成功的工程文件中的build和Source文件夹进行替换，我在此之前更改了项目名称，导致了这个问题

[Next page](https://forums.unrealengine.com/t/automationtool-exited-with-exitcode-6/274119.md?page=2)
