Inability to start the local server.

Options
CTucker1327
edited February 2014 in Photon Server
I honestly just don't know what's going on, I'm following the tutorial here to get things set up.
-- http://doc.exitgames.com/photon-server/PhotonIn5Min

and, when I attempt to start my server by clicking on the Photon Control icon in the tray, going to default and "Start as application" nothing happens. I'm running the program as administrator and I have UAC disabled. It's not attempting to start or giving any errors. I then looked through the files to try to start it through another means, but I still get the "Photon Stopped" hoverbox.

I attempted running the .bat file called "_run-Photon-as-application.start" and nothing happened, here was the output provided.

TASKS.TXT

Starting Photon as application.
Press any key to continue . . .

EDIT: I found the logs, here they are

PhotonCLR
2014-02-25 05:21:28,129 [ 1] INFO PhotonHostRuntime.PhotonDomainManager - Initialize: ApplicationName = 'DefaultDomain', DomainID = '1'
2014-02-25 05:21:28,151 [ 1] INFO PhotonHostRuntime.PhotonDomainManager - AppDomains with unhandled exceptions are usually not unloaded and restarted.
2014-02-25 05:21:28,156 [ 1] INFO PhotonHostRuntime.PhotonDomainManager - Getting license information:
2014-02-25 05:21:28,165 [ 1] ERROR PhotonHostRuntime.PhotonDomainManager - Failed to get PhotonLicensing instance: Could not load file or assembly 'PhotonLicensing, Version=3.4.1.2521, Culture=neutral, PublicKeyToken=02c301b61b060c4d' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
2014-02-25 05:21:28,168 [ 1] ERROR PhotonHostRuntime.PhotonDomainManager - ERROR: failed to load PhotonLicensing.dll. Going to shutdown.
2014-02-25 05:21:28,174 [ 1] INFO PhotonHostRuntime.PhotonDomainManager - RequestStop: ApplicationName = 'DefaultDomain', DomainId='1'




Photon-Default-20140225
5860: 05:21:27.946 - ---
5860: 05:21:27.946 - Service: "Photon Socket Server" starting
5860: 05:21:27.946 - Config File: C:\UnityPackages\PhotonServer\deploy\bin_Win64\PhotonServer.config
5860: 05:21:27.947 - Will produce at most: 10 crash dumps
5860: 05:21:27.947 - Action: run as exe
5860: 05:21:27.948 - Server Starting...
5860: 05:21:27.948 - Tick count: 88222671 (wraps in: 48.6892 days)
5860: 05:21:27.948 - Tick count 64: 88222671
5860: 05:21:27.948 - Photon Version: 3.4.1.2521
5860: 05:21:27.948 - PID: 1436
5860: 05:21:27.948 - Config File: C:\UnityPackages\PhotonServer\deploy\bin_Win64\PhotonServer.config
5860: 05:21:27.948 - Will NOT log unimportant exceptions
5860: 05:21:27.951 - Not using performance counters as they are not currently installed. Run the service with /InstallCounters to install them.
5860: 05:21:27.951 - Shutdown timeout enabled: 30000ms
5860: 05:21:27.951 - Starting I/O thread pool with 2 threads
5860: 05:21:27.951 - Using Standard allocator
5860: 05:21:27.951 - Max message size: 512000
5860: 05:21:27.951 - Starting business logic thread pool with the following settings
5860: 05:21:27.951 - InitialThreads: 4 threads
5860: 05:21:27.951 - MinThreads: 4 threads
5860: 05:21:27.951 - Thread pool is fixed size
5860: 05:21:27.951 - Starting ENet thread pool with the following settings
5860: 05:21:27.951 - InitialThreads: 2 threads
5860: 05:21:27.951 - MinThreads: 2 threads
5860: 05:21:27.951 - Thread pool is fixed size
5860: 05:21:27.951 - OnlyDispatchTimers: False
5860: 05:21:27.951 - S2S: flow control: Max pending writes: 50
5860: 05:21:27.952 - S2S: flow control: Max queued buffers: 200
5860: 05:21:27.952 - S2S: flow control: Max pending writes MUX: 500
5860: 05:21:27.952 - S2S: flow control: Max queued buffers MUX: 2000
5860: 05:21:27.952 - S2S: MaxInboundMessageSize: 512000
5860: 05:21:27.952 - S2S: MaxOutboundMessageSize: 512000
5860: 05:21:27.952 - S2S: No inactivity timeout
5860: 05:21:27.954 - WebSocket S2S: MaxInboundMessageSize: 512000
5860: 05:21:27.954 - WebSocket S2S: MaxOutboundMessageSize: 512000
5860: 05:21:27.954 - WebSocket S2S: No inactivity timeout
5860: 05:21:27.955 - Max Reliable Data In Transit (awaiting ACKs) per peer : 51200 bytes
5860: 05:21:27.955 - Per peer bandwidth limit
5860: 05:21:27.955 - Transmit Rate Limit: 256 KB/Sec
5860: 05:21:27.955 - Limit period: 200ms
5860: 05:21:27.955 - Limit per period: 52428 bytes
5860: 05:21:27.955 - Max queued data for transmission per peer: 512000 bytes
5860: 05:21:27.955 - Minimum retransmit timeout: 200
5860: 05:21:27.955 - Minimum ENet timeout: 5000ms
5860: 05:21:27.955 - Maximum ENet timeout: 30000ms
5860: 05:21:27.955 - Max Inbound Reliable Data Queued (awaiting resends of earlier sequence numbers) per peer : 163840 bytes
5860: 05:21:27.955 - Outbound ENet: MaxInboundMessageSize: 512000
5860: 05:21:27.955 - Outbound ENet: MaxOutboundMessageSize: 512000
5860: 05:21:27.956 - GetRuntime - About to load CLR - versions available:
5860: 05:21:27.956 - v2.0.50727
5860: 05:21:27.956 - v4.0.30319
5860: 05:21:27.956 - Configuration requests: "v2.0.50727"
5860: 05:21:27.956 - About to load version: "v2.0.50727"
5860: 05:21:27.960 - About to load runtime: PhotonHostRuntime.PhotonDomainManager from PhotonHostRuntime, Culture=neutral, PublicKeyToken=02C301B61B060C4D
5860: 05:21:27.960 - CLRBaseDirectory set to "C:\UnityPackages\PhotonServer\deploy"
5860: 05:21:27.960 - Optimising event broadcast for 20 or more peers
5860: 05:21:27.961 - Start: About to load CLR - versions available:
5860: 05:21:27.961 - v2.0.50727
5860: 05:21:27.961 - v4.0.30319
5860: 05:21:27.961 - No preference in configuration file, will load latest.
5860: 05:21:27.961 - About to load version: "v4.0.30319"
5860: 05:21:27.962 - Loaded version: "v4.0.30319"
5860: 05:21:28.153 - Photon host runtime loaded
5860: 05:21:28.172 - ERROR: failed to load PhotonLicensing.dll. Going to shutdown.
5860: 05:21:28.172 - License has expired.
5860: 05:21:28.172 - Server shutting down...
5860: 05:21:28.172 - Shutdown monitoring enabled, 30000ms before process abort
5860: 05:21:28.172 - Notifying CLR applications of shutdown...
5860: 05:21:28.172 - RequestStop: defalt app domain
5860: 05:21:28.176 - Shutting down WebSocket Outbound Connection Manager...
5860: 05:21:28.176 - Shutting down TCP Outbound Connection Manager...
5860: 05:21:28.176 - Shutting down ENet Outbound Connection Manager...
5860: 05:21:28.176 - Disconnecting all outbound peers...
5860: 05:21:28.176 - Shutting down socket servers...
5860: 05:21:28.176 - Shutting down ENet thread pool...
5860: 05:21:28.176 - Shutting down TCP inactivity timers...
5860: 05:21:28.176 - Shutting down CLR applications...
5860: 05:21:28.176 - Shutting down business logic thread pool...
5860: 05:21:28.176 - Shutting down I/O thread pool...
5860: 05:21:28.176 - Destroying servers
5860: 05:21:28.176 - Destroying WebSocket Outbound Connection Manager
5860: 05:21:28.176 - Destroying TCP Outbound Connection Manager
5860: 05:21:28.176 - Destroying TCP inactivity timer
5860: 05:21:28.176 - Destroying ENet timer wheel
5860: 05:21:28.176 - Destroying ENet host
5860: 05:21:28.176 - Destroying ENet outbound host
5860: 05:21:28.176 - Destroying HTTP inactivity timer
5860: 05:21:28.176 - Destroying HTTP host
5860: 05:21:28.176 - Flushing ENET buffer allocator...
5860: 05:21:28.176 - Flushing TCP buffer handle allocator...
5860: 05:21:28.176 - Flushing stream socket allocator...
5860: 05:21:28.176 - Flushing inbound datagram socket allocator...
5860: 05:21:28.176 - Flushing outbound datagram socket allocator...
5860: 05:21:28.176 - Destroying CLR dispatcher
5860: 05:21:28.176 - Destroying CLR applications
5860: 05:21:28.177 - ~CCLRApplicationCollection() - Waiting up to 10 seconds for the CLR to release all of our objects
5860: 05:21:28.177 - ~CCLRApplicationCollection() - Done. All objects released
5860: 05:21:28.177 - ~CManagedHost() - Release default app domain
5860: 05:21:28.177 - CManagedHost::OnDomainUnload() - 1
5860: 05:21:28.177 - ~CManagedHost() - Waiting up to 10 seconds for CLR shutdown...
5860: 05:21:28.177 - ~CManagedHost
5860: 05:21:28.177 - Destroying ENet thread pool
5860: 05:21:28.177 - Destroying Business logic thread pool
5860: 05:21:28.177 - Destroying I/O thread pool
5860: 05:21:28.177 - Destroying ENet buffer allocator
5860: 05:21:28.177 - Destroying TCP buffer allocator
5860: 05:21:28.177 - Destroying TCP socket allocator
5860: 05:21:28.177 - Destroying ENet inbound socket allocator
5860: 05:21:28.177 - Destroying ENet outbound socket allocator
5860: 05:21:28.177 - Shutdown complete...
5860: 05:21:28.177 - Service shutting down: not licensed. Errorcode: 105
5860: 05:21:28.179 - Service shut down complete

Comments

  • After some more searching, I found the answer.
    Philip wrote:
    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:

  • Hi,

    first, we apologize for this issue. We noticed that the issue with the "blocked" / untrusted package is back - probably because Windows 8 has stricter security policies (are you using Windows 8?). We are looking into it and will provide new download packages in the next days.

    As a workaround, use the step 2:

    Unblock the zip-file before you unpack: right click the “not trusted” zip-file, choose “Property” and click unblock.