Build freezes at "0:00:00 Gathering scene geometry... (100%)"

Ok I found out more.
There seems to be an issue with the swarm agent.

I see this in my swarm log:

14:20:14: Starting up SwarmAgent ...
14:20:14:  ... registering SwarmAgent with remoting service
14:20:14:  ... registering SwarmAgent network channels
14:20:14:  ... initializing SwarmAgent
14:20:14:  ......... certificate check has failed
14:20:14:  ...... initializing cache
14:20:14:  ......... using cache folder 'C:/Users/Lars/AppData/Local/UnrealEngine/4.11/Saved/Swarm\SwarmCache'
14:20:14:  ......... recreating SwarmAgent cache staging area
14:20:14:  ...... initializing connection to SwarmCoordinator
14:20:14:  ......... using SwarmCoordinator on RENDER-01
14:20:16:  ......... SwarmCoordinator failed to be initialized
14:20:16:  ...... initializing local performance monitoring subsystem
14:20:16:  ... initialization successful, SwarmAgent now running
14:23:07: [Network] Pinging Coordinator...
14:23:07: [Network]     Coordinator has failed to respond
14:23:07: [Network] Coordinator ping complete

Yesterday I needed to restart the client because there was some update for unreal engine.
Since then, all builds on all projects are freezing as soon as I push the “Build” button to rebuild the lightning.

I see the message: “0:00:00 Gathering scene geometry… (100%)” and then the editor is completely unresponsive.
According to the Task manager it’s not doing anything apart waiting.

I waited for an hour to see if it will recover but it doesn’t.

To reproduce this, I created a new 4.11.2 project without starter content and no plugins.
I also reinstalled the whole engine.
But the error persists. I did the same for UE 4.12.0. Preview 3 with the same result.

Is it possible to get more debug info what the editor is currently doing?

In the meantime I disabled the windows firewall and the Kaspersy Anti Virus.
But the result is the same:

certificate check has failed

Is it possible to see what address is called for the certificate check?

I managed to start the unreal editor from the terminal:

P:\Program Files\Epic Games\4.11\Engine\Binaries\Win64>UE4Editor-Cmd.exe "P:\Unreal Projects\demo\demo.uproject" -log

And this is what I found:
The error seems to be related to some kind of firewall issue.

[2016.05.14-15.47.34:718][394]LogSwarmInterface:Error: System.Net.Sockets.SocketException (0x80004005): Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig 127.0.0.1:8008

Server stack trace:
   bei System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   bei System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   bei System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint ipEndPoint)
   bei System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew)
   bei System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
   bei System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.AsyncProcessRequest(IClientChannelSinkStack sinkStack, IMessage msg, ITransportHeaders headers, Stream stream)
   bei System.Runtime.Remoting.Channels.BinaryClientFormatterSink.AsyncProcessMessage(IMessage [2016.05.14-15.47.39:729][394]LogSwarmInterface:Error: [TryOpenConnection] Waiting for the agent to start up ...
[2016.05.14-15.47.39:731][394]LogSwarmInterface:Error: System.Net.Sockets.SocketException (0x80004005): Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig 127.0.0.1:8008

Now I started the editor via command line:

P:\Program Files\Epic
Games\4.11\Engine\Binaries\Win64>UE4Editor.exe
“P:\Unreal
Projects\Demo\Demo.uproject” -log

I can see the issue in the log now:
The Unreal Editor has no permission to connect to 127.0.0.1:8008

See

[2016.05.14-17.48.20:599][631]LogSwarmInterface:Error: [TryOpenConnection] Waiting for the agent to start up ...
[2016.05.14-17.48.20:600][631]LogSwarmInterface:Error: System.Net.Sockets.SocketException (0x80004005): Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig 127.0.0.1:8008

Server stack trace:
   bei System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   bei System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   bei System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint ipEndPoint)
   bei System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew)
   bei System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
   bei System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.AsyncProcessRequest(IClientChannelSinkStack sinkStack, IMessage msg, 
ITransportHeaders headers, Stream stream)

I think Kaspersky is the one blocking the ports 8008, 8009 here. Does anyone know how to konfigure this? And why UE4 is suddenly black listed?

I still don’t find the mistake.
With kaspersky turned off and windows firewall off I still get this message in the swam log file:

20:28:43: Starting up SwarmAgent ...
20:28:43:  ... registering SwarmAgent with remoting service
20:28:43:  ... registering SwarmAgent network channels
20:28:43:  ... initializing SwarmAgent
20:28:43:  ...... checking certificate
20:28:43:  ......... certificate check has failed
20:28:43:  ...... initializing cache
20:28:43:  ......... using cache folder 'C:/Users/Lars/AppData/Local/UnrealEngine/4.11/Saved/Swarm/SwarmCache'
20:28:43:  ......... recreating SwarmAgent cache staging area
20:28:43:  ...... initializing connection to SwarmCoordinator
20:28:43:  ......... using SwarmCoordinator on CRUNCHER3
20:28:43: [PingRemoteHost] Successfully pinged CRUNCHER3 with CRUNCHER3
20:29:02: [Ping] Communication with the coordinator failed, job distribution will be disabled until the connection is established
20:29:02: Exception details: System.Net.Sockets.SocketException (0x80004005): Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte 192.168.0.10:8009
Server stack trace: 
   bei System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port)
   bei System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(AddressFamily family)
   bei System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew)
   bei System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
   bei System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
   bei System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]: 
   bei System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   bei SwarmCoordinatorInterface.ISwarmCoordinator.Ping(AgentInfo UpdatedInfo)
   bei Agent.Agent.PingCoordinator(Boolean ForcePing)
20:29:02:  ......... SwarmCoordinator failed to be initialized
20:29:02:  ...... initializing local performance monitoring subsystem

I close this one because it has nothing to do with the actual build but rather with the connectivity of the swarm agents.

The new thread I created including the working solution for me is here: