How to package multiple projects concurrently?

From the command line I am trying to package two different projects at the same time using a command like this:

BuildCookRun -project="MyProject.uproject" -noP4 -platform=Linux -clientconfig=Development -serverconfig=Development -cook -allmaps -build -stage -pak -archive -archivedirectory="."

but when the second one runs I get this error:

Unhandled exception: System.Exception: A conflicting instance of AutomationTool is already running. Current location: C:\Program Files\Epic Games\UE_5.3\Engine\Binaries\DotNET\AutomationTool\AutomationTool.dll. A process manager may be used to determine the conflicting process and what tool may have launched it at UnrealBuildBase.ProcessSingleton.RunSingleInstanceThread(Func1 Main, TaskCompletionSource1 Result, Boolean bWaitForUATMutex, ILogger Logger) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\Shared\EpicGames.Build\Automation\ProcessSingleton.cs:line 72 --- End of stack trace from previous location --- at UnrealBuildBase.ProcessSingleton.RunSingleInstanceAsync(Func 1 Main, Boolean bWaitForUATMutex, ILogger Logger) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\Shared\EpicGames.Build\Automation\ProcessSingleton.cs:line 42 at AutomationToolDriver.Program.Main(String[] Arguments) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\AutomationTool\Program.cs:line 446 AutomationTool executed for 0h 0m 0s AutomationTool exiting with ExitCode=1 (Error_Unknown)

How can I do this so that I can have multiple simultaneous builds?

1 Like

You… can’t.

It’s literally telling you, “No. Uh-uh. Won’t do this.”

Other things you can’t do is:

Save while multiple instances of the same project are open.
ZIP and PACKAGE at the same time.
ZIP more than one instance at a time.
Save while a project is in a cooking phase of packaging.

If someone knows such sorcery to do any of these things, I’d personally love to know!