100 CCU license expired?

Options
jz87
edited July 2012 in Photon Server
I keep getting this in the logs

4164: 04:58:36.876 - License has expired.

even though I'm using the 100 CCU license which is not supposed to expire? I'm running the latest version of Photon server 3, and I just downloaded my license file.

Comments

  • jz87
    Options
    NVM, I figured out why it's happening. There's an included expired license file which took precedence over my good license file. This is really confusing.
  • Tobias
    Options
    The free 100 ccu license you download is personally for you / your game. The included license is a free trial which works for everyone.
    We don't want to modify the SDK downloads for everyone, so only the trial is included and the free license is a separate download.

    Sorry for the confusion this caused.
  • rocko
    Options
    Hi Tobias,
    I am new to Photon and just downloaded the SDK 3.0 and also my 100ccu license. I run into the same issue where the log says "license has expired", even after I placed the license file in the deploy's bin_Win32_xp folder (I am using winXP). However, I am not able to find any other license file in the Photon folder where I can replace it. Could you please let me know how do I remove the free trial license and make my 100ccu license active?
    Thanks a lot!
  • Philip
    Options
    Hi rocko,

    what do you see in the logs/PhotonClr.log? There should be a line with LICENSE information.

    If you remove the license file completly Photon should start with 20 ccu.
    (this is new with the 3.0 final release)

    -philip
  • Philip
    Options
    Philip wrote:
    Hi rocko,

    That is strange - since this release we don't include license files anymore.
    If you remove the license file completly Photon should start with 20 ccu
    (this is new with the 3.0 final release).

    what do you see in the logs/PhotonClr.log? There should be a line with LICENSE information.

    -philip
  • rocko
    Options
    Hi Phillip,
    This is in my logs/PhotonClr.log file:
    2012-07-27 22:35:03,112 [ 1] INFO PhotonHostRuntime.PhotonDomainManager - Initialize: ApplicationName = 'DefaultDomain', DomainID = '1'
    2012-07-27 22:35:03,143 [ 1] INFO PhotonHostRuntime.PhotonDomainManager - AppDomains with unhandled exceptions are usually not unloaded and restarted.
    2012-07-27 22:35:03,159 [ 1] INFO PhotonHostRuntime.PhotonDomainManager - Getting license information:
    2012-07-27 22:35:03,190 [ 1] ERROR PhotonHostRuntime.PhotonDomainManager - Failed to get PhotonLicensing instance: Could not load file or assembly 'PhotonLicensing, Version=3.0.27.1684, Culture=neutral, PublicKeyToken=02c301b61b060c4d' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
    2012-07-27 22:35:03,190 [ 1] ERROR PhotonHostRuntime.PhotonDomainManager - ERROR: failed to load PhotonLicensing.dll. Going to shutdown.
    2012-07-27 22:35:03,190 [ 1] INFO PhotonHostRuntime.PhotonDomainManager - RequestStop: ApplicationName = 'DefaultDomain', DomainId='1'

    I checked and file PhotonLicensing.dll is there in the bin_Win32_xp folder.

    Also the error message looks identical whether I put my person 100ccu license file there or not.
  • rocko
    Options
    This is in the other log file if it helps.
    2528: 22:35:02.659 - ---
    2528: 22:35:02.659 - Service: "Photon Socket Server" starting
    2528: 22:35:02.659 - Config File: C:\Documents and Settings\Rocko\My Documents\My Projects\photon\ExitGames-Photon-Server-SDK_v3-0-37-3631\deploy\bin_Win32_xp\PhotonServer.config
    2528: 22:35:02.659 - Will produce at most: 10 crash dumps
    2528: 22:35:02.659 - Action:debug
    2528: 22:35:02.675 -
    2528: 22:35:02.675 - WARNING: ***************************************************************
    2528: 22:35:02.675 - WARNING: Photon has been built to operate on an operating system earlier than Windows Vista.
    2528: 22:35:02.675 - WARNING: Performance will not be as good as when built for Windows Vista or later.
    2528: 22:35:02.675 - WARNING: ***************************************************************
    2528: 22:35:02.675 -
    2528: 22:35:02.675 - Server Starting...
    2528: 22:35:02.675 - Tick count: 2365484 (wraps in: 49.6829 days)
    2528: 22:35:02.675 - Photon Version: 3.0.27.1684
    2528: 22:35:02.675 - PID: 4028
    2528: 22:35:02.675 - Config File: C:\Documents and Settings\Rocko\My Documents\My Projects\photon\ExitGames-Photon-Server-SDK_v3-0-37-3631\deploy\bin_Win32_xp\PhotonServer.config
    2528: 22:35:02.675 - Not using performance counters as they are not currently installed. Run the service with /InstallCounters to install them.
    2528: 22:35:02.675 - Max message size: 512000
    2528: 22:35:02.675 - S2S: MaxInboundMessageSize: 512000
    2528: 22:35:02.675 - S2S: MaxOutboundMessageSize: 512000
    2528: 22:35:02.675 - S2S: No inactivity timeout
    2528: 22:35:02.675 - Max Reliable Data In Transit (awaiting ACKs) per peer : 51200 bytes
    2528: 22:35:02.675 - Per peer bandwidth limit
    2528: 22:35:02.675 - Transmit Rate Limit: 256 KB/Sec
    2528: 22:35:02.675 - Limit period: 200ms
    2528: 22:35:02.675 - Limit per period: 52428 bytes
    2528: 22:35:02.675 - Max queued data for transmission per peer: 512000 bytes
    2528: 22:35:02.675 - Minimum retransmit timeout: 200
    2528: 22:35:02.675 - Minimum ENet timeout: 5000ms
    2528: 22:35:02.675 - Maximum ENet timeout: 30000ms
    2528: 22:35:02.675 - Outbound ENet: MaxInboundMessageSize: 512000
    2528: 22:35:02.675 - Outbound ENet: MaxOutboundMessageSize: 512000
    2528: 22:35:02.753 - About to load runtime: PhotonHostRuntime.PhotonDomainManager from PhotonHostRuntime, Culture=neutral, PublicKeyToken=02C301B61B060C4D
    2528: 22:35:02.753 - CLRBaseDirectory set to "C:\Documents and Settings\Rocko\My Documents\My Projects\photon\ExitGames-Photon-Server-SDK_v3-0-37-3631\deploy"
    2528: 22:35:02.753 - Optimising event broadcast for 20 or more peers
    2528: 22:35:02.753 - About to load CLR - versions available:
    2528: 22:35:02.753 - v2.0.50727
    2528: 22:35:02.753 - v4.0.30319
    2528: 22:35:02.753 - No preference in configuration file, will load latest.
    2528: 22:35:02.753 - About to load version: "v4.0.30319"
    2528: 22:35:02.768 - Loaded version: "v4.0.30319"
    2528: 22:35:03.159 - Photon host runtime loaded
    2528: 22:35:03.190 - ERROR: failed to load PhotonLicensing.dll. Going to shutdown.
    2528: 22:35:03.190 - License has expired.
    2528: 22:35:03.190 - Server shutting down...
    2528: 22:35:03.190 - Notifying CLR applications of shutdown...
    2528: 22:35:03.190 - Shutting down TCP Outbound Connection Manager...
    2528: 22:35:03.190 - Shutting down ENet Outbound Connection Manager...
    2528: 22:35:03.190 - Disconnecting all outbound peers...
    ......
  • Philip
    Options
    Hi rocko,

    Please download the photon sdk again we replaced the package that should fix your issue.

    Sorry for the inconvenince.
    Philip
  • Philip
    Options
    UPDATE:
    We just uploaded a repackaged sdk as self extracting exe or 7zip file.
    With both the issue should be resolved.

    ---
    Hi Rocko,

    we found the root cause of the problem actually both version you downloaded should work.

    The problem is that the package gets blocked (marked as internet download) by windows when you download the file. Unpacking with the explorer built-in zip feature blocks all the unpacked files. And Photon is not allowed to dynamically load the PhotonLicense.dll when its marked as blocked.

    There are to ways to solve the problem:

    1) you unpack with another tool like 7zip or winrar.

    2) or you unblock the zip-file before you unpack with the explorer built-in zip functionality - right click the “not trusted” zip-file choose “Property” and click unblock:

  • rocko
    Options
    Hi Phillip,
    I followed the instruction and used winrar instead of winzip to unzip it, now the server started properly! Now I can dig into the tutorial for some real actions. Thanks so much for the prompt resolution of my problems! I really appreciate.
    Rocko
  • Thanks for the feedback!

    We have replaced the Photon Server SDK .zip package with a self-extracting archive (.exe), where the workaround is no longer required.
    In addition, a zip archive in 7zip format is now available (7zip is a great open source zip tool, available at http://7-zip.org/).

    Both versions can be downloaded from the Download section on our website: http://www.exitgames.com/Download/Photon