Photon SDK Server instantly turns off

I used thi tutorial Starting Photon in 5 Minutes Photon SDK Server for setup. But unfortunately after LoadBalancing (MyCloud) -> "Start as Application it instantly turns off. Please advise how to solve this problem

Thanks in advance

Comments

  • I tried to find the error in log file if it can help to solve the problem i pin it below, sorry for long message

    6396: 16:58:49.333 - Service is running...
    6396: 16:58:54.369 - CounterPublisher:4 - PhotonRunning() failed. Exception:
    System.TypeInitializationException: Der Typeninitialisierer für "Photon.CounterPublisher.SystemCounter" hat eine Ausnahme verursacht. ---> System.InvalidOperationException: Indikatornamensdaten können nicht geladen werden, da ein ungültiger Index "" aus der Registrierung gelesen wurde.
    bei System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp)
    bei System.Diagnostics.PerformanceCounterLib.get_NameTable()
    bei System.Diagnostics.PerformanceCounterLib.get_CategoryTable()
    bei System.Diagnostics.PerformanceCounterLib.CategoryExists(String machine, String category)
    bei System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName, String machineName)
    bei ExitGames.Diagnostics.Counter.PerformanceCounterReader.Initialize() in c:\(Work)\(EG)\exitgames-libs\src\Core\Diagnostics\Counter\PerformanceCounterReader.cs:Zeile 134.
    bei Photon.CounterPublisher.SystemCounter..cctor() in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\SystemCounter.cs:Zeile 36.
    --- Ende der internen Ausnahmestapelüberwachung ---
    at...
    System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> System.TypeInitializationException: Der Typeninitialisierer für "Photon.CounterPublisher.SystemCounter" hat eine Ausnahme verursacht. ---> System.InvalidOperationException: Indikatornamensdaten können nicht geladen werden, da ein ungültiger Index "" aus der Registrierung gelesen wurde.
    bei System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp)
    bei System.Diagnostics.PerformanceCounterLib.get_NameTable()
    bei System.Diagnostics.PerformanceCounterLib.get_CategoryTable()
    bei System.Diagnostics.PerformanceCounterLib.CategoryExists(String machine, String category)
    bei System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName, String machineName)
    bei ExitGames.Diagnostics.Counter.PerformanceCounterReader.Initialize() in c:\(Work)\(EG)\exitgames-libs\src\Core\Diagnostics\Counter\PerformanceCounterReader.cs:Zeile 134.
    bei Photon.CounterPublisher.SystemCounter..cctor() in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\SystemCounter.cs:Zeile 36.
    --- Ende der internen Ausnahmestapelüberwachung ---
    --- Ende der internen Ausnahmestapelüberwachung ---
    bei System.RuntimeFieldHandle.GetValue(RtFieldInfo field, Object instance, RuntimeType fieldType, RuntimeType declaringType, Boolean& domainInitialized)
    bei System.Reflection.RtFieldInfo.UnsafeGetValue(Object obj)
    bei System.Reflection.RtFieldInfo.GetValue(Object obj)
    bei ExitGames.Diagnostics.Monitoring.CounterSamplePublisherFactory.InitializeCounterPublisher(CounterSamplePublisher counterSamplePublisher, Object counterSet, IEnumerable`1 memberList, String counterSetName) in c:\(Work)\(EG)\exitgames-libs\src\Core\Diagnostics\Monitoring\CounterSamplePublisherFactory.cs:Zeile 256.
    bei Photon.CounterPublisher.Application.Setup() in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\Application.cs:Zeile 57.
    bei Photon.SocketServer.ApplicationBase.PhotonHostRuntimeInterfaces.IPhotonControl.OnPhotonRunning() in h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\ApplicationBase.cs:Zeile 1189.
    bei PhotonHostRuntime.PhotonDomainManager.PhotonPlainAppDomainBehavior.PhotonRunning()
    bei PhotonHostRuntime.PhotonDomainManager.PhotonRunning()

  • I have older version downloaded and now it works correctly. So problem is solved
  • hi, @LeKuksi
    what windows version are you using?
    what photon version did you mange to start?

    best,
    ilya
  • Hi Ilya,

    I use Windows 7 Professional and with version v4-0-29-11263 of Photon-OnPremise-Server-SDK I got that error. With previous version 3-4-31-10808 ExitGames-Photon-Server-SDK it works well.

    Best Regards, LeKuksi
  • hi, @LeKuksi

    please take a look at this forum topic: http://forum.photonengine.com/discussion/9606/cant-start-photon-server
    it might help you

    best,
    ilya