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.
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
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"?>
<Build>7601 Service Pack 1</Build>
<Product>(0x3): Windows 7 Home Premium</Product>
<SystemProductName>Studio XPS 8100</SystemProductName>
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.
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!
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.
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 Studio.
link textlink text
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 stuff maybe?
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!
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.
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!
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.
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.
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.
This was the issue for me in 4.11 github needed to recompile Lightmass.
Hey so maybe bump my answer up? I could use the rep.
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.
@Dissipation 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.
The swarm settings.
Unreal Engine 4,5 | Failed to connect to Swarm error fix - YouTube hey I uploaded a video regarding its solution do check it out if it solves your issue, thank you so much