I am having an issue with “failed to connect to swarm” I have tried everything I can find on the web inc. legacy wiki to fix it. I have tried uninstalling my firewall, I tried forwarding the ports in the firewall for the swarm agent and coordinator. I tried removing all traces of Unreal from my computer and registry and reinstalling, I tried verifying install. I tried a build from source code, I am still getting the error? Anyone have any other ideas? I get the following in the logs:
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\Epic Games\UE_4.24\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
In case anyone ever comes across this themselves, it was a Windows 10 configuration issue, preventing the performance monitor from initializing. Going into C:\Users\AppData\Local\UnrealEngine\Saved\Swarm going into the SwarmAgent.DeveloperOptions.xml and changing true to false will get you running again while you figure out what Windows is doing.
For anyone else running into issues.
Specifically: … SwarmCoordinator failed to be initialized
If you are like me and having problems with running UE4 swarm agent on the same machine you’re running the swarm coordinator, try setting the agent “CoordinatorRemotingHost” to localhost.
The only way I can think to up-vote this response.
The symptoms of my problem were similar enough that it lead me here. Essentially, any lighting build, whether it was on a fresh “basic” level map or a more complex environment, would hang the editor for nearly 3 minutes before anything would happen. After looking at the swarm log I noted output similar to that of the original post. Ultimately it couldn’t ping the coordinator and was waiting 90 seconds in two separate spots at startup simply attempting to communicate with the SwarmCoordinator which defaults to RENDER-01 !!! What’s bizarre to me is that I never noticed this before which makes me feel like this behavior is new…not the RENDER-01 thing but the 90 second timeouts.
Either way, following @BRG_Kara 's advice, I set the hostname of the coordinator to localhost and viola, the agent could communicate with the coordinator and no more 90 second pauses to sit through…thanks!!
Sorry to resurrect an old thread but im having this same issue and switch to local host isnt doing anything, It’ll get past the initial cant connect to swarm but by the end of the light bake the connection to coordinator will fail and the build will look like it went through in the unreal engine log, but not on the swarm agent log. Can get light if i switch to stationary but even dynamic shadows dont show up. Sometimes swarm will even switch itself BACK to render0 from local host
if you’re on 5.6 it is a bug (or a feature if Epic decides to deprecate static lighting). See another post about 5.6 missing swarm. You can also get a copy there to put into your DotNET folder
Im on 5.2 still, I was having an issue where it would continuously reset the coordinator to Render0 instead of local host. Im building on a single machine. Deepseek is suggesting disabling the swarm agent completely and building eith just the lightmass.exe but im not sure how viable of a solution that actually is. If I can still build lights without the swarm and theres nothing but a build time increase as a penalty id be willing to do that. I tried switching all my lights to stationary and my directional and skylight to moveable and i get lights but no shadowing at all, static or dynamic