Failed to determine engine directory Swarm agent error

I am getting this error…Can someone please help

3:44:01 PM: [Interface:TryOpenConnection] Local connection established
3:44:01 PM: [Job] Accepted Job 192B2957-4091815F-08C1AEB7-FFCEFD55
3:44:02 PM: [Job] Launched Job UnrealLightmass_2015-06-25_08-09-49_1313736-64bit.exe
3:44:02 PM: [Job] PID is 7020
3:44:02 PM: [Job] GUID is “192B2957-4091815F-08C1AEB7-FFCEFD55”
3:44:02 PM: LogLightmass:Display: Lightmass Win64 started on: PHD-16. Command-line: 192B29574091815F08C1AEB7FFCEFD55
3:44:02 PM: Lightmass Win64 started on: PHD-16. Command-line: 192B29574091815F08C1AEB7FFCEFD55
3:44:02 PM: LogLightmass:Display: Processing scene GUID: 192B29574091815F08C1AEB7FFCEFD55 with 10 threads
3:44:02 PM: Processing scene GUID: 192B29574091815F08C1AEB7FFCEFD55 with 10 threads
3:44:02 PM: Building static lighting…
3:44:02 PM: LogGenericPlatformMisc:Warning: Failed to determine engine directory: Defaulting to …/…/…/Engine/
3:44:02 PM: Failed to determine engine directory: Defaulting to …/…/…/Engine/
3:44:02 PM: [Job] Found a parent connection for PID 7020
3:44:02 PM: [Job] 26EB33BD → 2BB274E6
3:44:02 PM: [Interface:TryOpenConnection] Local connection established
3:44:03 PM: Measured CPU frequency: 3.33 GHz
3:44:03 PM: FStaticLightingSystem started using GKDOPMaxTrisPerLeaf: 4
3:44:03 PM: Number of texture mappings: 474
3:44:03 PM: Number of fluid mappings: 0
3:44:03 PM: Number of landscape mappings: 0
3:44:03 PM: Number of BSP mappings: 0
3:44:03 PM: Number of static mesh instance mappings: 474
3:44:03 PM: Reserving memory for 474 meshes, 881450 vertices, 1211412 triangles
3:44:04 PM: Scene surface area calculated at 18.534 million units (0.000% of the estimated 41451012.000 million units)
3:44:04 PM: Importance volume surface area calculated at 18.534 million units (144.846% of the estimated 12.796 million units)
3:44:04 PM: Preallocated 0.2Gb for kDOP nodes and triangles
3:44:06 PM: Building kDOP took 1.43 seconds.
3:44:06 PM: Static lighting kDOP: 794450 nodes, 397226 leaves, 1588904 triangles, 879242 vertices
3:44:06 PM: Static lighting kDOP: 24.163% wasted space in leaves
3:44:06 PM: kDopTree.Nodes : 84.9Mb
3:44:06 PM: kDopTree.SOATriangles : 109.1Mb
3:44:06 PM: kDOPTriangles : 0.0Mb
3:44:06 PM: TrianglePayloads : 36.8Mb
3:44:06 PM: MeshInfos : 0.0Mb
3:44:06 PM: Vertices : 13.4Mb
3:44:06 PM: UVs : 6.7Mb
3:44:06 PM: LightmapUVs : 6.7Mb
3:44:06 PM: Static lighting kDOP: 794450 nodes, 397226 leaves, 1588904 triangles, 879242 vertices, 257.6 Mb
3:44:06 PM: Processing…
3:44:06 PM: Couldn’t gather the requested number of indirect photon paths! 0 gathered
3:44:06 PM: EmitDirectPhotons complete, 0.000 million photons emitted in 0.1 seconds
3:44:06 PM: EmitIndirectPhotons complete, 0.000 million photons emitted in 0.1 seconds
3:44:06 PM: Marking Irradiance Photons complete, 0.000 million photons marked in 0.1 seconds
3:44:55 PM: Caching Irradiance Photons complete, 4.329 million cache samples in 48.8 seconds
3:44:55 PM: Calculate Irradiance Photons complete, 0.000 million irradiance calculations in 0.1 seconds

I’m having the same problem myself now, curious what the solution would be.

Hi kiranlaks -

I’ve only seen this error before when I launched Swarm Agent from version 4.7 and then built lighting in a 4.8 engine. It went away once I started the 4.8 installation of Swarm Agent. Since the engine was not in the directory swarm expected it defaulted as above in your log. It however did not keep me from building lighting in the project. Are you experiencing an issue with building the lighting?

Thank You

Eric Ketchum

Hey Eric! I know in my case, I have 2 PCs dedicated to Swarm (running Windows 7, fully updated and using the 4.8 swarm agents/coordinator)…coordinator sees my own workstation and the other agents, but when I build (in this case it’s a full level) it never distributes the jobs to Swarm.

The error that stands out to me (didn’t see anything else when changing to super verbose) was “Failed to determine engine directory: Defaulting to …/…/…/Engine/.”

Hi JParkerRH -

We have had an issue with Coordinator’s not working correctly when they initiate the build in the past, but that should be corrected in 4.8. To confirm for me can you please look in the About UNreal Engine tab under Help and give me the full Changelist number, it should begin 4.8.2-#######.

Thank You

Eric Ketchum

Sure thing!

4.8.2-2614606+++depot+UE4-Releases+4.8

Hi JParkerRH -

I was able to reproduce that the Swarm Coordinator is not distributing the lighting builds as expected and have entered a report as UE-18882. As we continue to investigate this issue, I will keep you informed here.

Thank you for your assistance in tracking this down -

Eric Ketchum