Unable start photon Server on AWS
Options
hi...
i am able to connect to photon server locally on my machine but when I am trying to host it on AWS using
Load Balancing option. Whenever I am trying to test the connection using Test client option i am getting the following error:-
INFO Photon.StarDust.Client.Program - Starting 5 games with 3 players
2019-06-22 20:44:06,395 [4] INFO Photon.StarDust.Client.Program - [2016] Started game EC2AMAZ-6FIB8I2(2016)1 with 3 clients
2019-06-22 20:44:06,910 [4] INFO Photon.StarDust.Client.Program - [2016] Started game EC2AMAZ-6FIB8I2(2016)2 with 3 clients
2019-06-22 20:44:07,301 [4] INFO Photon.StarDust.Client.Program - [2016] Started game EC2AMAZ-6FIB8I2(2016)3 with 3 clients
2019-06-22 20:44:07,754 [4] INFO Photon.StarDust.Client.Program - [2016] Started game EC2AMAZ-6FIB8I2(2016)4 with 3 clients
2019-06-22 20:44:08,223 [4] INFO Photon.StarDust.Client.Program - [2016] Started game EC2AMAZ-6FIB8I2(2016)5 with 3 clients
2019-06-22 20:44:08,223 [4] DEBUG Photon.StarDust.Client.Program - peers: 7, r-ev: 5.488001, ur-ev: 0, r-op: 9.407998, ur-op: 0, res: 4.703988, r-rtt: 0, ur-rtt: 0, rtt: 0, var: 0, flsh-rtt: 0, flsh-ev 0, flsh-op 0
2019-06-22 20:44:08,239 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
2019-06-22 20:44:08,239 [4] INFO Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Connecting to 10.0.10.172:5056
2019-06-22 20:44:08,239 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
2019-06-22 20:44:08,239 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
2019-06-22 20:44:08,239 [4] INFO Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Connecting to 10.0.10.172:5056
2019-06-22 20:44:08,270 [4] ERROR Photon.StarDust.Client.Connections.ClientConnection - 63094882: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
2019-06-22 20:44:08,270 [21] ERROR Photon.StarDust.Client.Connections.ClientConnection - 24388906: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
2019-06-22 20:44:08,270 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
2019-06-22 20:44:08,270 [21] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
2019-06-22 20:44:08,317 [21] INFO Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Connecting to 10.0.10.172:5056
2019-06-22 20:44:08,348 [4] ERROR Photon.StarDust.Client.Connections.ClientConnection - 49924125: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
2019-06-22 20:44:08,348 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
2019-06-22 20:44:09,410 [21] DEBUG Photon.StarDust.Client.Program - peers: 12, r-ev: 6.750286, ur-ev: 0, r-op: 13.50057, ur-op: 0, res: 12.65679, r-rtt: 0, ur-rtt: 0, rtt: 0, var: 0, flsh-rtt: 0, flsh-ev 0, flsh-op 0
2019-06-22 20:44:09,426 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
2019-06-22 20:44:09,426 [4] INFO Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Connecting to 10.0.10.172:5056
2019-06-22 20:44:09,426 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
2019-06-22 20:44:09,426 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
2019-06-22 20:44:09,426 [4] INFO Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Connecting to 10.0.10.172:5056
2019-06-22 20:44:09,426 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
2019-06-22 20:44:09,457 [4] ERROR Photon.StarDust.Client.Connections.ClientConnection - 41773672: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
2019-06-22 20:44:09,457 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
2019-06-22 20:44:09,457 [4] ERROR Photon.StarDust.Client.Connections.ClientConnection - 4831898: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
2019-06-22 20:44:09,457 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
2019-06-22 20:44:09,473 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
2019-06-22 20:44:09,473 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
2019-06-22 20:44:09,598 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
i am able to connect to photon server locally on my machine but when I am trying to host it on AWS using
Load Balancing option. Whenever I am trying to test the connection using Test client option i am getting the following error:-
INFO Photon.StarDust.Client.Program - Starting 5 games with 3 players
2019-06-22 20:44:06,395 [4] INFO Photon.StarDust.Client.Program - [2016] Started game EC2AMAZ-6FIB8I2(2016)1 with 3 clients
2019-06-22 20:44:06,910 [4] INFO Photon.StarDust.Client.Program - [2016] Started game EC2AMAZ-6FIB8I2(2016)2 with 3 clients
2019-06-22 20:44:07,301 [4] INFO Photon.StarDust.Client.Program - [2016] Started game EC2AMAZ-6FIB8I2(2016)3 with 3 clients
2019-06-22 20:44:07,754 [4] INFO Photon.StarDust.Client.Program - [2016] Started game EC2AMAZ-6FIB8I2(2016)4 with 3 clients
2019-06-22 20:44:08,223 [4] INFO Photon.StarDust.Client.Program - [2016] Started game EC2AMAZ-6FIB8I2(2016)5 with 3 clients
2019-06-22 20:44:08,223 [4] DEBUG Photon.StarDust.Client.Program - peers: 7, r-ev: 5.488001, ur-ev: 0, r-op: 9.407998, ur-op: 0, res: 4.703988, r-rtt: 0, ur-rtt: 0, rtt: 0, var: 0, flsh-rtt: 0, flsh-ev 0, flsh-op 0
2019-06-22 20:44:08,239 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
2019-06-22 20:44:08,239 [4] INFO Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Connecting to 10.0.10.172:5056
2019-06-22 20:44:08,239 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
2019-06-22 20:44:08,239 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
2019-06-22 20:44:08,239 [4] INFO Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Connecting to 10.0.10.172:5056
2019-06-22 20:44:08,270 [4] ERROR Photon.StarDust.Client.Connections.ClientConnection - 63094882: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
2019-06-22 20:44:08,270 [21] ERROR Photon.StarDust.Client.Connections.ClientConnection - 24388906: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
2019-06-22 20:44:08,270 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
2019-06-22 20:44:08,270 [21] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
2019-06-22 20:44:08,317 [21] INFO Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Connecting to 10.0.10.172:5056
2019-06-22 20:44:08,348 [4] ERROR Photon.StarDust.Client.Connections.ClientConnection - 49924125: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
2019-06-22 20:44:08,348 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
2019-06-22 20:44:09,410 [21] DEBUG Photon.StarDust.Client.Program - peers: 12, r-ev: 6.750286, ur-ev: 0, r-op: 13.50057, ur-op: 0, res: 12.65679, r-rtt: 0, ur-rtt: 0, rtt: 0, var: 0, flsh-rtt: 0, flsh-ev 0, flsh-op 0
2019-06-22 20:44:09,426 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
2019-06-22 20:44:09,426 [4] INFO Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Connecting to 10.0.10.172:5056
2019-06-22 20:44:09,426 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
2019-06-22 20:44:09,426 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
2019-06-22 20:44:09,426 [4] INFO Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Connecting to 10.0.10.172:5056
2019-06-22 20:44:09,426 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
2019-06-22 20:44:09,457 [4] ERROR Photon.StarDust.Client.Connections.ClientConnection - 41773672: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
2019-06-22 20:44:09,457 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
2019-06-22 20:44:09,457 [4] ERROR Photon.StarDust.Client.Connections.ClientConnection - 4831898: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
2019-06-22 20:44:09,457 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.WaitingForGameServerConnect - Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
2019-06-22 20:44:09,473 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
2019-06-22 20:44:09,473 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
2019-06-22 20:44:09,598 [4] WARN Photon.StarDust.Client.ConnectionStates.LoadBalancing.AuthenticatedOnMaster - OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
0
Comments
-
hi, @robingupta133
Please provide us server-side logs from bin_Win64/log and deploy/log folders
best,
ilya0 -
@chvetsov Thanks for prompt reply.Below are logs:-
bin_Win64/log:-https://drive.google.com/file/d/1MeDf1ew2SeLYsGF_zVnicP8-0A-ZTP51/view?usp=sharing
deploy/log folders:-https://drive.google.com/file/d/1MXpAEenid12mImUWMLVk7OjgFHfuas8v/view?usp=sharing
Looking forward to your reply!0 -
hi, @robingupta133
your server logs are fine. so, what you see (at least partly) is our known issue with test client. In order to fix it, you have to go to `deploy\bin_tools\stardust.client\` and Photon.StarDust.Client.exe.config change to some bigger value. for instance 1000 milliseconds.
Please send me logs after changing and trying. Please attach also logs from `deploy\bin_tools\stardust.client\log`
do not forget to clean up logs before testing
best,
ilya0