Not connecting to Photon some errors

Options
BallzOfSteel
edited November 2011 in DotNet
Well hello all,

to keep things short, im trying to create an online multiplayer game with Unity and photon.
For this im trying to get photon running first with Viking demo or Angry bots.
However when i set up a server (3.0) and run the app i get this error in the output window:
Authentication failed: OperationResponse 1: ReturnCode: -1 (Unknown operation code 1). Parameters: {}.

i tried every single photon instance (bin_win64, bin_win64 xp and all the others) even the once included with the project.

some things to mention:
*when i start photon control instance1 automatically starts as a service. However InstanceLoadBalancing doesnt start, if i start it as a server it runs for a minute or so and than stops again.

*All the 2.6 servers automatically stop after a few seconds.

*i did get the project to run on a different pc.

*log:

1812: 09:07:11.724 - ---
1812: 09:07:11.734 - Service: "Photon Socket Server" starting
1812: 09:07:11.734 - Config File: C:\Users\BallzOfSteel\Desktop\Server 3.5\deploy\bin_Win64_xp\PhotonServer.config
1812: 09:07:11.744 - Will NOT produce crash dumps
4080: 09:44:06.937 - ---
4080: 09:44:06.938 - Service: "Photon Socket Server" starting
4080: 09:44:06.938 - Config File: C:\Users\BallzOfSteel\Desktop\Server 3.5\deploy\bin_Win64_xp\PhotonServer.config
4080: 09:44:06.955 - Will NOT produce crash dumps
4080: 09:44:06.956 -
4080: 09:44:06.956 - WARNING: ***************************************************************
4080: 09:44:06.956 - WARNING: Photon has been built to operate on an operating system earlier than Windows Vista.
4080: 09:44:06.956 - WARNING: Performance will not be as good as when built for Windows Vista or later.
4080: 09:44:06.956 - WARNING: ***************************************************************
4080: 09:44:06.956 -
4080: 09:44:06.956 - Server Starting...
4080: 09:44:06.957 - Photon Version: 3.0.6.801
4080: 09:44:06.957 - Config File: C:\Users\BallzOfSteel\Desktop\Server 3.5\deploy\bin_Win64_xp\PhotonServer.config
4080: 09:44:06.962 - CService::OnException() - Exception: CXMLConfiguration::LoadDocument() - Failed to located required initial child element: "PhotonSocketServer" - Source: "C:\Users\BallzOfSteel\Desktop\Server 3.5\deploy\bin_Win64_xp\PhotonServer.config"
4080: 09:44:06.963 - Server shutting down...
4080: 09:44:06.963 - Shutting down socket servers...
4080: 09:44:06.963 - Destroying ENet thread pool
4080: 09:44:06.963 - Destroying TCP inactivity timer
4080: 09:44:06.963 - Destroying Business logic thread pool
4080: 09:44:06.963 - Destroying servers
4080: 09:44:06.963 - Destroying TCP Outbound Connection Manager
4080: 09:44:06.963 - Destroying resolver
4080: 09:44:06.963 - Destroying TCP Proxy Connection Manager
4080: 09:44:06.963 - Destroying ENet host
4080: 09:44:06.963 - Destroying CLR dispatcher
4080: 09:44:06.963 - Destroying CLR applications
4080: 09:44:06.963 - Destroying I/O thread pool
4080: 09:44:06.963 - Destroying ENet buffer allocator
4080: 09:44:06.963 - Destroying TCP buffer allocator
4080: 09:44:06.963 - Destroying TCP socket allocator
4080: 09:44:06.963 - Destroying ENet socket allocator
4080: 09:44:06.963 - Destroying performance counters
4080: 09:44:06.963 - Shutdown complete...

i really hope you can help me here.
kind regards.

Comments

  • Small heads up, after a long time of strugling a little progress.
    Me and my project partner decided to go for angry bots, we made a login screen and stripped everything .
    When i connect to his IP i see the room he created and all the info ( at that point i am connected to his photon), however when i click his room to join i get the same error as before: OperationResponse 1: ReturnCode: -1 (Unknown operation code 1). Parameters: {}.
    and get disconnected immediatly. please some help on this.
  • Tobias
    Options
    Maybe you need to update server and client. It seems they are not matching.
    Use server RC4 and the clients v3.0.0.5 and up.
    Angry Bots has just been updated. It must show up in the asset store soon, so also look out for that.

    Sorry for the inconvenience.
  • Thanks for replying Tobias,
    this might sound verry stupid but i know for sure im using server v3.0 but how do i find out what client rc im using?
    Keeping my eyes on the asset store ;)

    thanks again.
  • Tobias
    Options
    There are version.txt files in the bin_winXY folders. Those reflect the exact build the server is and then we know which SDK this is.
    I just noticed how much overhead this is and we will put the SDKs number next to the binaries soon.
  • this is the version.txt

    PhotonSocketServer.2010
    x64 Unicode Release
    BuildDate: 2011-09-01 12:13:58
    Version: 3.0.3.734
    SVN repository: photon-socketserver
    SVN revisions of...
    ... this project: 734
    ... bin-tools: 82

    the strange thing is it works perfect with cloud. And the exact same thing works great om my friends laptop.
    tough the error is now: Error trying to receive. Exception: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host.

    thanks for the help so far tough :D

    EDIT: the new log actually gives this:
    4284: 14:58:41.212 - ---
    4284: 14:58:41.212 - Service: "Photon Socket Server" starting
    4284: 14:58:41.212 - Config File: C:\Users\Administrator\Desktop\AngryBots 2nd Edition\Photon\deploy\bin_Win32_xp\PhotonServer.config
    4284: 14:58:41.212 - Will produce at most: 10 crash dumps
    4284: 14:58:41.212 -
    4284: 14:58:41.212 - WARNING: ***************************************************************
    4284: 14:58:41.212 - WARNING: Photon has been built to operate on an operating system earlier than Windows Vista.
    4284: 14:58:41.212 - WARNING: Performance will not be as good as when built for Windows Vista or later.
    4284: 14:58:41.212 - WARNING: ***************************************************************
    4284: 14:58:41.212 -
    4284: 14:58:41.212 - Server Starting...
    4284: 14:58:41.212 - Photon Version: 3.0.6.801
    4284: 14:58:41.212 - Config File: C:\Users\Administrator\Desktop\AngryBots 2nd Edition\Photon\deploy\bin_Win32_xp\PhotonServer.config
    4284: 14:58:41.228 - Not using performance counters. The installed counters do not match the counter dll
    4284: 14:58:41.228 - Run the service with /InstallCounters to reinstall the latest counters.
    4284: 14:58:41.243 - About to load runtime: PhotonHostRuntime.PhotonDomainManager from PhotonHostRuntime, Culture=neutral, PublicKeyToken=02C301B61B060C4D
    4284: 14:58:41.243 - About to load CLR - versions available:
    4284: 14:58:41.243 - v2.0.50727
    4284: 14:58:41.243 - No preference in configuration file, will load latest.
    4284: 14:58:41.243 - About to load version: "v2.0.50727"
    4284: 14:58:41.243 - Loaded version: "v2.0.50727"
    4284: 14:58:43.412 - Photon host runtime loaded
    4284: 14:58:43.412 - License is valid.
    4284: 14:58:43.412 - Licensed for 100 concurrent connections.
    4284: 14:58:43.412 - Max Reliable Data In Transit (awaiting ACKs) per peer : 16384 bytes
    4284: 14:58:43.412 - Per peer bandwidth limit
    4284: 14:58:43.412 - Transmit Rate Limit: 128 KB/Sec
    4284: 14:58:43.412 - Limit period: 250ms
    4284: 14:58:43.412 - Limit per period: 32768 bytes
    4284: 14:58:43.412 - Max queued data for transmission per peer: 65536 bytes
    4284: 14:58:43.412 - Minimum retransmit timeout: 200
    4284: 14:58:43.412 - Minimum ENet timeout: 5000ms
    4284: 14:58:43.412 - Maximum ENet timeout: 30000ms
    4284: 14:58:43.412 - ENetHost: Using Timer Wheel
    4284: 14:58:43.412 - About to load application: Lite from Lite
    4284: 14:58:43.412 - Auto restart is enabled for application
    4284: 14:58:43.427 - Application will restart 10000ms after the last change detected
    4284: 14:58:43.427 - Application will restart if files matching the following are changed: "dll;config"
    4284: 14:58:43.427 - Application will NOT restart if files matching the following are changed: "log4net.config"
    4284: 14:59:00.166 - Application: "Lite" started in app domain: 3
    4284: 14:59:00.166 - About to load application: LiteLobby from LiteLobby
    4284: 14:59:00.166 - Auto restart is enabled for application
    4284: 14:59:00.166 - Application will restart 10000ms after the last change detected
    4284: 14:59:00.166 - Application will restart if files matching the following are changed: "dll;config"
    4284: 14:59:00.166 - Application will NOT restart if files matching the following are changed: "log4net.config"
    4284: 14:59:02.054 - Application: "LiteLobby" started in app domain: 4
    4284: 14:59:02.054 - About to load application: MmoDemo from Photon.MmoDemo.Server
    4284: 14:59:02.054 - Auto restart is enabled for application
    4284: 14:59:02.054 - Application will restart 10000ms after the last change detected
    4284: 14:59:02.054 - Application will restart if files matching the following are changed: "dll;config"
    4284: 14:59:02.054 - Application will NOT restart if files matching the following are changed: "log4net.config"
    4284: 14:59:04.253 - Application: "MmoDemo" started in app domain: 5
    4284: 14:59:04.253 - About to load application: LiteWebSockets from Lite
    4284: 14:59:05.766 - Application: "LiteWebSockets" started in app domain: 6
    4284: 14:59:05.766 - About to load application: CounterPublisher from CounterPublisher
    4284: 14:59:05.766 - Auto restart is enabled for application
    4284: 14:59:05.766 - Application will restart 10000ms after the last change detected
    4284: 14:59:05.766 - Application will restart if files matching the following are changed: "dll;config"
    4284: 14:59:05.766 - Application will NOT restart if files matching the following are changed: "log4net.config"
    4284: 14:59:07.857 - Application: "CounterPublisher" started in app domain: 7
    4284: 14:59:07.857 - About to load application: Policy from Policy.Application
    4284: 14:59:09.354 - Application: "Policy" started in app domain: 8
    4284: 14:59:09.354 - Adding TCP listener on :0.0.0.0: 4530 with a listen backlog of: 150
    4284: 14:59:09.354 - Nagle disabled
    4284: 14:59:09.354 - TCP inactivity timeout: 5000ms
    4284: 14:59:09.354 - UDP address specified as:0.0.0.0 adding listener to each available IPv4 address
    4284: 14:59:09.370 - Adding UDP listener on :10.35.5.241: 5055 with a listen backlog of: 500
    4284: 14:59:09.370 - Adding UDP listener on :127.0.0.1: 5055 with a listen backlog of: 500
    4284: 14:59:09.370 - Adding TCP Policy listener on :0.0.0.0: 843 with a listen backlog of: 150 and routing to application: "Policy"
    4284: 14:59:09.370 - TCP inactivity timeout: 5000ms
    4284: 14:59:09.370 - Adding TCP Policy listener on :0.0.0.0: 943 with a listen backlog of: 150 and routing to application: "Policy"
    4284: 14:59:09.370 - TCP inactivity timeout: 5000ms
    4284: 14:59:09.370 - Adding WebSocket TCP listener on :0.0.0.0: 9090 with a listen backlog of: 150
    4284: 14:59:09.370 - Nagle disabled
    4284: 14:59:09.370 - TCP inactivity timeout: 100000ms
    4284: 14:59:09.370 - Forcing all applications ids to: "LiteWebSockets"
    4284: 14:59:15.002 - Service is running...

    so it seems the server itself starts good.
    also i checked and i am using server version 3.0 and rc4. still i get the: OperationResponse 1: ReturnCode: -1 (Unknown operation code 1). Parameters: {} error.