AcademyFix UE5 Lighting Build Fails Instantly 🔦
Deep DiveBeginner

Fix UE5 Lighting Build Fails Instantly 🔦

Lighting build stuck at 99% or failing? Here is how to fix common Swarm Agent errors and get your static lighting baked.

November 25, 2025
Cyrus 365
1 min read
UE5LightingSwarm AgentOptimization

There is nothing worse than waiting for a lighting build only to have it fail or hang indefinitely. Usually, the culprit is the Swarm Agent. Here is the quick fix! âš¡

Method 1: Clean the Swarm Cache

1

Look in your Windows System Tray (bottom right) for the Swarm Agent icon (yellow/orange 'S').

2

Double-click it to open the window.

3

Go to the Menu bar → Cache → Clean.

4

Click Yes to confirm.

This clears out old, potentially corrupted lighting data. Try building again!

Method 2: Force Validate

If cleaning the cache didn't work, we need to force Swarm to validate the data.

1

In the Swarm Agent window, click the Settings tab.

2

Set CacheFolder to a path with plenty of space.

3

Change CleanOldCache to True.

Pro Tip: Firewall Issues

If Swarm won't even start, your firewall might be blocking it. Ensure this executable has permission:

text
Engine\Binaries\DotNET\UnrealBuildTool\SwarmAgent.exe