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.
25 Nov 2025Cyrus 3651 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
- 1Look in your Windows System Tray (bottom right) for the Swarm Agent icon (yellow/orange 'S').
- 2Double-click it to open the window.
- 3Go to the Menu bar β Cache β Clean.
- 4Click 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.
- 1In the Swarm Agent window, click the Settings tab.
- 2Set CacheFolder to a path with plenty of space.
- 3Change 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