# Staging step "Failed sending oplog request to Zen ..." when using BuildCookRun -cook -stage together, have a workaround, but is this a bug or a misconfiguration? 

**URL:** <https://forums.unrealengine.com/t/staging-step-failed-sending-oplog-request-to-zen-when-using-buildcookrun-cook-stage-together-have-a-workaround-but-is-this-a-bug-or-a-misconfiguration/2731838>\
**Category:** Pipeline & Plugins\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [February 19, 2026, 7:02pm UTC](https://forums.unrealengine.com/t/staging-step-failed-sending-oplog-request-to-zen-when-using-buildcookrun-cook-stage-together-have-a-workaround-but-is-this-a-bug-or-a-misconfiguration/2731838 "2026-02-19T19:02:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [February 19, 2026, 7:02pm UTC](https://forums.unrealengine.com/t/staging-step-failed-sending-oplog-request-to-zen-when-using-buildcookrun-cook-stage-together-have-a-workaround-but-is-this-a-bug-or-a-misconfiguration/2731838/1 "2026-02-19T19:02:29Z")

</div>

Starting on 5.7, our Staging step intermittently gets this error:

```auto
Reading oplog from Zen...
Failed sending oplog request to Zen at [::1]:8558 for oplog ABC.1a23b45c.Windows: Error while copying content to a stream..
(see D:\Horde\ABC\Sync\Unreal\Engine\Programs\AutomationTool\Saved\Logs\BuildCookRun\Log.txt for full exception trace)
 
AutomationException: Failed sending oplog request to Zen at [::1]:8558 for oplog ABC.1a23b45c.Windows: Error while copying content to a stream..
   at AutomationScripts.Project.ReadZenCookedFilesFromZenServer(ProjectParams Params, DeploymentContext SC, Boolean bAutoLaunch, String PackageStoreFileArgName, String PackageStoreFileArgValue) in D:\Horde\ABC\Sync\Unreal\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 1001
   ...

```

Occurs maybe once every 10 runs, on different machines and target platforms.

Our Staging step is combined into a single BuildCookRun command `-cook -stage -package` and looks like this:

```auto
<Property Name="PROJECT" Value="ABC"/>
<Property Name="Platform" Value="Win64"/>
<Property Name="Config" Value="Test"/>
<Property Name="ArchiveDirectory" Value="$(RootDir)\$(PROJECT)\Publish\Package"/>
<!-- Configuration: Root=(Type=Hierarchical, Inner=<Local>, Inner=<Remote>, Inner=<Cloud>) -->
<Property Name="DDCGraph" Value="DDCGraph_Horde"/>
 
<Command Name="BuildCookRun" Arguments="-project=$(PROJECT) -target=$(PROJECT) -platform=$(Platform) -configuration=$(Config) -archivedirectory=$(ArchiveDirectory) -NoCodeSign -skipbuild -cook -CookIncremental -ddc=$(DDCGraph) -stage -pak -iostore -package -archive -crashreporter -prereqs"/>

```

Debugging showed 3 scenarios for that Staging step “Reading oplog from Zen…” `ReadZenCookedFilesFromZenServer()`:

1. `IsZenServerRunning(SocketHostNameAndPort)` = true, and the Zen GET request succeeds.
2. `IsZenServerRunning(SocketHostNameAndPort)` fails the GET `health/ready` with “No connection could be made because the target machine actively refused it.”, resulting in calling `RunUnrealPak(…, “ZenAutoLaunch”)`, and then continues successfully.
  1. This is the most common scenario for successful runs.

3. `IsZenServerRunning(SocketHostNameAndPort)` = true, and the Zen GET request fails “Error while copying content to a stream..”.

Looking in the Zen logs for all the scenarios, they all start during the Cook step and look similar going in the Staging step regardless of outcome.

**The temporary fix that works for us so far is to split out the Cook into its own Node/step `\<Cook …/\>`.**

Is this a bug or a misconfiguration on our part? I split it out the steps initially thinking Zen may need some time after Cooking, but the most common scenario is still above #2 where the health GET fails.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![MoreOrLessRandom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MoreOrLessRandom](https://forums.unrealengine.com/u/MoreOrLessRandom)\
**Post date:** [March 3, 2026, 11:40pm UTC](https://forums.unrealengine.com/t/staging-step-failed-sending-oplog-request-to-zen-when-using-buildcookrun-cook-stage-together-have-a-workaround-but-is-this-a-bug-or-a-misconfiguration/2731838/2 "2026-03-03T23:40:10Z")

</div>

This seems like a bug. To help me understand how it might be happening, can you tell me if you are running with LimitProcessLifetime config value (described [here](https://dev.epicgames.com/documentation/en-us/unreal-engine/how-to-use-zenserver-streaming-to-play-on-target-in-unreal-engine)) set to true or false?

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![MoreOrLessRandom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MoreOrLessRandom](https://forums.unrealengine.com/u/MoreOrLessRandom)\
**Post date:** [March 16, 2026, 4:51am UTC](https://forums.unrealengine.com/t/staging-step-failed-sending-oplog-request-to-zen-when-using-buildcookrun-cook-stage-together-have-a-workaround-but-is-this-a-bug-or-a-misconfiguration/2731838/3 "2026-03-16T04:51:44Z")

</div>

Ok, could you please test with LimitProcessLifetime set to ~~true~~ false in your INIs? I want to know if this alleviates the problem for you or not. It should not be required, but I want to know if it is necessary to repro this bug.

Edit: I had initially inverted my intent. The thing to try here is setting LimitProcessLifetime=False and report back if that resolves the issue.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![MoreOrLessRandom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MoreOrLessRandom](https://forums.unrealengine.com/u/MoreOrLessRandom)\
**Post date:** [April 30, 2026, 2:21pm UTC](https://forums.unrealengine.com/t/staging-step-failed-sending-oplog-request-to-zen-when-using-buildcookrun-cook-stage-together-have-a-workaround-but-is-this-a-bug-or-a-misconfiguration/2731838/4 "2026-04-30T14:21:03Z")

</div>

Hi,

I’m sorry, I wrote the inverse of what I meant in my response. The thing I’d like to establish is if this problem goes away if people set LimitProcessLifetime=False in their INIs. Apologies for the misdirect.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![MoreOrLessRandom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MoreOrLessRandom](https://forums.unrealengine.com/u/MoreOrLessRandom)\
**Post date:** [May 28, 2026, 3:57pm UTC](https://forums.unrealengine.com/t/staging-step-failed-sending-oplog-request-to-zen-when-using-buildcookrun-cook-stage-together-have-a-workaround-but-is-this-a-bug-or-a-misconfiguration/2731838/5 "2026-05-28T15:57:18Z")

</div>

Ok. Thanks for reporting back. I apologize for writing the inverse of my intent the first time, but I’m glad this has been confirmed as a solution. I’ll see if there are options to make LimitProcessLifetime=True more reliable.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [March 4, 2026, 12:50am UTC](https://forums.unrealengine.com/t/staging-step-failed-sending-oplog-request-to-zen-when-using-buildcookrun-cook-stage-together-have-a-workaround-but-is-this-a-bug-or-a-misconfiguration/2731838/6 "2026-03-04T00:50:19Z")

</div>

We have this in our Project/Config/DefaultEditor.ini Zen.AutoLaunch section, we haven’t specified LimitProcessLifetime:

```auto
[Zen.AutoLaunch]
AllowRemoteNetworkService=true
ExtraArgs=--http asio --gc-cache-duration-seconds 1209600 --gc-interval-seconds 21600 --gc-low-diskspace-threshold 2147483648 --quiet

```

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 1, 2026, 12:38pm UTC](https://forums.unrealengine.com/t/staging-step-failed-sending-oplog-request-to-zen-when-using-buildcookrun-cook-stage-together-have-a-workaround-but-is-this-a-bug-or-a-misconfiguration/2731838/7 "2026-04-01T12:38:19Z")

</div>

Hello,

We are also experiencing this issue on 5.7.2. It is also intermittent in our case; we ran into it twice yesterday with both Test and Shipping build configurations on one specific target platform. The CI pipeline where this issue occurred had multi-process cook enabled with 16 cores (it is not globally enabled, we enable it only on this CI pipeline via -CoreProcessCount=N). We have only seen this issue occur on this pipeline so far, and the issue reproduced on different machines.

We build, cook, stage, and package (i.e. “-build -cook -stage -package”) the build from BuildCookRun in UnrealAutomationTool. We are not using Build Graph. In our configuration files, LimitProcessLifetime is set to true.

Hopefully this helps, feel free to reply back if you need more information. Thanks!

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 22, 2026, 3:17am UTC](https://forums.unrealengine.com/t/staging-step-failed-sending-oplog-request-to-zen-when-using-buildcookrun-cook-stage-together-have-a-workaround-but-is-this-a-bug-or-a-misconfiguration/2731838/8 "2026-04-22T03:17:42Z")

</div>

Hey,

We have just updated our project to 5.7.4, and are also now seeing these same intermittent build failures:

We’ve not configured ZenAutoLaunch in our DefaultEngine.ini, so we’re using the default settings from BaseEngine.ini from 5.7.4

We are also running BuildCookRun with -build -cook -stage -package

We are not using multi process cook

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 11, 2026, 7:47am UTC](https://forums.unrealengine.com/t/staging-step-failed-sending-oplog-request-to-zen-when-using-buildcookrun-cook-stage-together-have-a-workaround-but-is-this-a-bug-or-a-misconfiguration/2731838/9 "2026-05-11T07:47:44Z")

</div>

Hey,

We’ve been running with LimitProcessLifetime=False for a week now, and have not experienced any build failures related to this since!

[Attachment Removed]
