Server RC8 keeps restarting using Loadbalancing

Options
Prymor
Prymor
edited March 2012 in Photon Server
Hi all,

I've installed and run Photon server RC8 without any problem with the provided Loadbalancing & Lite DLLs.

However, if I compile the provided sources without any changes and replace the bin folders with those compiled DLLs, the master and games servers keep restarting each 10 seconds or so.

Below is the log provided by master server. No errors are thrown in any log, including PhotonCLR.log.

Can you please help me out?

Kind regards.
Prymor

Master server log.

2012-03-08 20:07:19,904 [1] INFO Photon.LoadBalancing.Common.NodesReader [(null)] - Import nodes
2012-03-08 20:07:19,924 [1] WARN Photon.LoadBalancing.Common.NodesReader [(null)] - E:\Photon\deploy\Nodes.txt does not exist, CurrentNodeId = 0
2012-03-08 20:07:19,924 [1] INFO Photon.LoadBalancing.Common.NodesReader [(null)] - Watching E:\Photon\deploy\Nodes.txt
2012-03-08 20:07:19,924 [1] INFO Photon.LoadBalancing.MasterServer.MasterApplication [(null)] - Current instance 0 is the master leader
2012-03-08 20:07:19,934 [1] INFO Photon.SocketServer.ApplicationBase [(null)] - Application start: AppId=Master; AppPath=E:\Photon\deploy\LoadBalancing\Master
2012-03-08 20:07:19,974 [1] INFO Photon.SocketServer.Diagnostics.CounterPublisher [(null)] - CounterPublisher started on: 255.255.255.255:40001
2012-03-08 20:07:20,124 [20] DEBUG Photon.LoadBalancing.MasterServer.MasterApplication [(null)] - Received init request from game server
2012-03-08 20:07:20,124 [17] DEBUG Photon.LoadBalancing.MasterServer.MasterApplication [(null)] - Received init request from game server
2012-03-08 20:07:20,124 [20] INFO Photon.LoadBalancing.MasterServer.GameServer.IncomingGameServerPeer [(null)] - game server connection from 127.0.0.1:4588 established (id=2)
2012-03-08 20:07:20,124 [17] INFO Photon.LoadBalancing.MasterServer.GameServer.IncomingGameServerPeer [(null)] - game server connection from 127.0.0.1:4590 established (id=3)
2012-03-08 20:07:20,174 [10] DEBUG Photon.LoadBalancing.MasterServer.GameServer.IncomingGameServerPeer [(null)] - OnOperationRequest: pid=2, op=1
2012-03-08 20:07:20,174 [13] DEBUG Photon.LoadBalancing.MasterServer.GameServer.IncomingGameServerPeer [(null)] - OnOperationRequest: pid=3, op=1
2012-03-08 20:07:20,204 [10] WARN Photon.LoadBalancing.Common.NodesReader [(null)] - Internal address for node 0 unknown; using loop back
2012-03-08 20:07:20,204 [10] INFO Photon.LoadBalancing.Common.NodesReader [(null)] - Node added: 0 = 127.0.0.1
2012-03-08 20:07:20,214 [10] DEBUG Photon.LoadBalancing.MasterServer.GameServer.IncomingGameServerPeer [(null)] - Received register request: Address=127.0.0.1, UdpPort=5056, TcpPort=4531, WebSocketPort=0
2012-03-08 20:07:20,214 [13] DEBUG Photon.LoadBalancing.MasterServer.GameServer.IncomingGameServerPeer [(null)] - Received register request: Address=127.0.0.1, UdpPort=5056, TcpPort=4531, WebSocketPort=0
2012-03-08 20:07:20,214 [10] DEBUG Photon.LoadBalancing.LoadBalancer`1 [(null)] - new min server is GameServer(75ce3a99-b9ed-480b-a0b5-704d7d10dcbf) at 127.0.0.1:4531/127.0.0.1:5056 with load 0 - old one had load
2012-03-08 20:07:20,214 [13] DEBUG Photon.LoadBalancing.LoadBalancer`1 [(null)] - new min server is GameServer(2e1bf968-1c13-414e-a42c-c92f25478e51) at 127.0.0.1:4531/127.0.0.1:5056 with load 0 - old one had load
2012-03-08 20:07:20,234 [10] INFO Photon.LoadBalancing.MasterServer.GameServer.IncomingGameServerPeer [(null)] - OnDisconnect: game server connection closed (id=2)
2012-03-08 20:07:20,264 [24] DEBUG Photon.LoadBalancing.LoadBalancer`1 [(null)] - updated current min load to 3
2012-03-08 20:07:21,254 [10] DEBUG Photon.LoadBalancing.LoadBalancer`1 [(null)] - updated current min load to 2
2012-03-08 20:07:23,804 [15] DEBUG Photon.LoadBalancing.LoadBalancer`1 [(null)] - updated current min load to 1
2012-03-08 20:07:35,224 [19] DEBUG Photon.LoadBalancing.MasterServer.MasterApplication [(null)] - Received init request from game server
2012-03-08 20:07:35,224 [19] INFO Photon.LoadBalancing.MasterServer.GameServer.IncomingGameServerPeer [(null)] - game server connection from 127.0.0.1:4591 established (id=4)
2012-03-08 20:07:35,224 [23] DEBUG Photon.LoadBalancing.MasterServer.GameServer.IncomingGameServerPeer [(null)] - OnOperationRequest: pid=4, op=1
2012-03-08 20:07:35,224 [23] DEBUG Photon.LoadBalancing.MasterServer.GameServer.IncomingGameServerPeer [(null)] - Received register request: Address=127.0.0.1, UdpPort=5056, TcpPort=4531, WebSocketPort=0
2012-03-08 20:07:35,224 [23] DEBUG Photon.LoadBalancing.LoadBalancer`1 [(null)] - new min server is GameServer(75ce3a99-b9ed-480b-a0b5-704d7d10dcbf) at 127.0.0.1:4531/127.0.0.1:5056 with load 0 - old one had load
2012-03-08 20:07:35,224 [27] INFO Photon.LoadBalancing.MasterServer.GameServer.IncomingGameServerPeer [(null)] - OnDisconnect: game server connection closed (id=3)
2012-03-08 20:07:36,244 [26] DEBUG Photon.LoadBalancing.LoadBalancer`1 [(null)] - updated current min load to 1
2012-03-08 20:07:50,234 [20] DEBUG Photon.LoadBalancing.MasterServer.MasterApplication [(null)] - Received init request from game server
2012-03-08 20:07:50,234 [20] INFO Photon.LoadBalancing.MasterServer.GameServer.IncomingGameServerPeer [(null)] - game server connection from 127.0.0.1:4596 established (id=5)
2012-03-08 20:07:50,234 [27] DEBUG Photon.LoadBalancing.MasterServer.GameServer.IncomingGameServerPeer [(null)] - OnOperationRequest: pid=5, op=1
2012-03-08 20:07:50,234 [27] DEBUG Photon.LoadBalancing.MasterServer.GameServer.IncomingGameServerPeer [(null)] - Received register request: Address=127.0.0.1, UdpPort=5056, TcpPort=4531, WebSocketPort=0
2012-03-08 20:07:50,234 [27] DEBUG Photon.LoadBalancing.LoadBalancer`1 [(null)] - new min server is GameServer(2e1bf968-1c13-414e-a42c-c92f25478e51) at 127.0.0.1:4531/127.0.0.1:5056 with load 0 - old one had load
2012-03-08 20:07:50,234 [28] INFO Photon.LoadBalancing.MasterServer.GameServer.IncomingGameServerPeer [(null)] - OnDisconnect: game server connection closed (id=4)
2012-03-08 20:07:51,244 [24] DEBUG Photon.LoadBalancing.LoadBalancer`1 [(null)] - updated current min load to 1

Comments

  • dreamora
    Options
    your game servers seem to be configured for the same ports as a second one is constantly trying to reregister itself on the already used port.
    ensure that gameserver 2 runs on udp 5057 and tcp 4532 if you update the configuration (photonserver or gameserver one) or that you kick out game2 -> Gameserver2 completely if you don't want multiple game servers.

    If I would have to guess then I would assume that you after recompiling the LoadBalancing app you by error copied more than only the .dll and pdb files over and killed the original game server and master server configurations, the ones generated by the compile will NOT work as they are generic to both sides and not unique per game server