Error 1225

Options
uweenukr
uweenukr
edited January 2013 in Photon Server
I know this isn't all code that is/should be supported from Exit Games. I am having an issue of Sub Servers being rejected from the Master Server. The log below is from the Sub Server. During the initial setup it tries to reach out to the Master Server. The Master Server shows no sign of an incomming connection.

Everything is hosted on my local machine and no firewall is currently turned on. I tried following methods to find where things are failing but I am at a loss. Any suggestions?

EDIT: If you need any further information feel free to ask.

SubServer Log:
2012-12-26 15:19:58,741 [1] DEBUG Server2Server.SubServer.SubServer [(null)] - Attempting to Connect Sub Server: Login to Master Server
2012-12-26 15:19:58,789 [1] DEBUG Server2Server.SubServer.SubServer [(null)] - Connecting to master at 127.0.0.1:4520
2012-12-26 15:19:58,793 [1] INFO Photon.SocketServer.ApplicationBase [(null)] - Application start: AppId=Login; AppPath=C:\Users\games\Desktop\Server2Server\deploy\Server2Server, Type=Server2Server.SubServer.LoginServer
2012-12-26 15:19:59,794 [15] ERROR Server2Server.SubServer.SubServer [(null)] - Master connection failed with error 1225: The remote computer refused the network connection.
2012-12-26 15:19:59,795 [15] ERROR Server2Server.SubServer.SubServer [(null)] - Reconnect To Master
2012-12-26 15:20:09,806 [18] DEBUG Server2Server.SubServer.SubServer [(null)] - Reconnecting to master at 127.0.0.1:4520

Master Server Log:
2012-12-26 15:19:58,983 [1] DEBUG Server2Server.MasterServer.MasterServer [(null)] - Calling Setup() on Master Server
2012-12-26 15:19:59,017 [1] INFO Photon.SocketServer.ApplicationBase [(null)] - Application start: AppId=Master; AppPath=C:\Users\games\Desktop\Server2Server\deploy\Server2Server, Type=Server2Server.MasterServer.MasterServer
2012-12-26 15:20:16,040 [1] INFO Photon.SocketServer.ApplicationBase [(null)] - Application is stopping: AppId=Master

Comments

  • Are Master + SubServer applications hosted by the same Photon instance, or are you starting 2 Photon instances on the same machine?

    Can you please reproduce this again and attach:
    1.) your PhotonServer.config
    2.) the Photon-[Instance]-[Date].log from /bin_Win64/log (e.g.: Photon-Default-20130102.log)
    3.) the two logs you posted above, from SubServer + Master?

    (or send them to developer@exitgames.com and refer to this thread)

    What I see so far:
    - The first call from your SubServer to the Master server is attempted before Setup() is called on the Master server. So the first connection attempt seems to fail because the master server is not completely started yet:
    2012-12-26 15:19:59,794 [15] ERROR Server2Server.SubServer.SubServer [(null)] - Master connection failed with error 1225: The remote computer refused the network connection.

    That's not a problem by itself, because the subserver automatically tries to reconnect. You can see that second attempt - "reconnect to master". There is neither a success or an error in the log file - it would be interesting to know what happens there. Does the connect fail again? Are there any log messages after that?

    I'm asking because I see that the Master app is stopped shortly after the reconnect attempt:
    2012-12-26 15:20:16,040 [1] INFO Photon.SocketServer.ApplicationBase [(null)] - Application is stopping: AppId=Master

    What's happening there? Are you stopping Photon, or is it shutting down automatically because of an error?
  • uweenukr
    Options
    Thank you for the reply!I will provide the logs shortly. I shut the server off shortly after starting it. Normally the Master Server would just sit there and the SubServer would keep trying to connect over and over every few seconds until I turn it off.

    EDIT: Email sent with requested info.