# Swarm Lighting Build Fails in Source Build. "Failed to cache the required dependancy" HELP!

**URL:** <https://forums.unrealengine.com/t/swarm-lighting-build-fails-in-source-build-failed-to-cache-the-required-dependancy-help/793310>\
**Category:** Rendering\
**Tags:** swarm, source-build, swarm-agent, unreal-engine, question\
**Created:** [March 17, 2023, 11:53pm UTC](https://forums.unrealengine.com/t/swarm-lighting-build-fails-in-source-build-failed-to-cache-the-required-dependancy-help/793310 "2023-03-17T23:53:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kinglumps](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kinglumps](https://forums.unrealengine.com/u/Kinglumps)\
**Post date:** [March 17, 2023, 11:53pm UTC](https://forums.unrealengine.com/t/swarm-lighting-build-fails-in-source-build-failed-to-cache-the-required-dependancy-help/793310/1 "2023-03-17T23:53:33Z")

</div>

I’ve been trying to build lighting in a source build of UE 5.1 but I keep getting “Lighting Build Failed” after starting the Swarm Connection. I’ve rebuilt UnrealLightmass and followed all the solutions listed at the bottom here:

> **[Unreal Swarm](https://docs.unrealengine.com/4.27/en-US/RenderingAndGraphics/Lightmass/UnrealSwarmOverview/)**
>
> An overview of Unreal Swarm, our task distribution system for computationally expensive applications, including Unreal Lightmass, the high-quality static global illumination solver in Unreal Engine 4.

The error in Swarm is:

23:51:36: [Job] Accepted Job E9BD80D0-4CF00661-8D49658B-E97BA0AB  
23:51:37: [Interface:CacheAllFiles] Failed to cache the required dependency: S:\ps5ue5\UnrealEngine-release\Engine\Binaries\Win64\embree.dll  
23:51:37: [Job] AddTask: Rejected, cannot add a task to a running job  
23:51:37: [CloseConnection] Closing connection 4546072C using handle 4546072C  
23:51:37: [CloseConnection] Connection confirmed for disconnection 4546072C  
23:51:37: [CloseConnection] Closing orphaned Job (E9BD80D0-4CF00661-8D49658B-E97BA0AB)  
23:51:37: [CloseConnection] Connection disconnected 4546072C

Any ideas what this might mean and what the solution is?

Cheers, Lionel

Edit: I’ve also tried building the lighting in a seperate project using the same Unreal Source build and it fails the same
