# Why is SwarmAgent crashing after failing to connect to Swarm?

**URL:** <https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058>\
**Category:** Rendering\
**Tags:** swarm, unreal-engine, crash, lighting-problem, Rendering, question\
**Created:** [March 30, 2014, 7:27pm UTC](https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058 "2014-03-30T19:27:23Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a1fbd4ca](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a1fbd4ca](https://forums.unrealengine.com/u/anonymous_user_a1fbd4ca)\
**Post date:** [March 30, 2014, 7:27pm UTC](https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058/1 "2014-03-30T19:27:23Z")

</div>

I am currently unable to build lighting in any of my projects or maps. It stops at 0:00:00 Starting up Swarm Connection… (98%) with the error message “Failed to connect to Swarm”.  
I have tried disabling the Windows firewall, deactivate the antivirus (windows defender) and reinstalling unreal.  
I am currently running version 4.0.1-2027741. Here is the log file of swarm agent.  
Any help would be greatly appreciated.

Swarm Log:

```
Starting up SwarmAgent ...
 ... registering SwarmAgent with remoting service
 ... registering SwarmAgent network channels
 ... initializing SwarmAgent
 ...... checking certificate
 ......... certificate check has failed
 ...... initializing cache
 ......... using cache folder 'C:\Program Files\Unreal Engine\4.0\Engine\Binaries\DotNET/SwarmCache'
 ......... recreating SwarmAgent cache staging area
 ...... initializing connection to SwarmCoordinator
 ......... using SwarmCoordinator on RENDER-01
[PingCoordinator] Determined that we couldn't ping the coordinator
[PingCoordinator] Coordinator ping failed
 ......... SwarmCoordinator failed to be initialized
 ...... initializing local performance monitoring subsystem
 ...... local performance monitoring subsystem initialization failed

```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_56ee28e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_56ee28e6](https://forums.unrealengine.com/u/anonymous_user_56ee28e6)\
**Post date:** [April 3, 2014, 5:09am UTC](https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058/2 "2014-04-03T05:09:56Z")

</div>

Having a similar problem. I’ve uninstalled my anti virus and shut down my firewall. Not even sure where to start to diagnose the problems. Swarm is booting up,but it ‘fails to connect’ and then swarm shuts down (or crashes).

```
My Windows Log:
<?xml version="1.0" encoding="UTF-16"?>
<WERReportMetadata>
	<OSVersionInformation>
		<WindowsNTVersion>6.1</WindowsNTVersion>
		<Build>7601 Service Pack 1</Build>
		<Product>(0x3): Windows 7 Home Premium</Product>
		<Edition>HomePremium</Edition>
		<BuildString>7601.18247.amd64fre.win7sp1_gdr.130828-1532</BuildString>
		<Revision>1130</Revision>
		<Flavor>Multiprocessor Free</Flavor>
		<Architecture>X64</Architecture>
		<LCID>1033</LCID>
	</OSVersionInformation>
	<ParentProcessInformation>
		<ParentProcessId>2088</ParentProcessId>
		<ParentProcessPath>C:\Windows\explorer.exe</ParentProcessPath>
		<ParentProcessCmdLine>C:\Windows\Explorer.EXE</ParentProcessCmdLine>
	</ParentProcessInformation>
	<ProblemSignatures>
		<EventType>CLR20r3</EventType>
		<Parameter0>swarmagent.exe</Parameter0>
		<Parameter1>1.7.2891.0</Parameter1>
		<Parameter2>53342c2f</Parameter2>
		<Parameter3>mscorlib</Parameter3>
		<Parameter4>4.0.30319.18444</Parameter4>
		<Parameter5>52717d7e</Parameter5>
		<Parameter6>3559</Parameter6>
		<Parameter7>2b</Parameter7>
		<Parameter8>System.Text.EncoderFallback</Parameter8>
	</ProblemSignatures>
	<DynamicSignatures>
		<Parameter1>6.1.7601.2.1.0.768.3</Parameter1>
		<Parameter2>1033</Parameter2>
		<Parameter22>f4c1</Parameter22>
		<Parameter23>f4c18d792700773fa4ea1141341d1f90</Parameter23>
		<Parameter24>f101</Parameter24>
		<Parameter25>f101bccf5f3c96c6fccb9276404384a5</Parameter25>
	</DynamicSignatures>
	<SystemInformation>
		<MID>424DD63C-2C5D-4D6B-93AF-83BC650CF57B</MID>
		<MarkerFile>1028_Dell_STU_8100</MarkerFile>
		<SystemManufacturer>Dell Inc.</SystemManufacturer>
		<SystemProductName> XPS 8100</SystemProductName>
		<BIOSVersion>A05</BIOSVersion>
	</SystemInformation>
</WERReportMetadata>

```

Just found the logs: Same problem - certificate check has failed?

Starting up SwarmAgent …  
… registering SwarmAgent with remoting service  
… registering SwarmAgent network channels  
… initializing SwarmAgent  
… checking certificate  
… certificate check has failed  
… initializing cache  
… using cache folder ‘C:\Program Files\Unreal Engine\4.0\Engine\Binaries\DotNET/SwarmCache’  
… recreating SwarmAgent cache staging area  
… initializing connection to SwarmCoordinator  
… using SwarmCoordinator on RENDER-01  
[PingCoordinator] Determined that we couldn’t ping the coordinator  
[PingCoordinator] Coordinator ping failed  
… SwarmCoordinator failed to be initialized  
… initializing local performance monitoring subsystem  
… local performance monitoring subsystem initialization failed

On another note, I have an old version of UDK and swarm runs just fine there.

---

<div class="post-metadata">

**Author:** ![gmpreussner\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmpreussner\_1](https://forums.unrealengine.com/u/gmpreussner_1)\
**Post date:** [April 4, 2014, 1:42pm UTC](https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058/3 "2014-04-04T13:42:52Z")

</div>

The certificate check failure is ok. You can ignore it.

Could please try to go into the Settings and move the Cache directory into another location that is not under C:/ProgramFiles/, i.e. C:/Temp/SwarmCache/ or something like that?

Also try temporarily enabling verbose logging in the Swarm settings. Perhaps the log will provide some more details then, thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_56ee28e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_56ee28e6](https://forums.unrealengine.com/u/anonymous_user_56ee28e6)\
**Post date:** [April 4, 2014, 4:43pm UTC](https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058/4 "2014-04-04T16:43:41Z")

</div>

Perhaps a silly question but how does one access the swarm settings? Remember, I can’t currently open swam - as it immediately crashes. This happens even if I execute it directly without going through the unreal build process.

---

<div class="post-metadata">

**Author:** ![overdev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@overdev](https://forums.unrealengine.com/u/overdev)\
**Post date:** [April 5, 2014, 3:57pm UTC](https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058/5 "2014-04-05T15:57:50Z")

</div>

I have a similar problem.  
If I start the engine without admin rights I just see “connect to Swarm” the whole time when I wanna build the lighting.  
But in the Task Manager “not responding”. I can wait a hour and nothing will do anything.

And if I start the engine with admin rights the lighting will build, but the whole 3d models (just brushes converted to static meshs) are black after building the light.

I’ve attached the logs.

I’m using the unreal engine 4 that I compiled in Visual .

link textlink text

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_56ee28e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_56ee28e6](https://forums.unrealengine.com/u/anonymous_user_56ee28e6)\
**Post date:** [April 6, 2014, 1:06am UTC](https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058/6 "2014-04-06T01:06:11Z")

</div>

I fixed it, but you guys aren’t going to like the answer. I did a fresh re-install of windows and everything works just fine. Just an uneducated guess, but I think its something related to [the.net](http://the.net) stuff maybe?

Good luck!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [April 16, 2014, 9:48pm UTC](https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058/7 "2014-04-16T21:48:31Z")

</div>

Shir0s,

We have not heard from you in quite some time. I am going to mark this as accepted for tracking purposes. If you are still experiencing issues, please let us know. Thank you!

---

<div class="post-metadata">

**Author:** ![lugit\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lugit\_1](https://forums.unrealengine.com/u/lugit_1)\
**Post date:** [May 8, 2014, 8:51am UTC](https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058/8 "2014-05-08T08:51:21Z")

</div>

Had the same problem, solved by deleting the swarm cache. You can find the cache data here:  
`C:\Users\YourUsername\AppData\Local\UnrealEngine\4.1\Saved\Swarm\SwarmCache.`Clear the cache and restart the Editor. This worked for me, allthough it doesn’t prevent swarm to crash later again.

---

<div class="post-metadata">

**Author:** ![mikeyj21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mikeyj21](https://forums.unrealengine.com/u/mikeyj21)\
**Post date:** [June 11, 2014, 8:22pm UTC](https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058/9 "2014-06-11T20:22:00Z")

</div>

This worked for me too… I had a different error: **Lightmass cannot be run due to an incompatibility with 64-bit windows**. I just deleted the whole SwarmCache folder, and it worked! Thanks lugit!

---

<div class="post-metadata">

**Author:** ![karion\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@karion\_1](https://forums.unrealengine.com/u/karion_1)\
**Post date:** [November 4, 2014, 10:24am UTC](https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058/10 "2014-11-04T10:24:03Z")

</div>

I use to have the same problem. the only thing I was able to do was to close unreal with taskmanager  
after some testing and deleting cache folder , the problem was still there, until somehow it shows me a new window.

 ![19971-snag-0135.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/4/c54bf9468188cce18d89f480c541e4deaa832742.jpeg)

and I figure out that I compiled ue4 to my “G” drive and since a little while ago that I remove one of my HDD, and install this new windows , that drive has changed to “E” and “G” is now DVD drive and it cant write anything into it.

I think in most cases this is what cause the problem, you either don’t have permission to write into that drive or antivirus has blocked it, or you changed the installation directory.

---

<div class="post-metadata">

**Author:** ![KrautPotato](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KrautPotato](https://forums.unrealengine.com/u/KrautPotato)\
**Post date:** [September 17, 2015, 3:54pm UTC](https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058/11 "2015-09-17T15:54:31Z")

</div>

This fixed it for me:

- Delete the SwarmCache

> C:\Users\YourUsername\AppData\Local\UnrealEngine\4.1\Saved\Swarm\SwarmCache

- Uninstall all .NET related things
- Reinstall the newest .NET Framework
- (maybe) Run everything with Admin rights (can’t tell if this changes anything, but i did it.)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_49a519741](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_49a519741](https://forums.unrealengine.com/u/anonymous_user_49a519741)\
**Post date:** [March 13, 2016, 6:58am UTC](https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058/12 "2016-03-13T06:58:09Z")

</div>

Make sure that the UnrealLightmass.exe file exists in the directory it’s expected to be in.

I had to build it from the UE4 solution. Not sure why it didn’t build when I built UE4 but this fixed my problem.

Hope this helps someone else.

---

<div class="post-metadata">

**Author:** ![intoxicat3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@intoxicat3](https://forums.unrealengine.com/u/intoxicat3)\
**Post date:** [April 3, 2016, 2:40pm UTC](https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058/13 "2016-04-03T14:40:56Z")

</div>

This was the issue for me in 4.11 github needed to recompile Lightmass.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_49a519741](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_49a519741](https://forums.unrealengine.com/u/anonymous_user_49a519741)\
**Post date:** [April 4, 2016, 7:45pm UTC](https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058/14 "2016-04-04T19:45:01Z")

</div>

Hey so maybe bump my answer up? I could use the rep.

---

<div class="post-metadata">

**Author:** ![Henrik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Henrik](https://forums.unrealengine.com/u/Henrik)\
**Post date:** [May 9, 2016, 9:53am UTC](https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058/15 "2016-05-09T09:53:00Z")

</div>

Yup, I had the same issue with 4.11 which I got via Github. I spotted the error in SwarmAgent’s log window telling it couldn’t cache the UnrealLightmass.exe which in turn didn’t exist in the Engine\Binaries\Win64 -folder.

Thanks Jin\_VE 🙂

---

<div class="post-metadata">

**Author:** ![franciscocruz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@franciscocruz](https://forums.unrealengine.com/u/franciscocruz)\
**Post date:** [September 28, 2016, 8:39pm UTC](https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058/16 "2016-09-28T20:39:10Z")

</div>

@ I’m very upset. I’ve even format and reinstall the OS (w8.1) with everything new (the all .net framwork versions & all c++ VS distributed versions) no antivirus, no firewall. Just UE 4.13 version installed on the PC and still having errors. Check the last swarm log and my settings. Note: I’m just building the lights in a standalone PC.

 ![108800-swarmagent.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/6/d56ead1b8caccfd822b8a35721a3d4dd832c3cc5.gif)

The log

The swarm settings.  
[link text][2]

---

<div class="post-metadata">

**Author:** ![sanekt0190](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sanekt0190](https://forums.unrealengine.com/u/sanekt0190)\
**Post date:** [August 22, 2022, 11:27am UTC](https://forums.unrealengine.com/t/why-is-swarmagent-crashing-after-failing-to-connect-to-swarm/279058/17 "2022-08-22T11:27:05Z")

</div>

[Unreal Engine 4,5 | Failed to connect to Swarm error fix - YouTube](https://youtu.be/P1tfHCH74F0) hey I uploaded a video regarding its solution do check it out if it solves your issue, thank you so much
