Hi Mii753,
unfortunately I just looked into the Swarm code and this error message is terribly misleading, as it raises this error if anything wrong happens during registration of a channel. The “channel already registered” is only one of the reasons it may fail.
I’ll fix that for future versions, but to diagnose and fix your problem we could fix your copy and find out what’s wrong (cause something is wrong for sure).
Do you have, or could get a source version of the engine? At least the UE4/Engine/Source/Programs/UnrealSwarm would be required. If you do, then please change lines:
catch (Exception)
{
AgentApplication.Log(EVerbosityLevel.Informative, ELogColour.Orange, "[ERROR] Channel already registered, suggesting another SwarmAgent or client is running.");
AgentApplication.Log(EVerbosityLevel.Informative, ELogColour.Orange, "[ERROR] If you feel this is in error, check your running process list for additional copies of");
AgentApplication.Log(EVerbosityLevel.Informative, ELogColour.Orange, "[ERROR] SwarmAgent or UnrealLightmass (or other client) and consider killing them.");
AgentApplication.Log(EVerbosityLevel.Informative, ELogColour.Orange, "[ERROR] Sleeping for a few seconds and trying again...");
Thread.Sleep(3000);
}
in AgentApplication.cs file, to:
catch (RemotingException)
{
AgentApplication.Log(EVerbosityLevel.Informative, ELogColour.Orange, "[ERROR] Channel already registered, suggesting another SwarmAgent or client is running.");
AgentApplication.Log(EVerbosityLevel.Informative, ELogColour.Orange, "[ERROR] If you feel this is in error, check your running process list for additional copies of");
AgentApplication.Log(EVerbosityLevel.Informative, ELogColour.Orange, "[ERROR] SwarmAgent or UnrealLightmass (or other client) and consider killing them.");
AgentApplication.Log(EVerbosityLevel.Informative, ELogColour.Orange, "[ERROR] Sleeping for a few seconds and trying again...");
Thread.Sleep(3000);
}
catch (Exception Ex)
{
AgentApplication.Log(EVerbosityLevel.Informative, ELogColour.Orange, string.Format("[ERROR] Channel registration failed. Reason: {0}\n, Callstack: {1}.", Ex.Message, Ex.StackTrace));
Thread.Sleep(3000);
}
Then please, rebuild and use the new Swarm and get back to me with the log it produces.
Thanks,
Jarek