# Intermittent UBA Horde failures during shader compilation in cook 

**URL:** <https://forums.unrealengine.com/t/intermittent-uba-horde-failures-during-shader-compilation-in-cook/2718796>\
**Category:** Pipeline & Plugins\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [March 25, 2026, 4:39pm UTC](https://forums.unrealengine.com/t/intermittent-uba-horde-failures-during-shader-compilation-in-cook/2718796 "2026-03-25T16:39:41Z")\
**Posts on this page:** 3\
**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:** [March 25, 2026, 4:39pm UTC](https://forums.unrealengine.com/t/intermittent-uba-horde-failures-during-shader-compilation-in-cook/2718796/1 "2026-03-25T16:39:41Z")

</div>

Hi,

We’re currently integrating UBA for both C++ and shader compilation in Unreal Engine 5.6, and we’re hitting intermittent failures during shader compilation in cook.

**Context**

- Unreal Engine version: 5.6
- Horde / UBA agents: 5.7
- UBA enabled for:
  - C++ compilation (working reliably)
  - Shader compilation (enabled, but unstable)

- Cook duration: ~2 hours
- Issue is intermittent, the same build often succeeds on retry

**Configuration**

BuildConfiguration.xml

```auto
<bAllowUBA>true</bAllowUBA>
<bAllowUBAShaderCompile>true</bAllowUBAShaderCompile>

```

DefaultEngine.ini

```auto
[Uba.Provider.Horde]
Enabled=true
ServerUrl="<https://can-horde-server>..."
Pool=BuildMachine
Cluster=default
MaxCores=2048
 
[UbaController]
Providers=Uba.Provider.Horde
bReuseProcesses=True
 
[DevOptions.Shaders]
bAllowCompilingThroughWorkers=True
bAllowAsynchronousShaderCompiling=True
bAllowDistributedShaderCompiling=True
bUseXGEController=False
bUseHordeShaderCompiler=True
 
MaxShaderJobBatchSize=16
WorkerTimeToLive=600
NumUnusedShaderCompilingThreads=2

```

**Observed Behavior**

At the beginning of the cook, UBA + Horde appears to initialize correctly:

```auto
LogUbaHorde: UBA/Horde Configuration:
  Server: <https://can-horde-server>...
  Pool: BuildMachine

```

We also see:

```auto
LogShaderCompilers: Display: Using UBA Controller for shader compilation
LogUbaController: Starting up UBA/Horde connection for session ...

```

However, later during the cook:

`LogUbaController: Shutting down UBA/Horde connection`Then shortly after:

```auto
LogUbaController: Starting up UBA/Horde connection for session ...
LogUbaHorde: Warning: Getting Horde server URL failed [Source: Not found]
LogUbaHorde: Error: Failed to create HttpClient for UbaAgent

```

At this point the cook fails.

**What we observed**

- The same build often succeeds on retry
- The failure happens after a successful initial Horde session
- The error occurs during re-initialization of UBA/Horde
- C++ compilation via UBA/Horde is stable
- Issue appears only in shader compilation during cook
- Logs suggest the ServerUrl becomes unavailable on second initialization

**What we tried**

- Fixed INI parsing issues (quotes around ServerUrl)
- Explicit

`[UbaController] Providers=...`\* Enabled

`bUseHordeShaderCompiler=True`\* Increased

`WorkerTimeToLive`\* Enabled

`bReuseProcesses=True`\* Cleared Saved/Intermediate configs

- Verified Horde pool and agents are valid

**Suspicions**

We suspect one (or a combination) of the following:

1. UbaController lifecycle issue in UE 5.6

- Config not reloaded on second initialization

1. Version mismatch

- UE 5.6 client vs Horde/UBA agents 5.7

1. Shader compilation path being less stable than UBT path
2. Session teardown/recreation during long cooks causing loss of Horde config

**Questions**

1. Is UE 5.6 expected to be stable for UBA + Horde shader compilation during cook?
2. Are client/agent version mismatches (5.6 vs 5.7) known to cause this kind of issue?
3. Should the Horde config be reloaded on every UbaController initialization?
4. Is there a known fix or patch for this in 5.6?
5. Are there recommended settings to prevent UbaController teardown during long cooks?

Any guidance would be greatly appreciated, especially if this is a known issue or something already fixed in later versions. Happy to provide full logs or test specific changes if needed.

Thanks!

Nathaël Goudreau

PS : Appologies for the duplicate post, I posted in [https://forums.unrealengine.com/](https://forums.unrealengine.com/) before this post.

[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 25, 2026, 4:39pm UTC](https://forums.unrealengine.com/t/intermittent-uba-horde-failures-during-shader-compilation-in-cook/2718796/2 "2026-03-25T16:39:46Z")

</div>

**Steps to Reproduce**  
Launch cook with UBA enabled for shader compilation

Observe that UBA Controller was properly initialized in the log

```auto
LogUbaHorde: UBA/Horde Configuration:
  Server: <https://can-horde-server>...
  Pool: BuildMachine

```

```auto
LogShaderCompilers: Display: Using UBA Controller for shader compilation
LogUbaController: Starting up UBA/Horde connection for session ...

```

Observe later in the cook process that UBA Controller shuts down

```auto
LogUbaController: Shutting down UBA/Horde connection

```

Observe that UBA Controller fails to reinitialize with error : Failed to create HttpClient for UbaAgent and fails the cooking

```auto
LogUbaController: Starting up UBA/Horde connection for session ...
LogUbaHorde: Warning: Getting Horde server URL failed [Source: Not found]
LogUbaHorde: Error: Failed to create HttpClient for UbaAgent

```

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![JulianGamble](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JulianGamble](https://forums.unrealengine.com/u/JulianGamble)\
**Post date:** [March 30, 2026, 8:51pm UTC](https://forums.unrealengine.com/t/intermittent-uba-horde-failures-during-shader-compilation-in-cook/2718796/3 "2026-03-30T20:51:06Z")

</div>

Hey there,

There is a lot to dig into here, but one thing that wasn’t clear is do you have a [Horde] section with serverurls?

There could very-well be some mismatch between 5.6 and 5.7 here.

Julian

[Attachment Removed]
