Gamelift ProcessEnding and Destroy via suggested sample, but reported SERVER_PROCESS_PROCESS_EXIT_TIMEOUT

0

https://docs.aws.amazon.com/gamelift/latest/developerguide/integration-server-sdk5-csharp-actions.html#integration-server-sdk5-csharp-processending

We use unity dedicated server(2021.3.10f1) and sdk C#(5.1.1), managed fleet with linux.

We got dedicated server issue, started remote monitoring with ssm. And tail whitewater/Logs/processmanager.log

Case 1, use sample. reported SERVER_PROCESS_PROCESS_EXIT_TIMEOUT.

GenericOutcome processEndingOutcome = GameLiftServerAPI.ProcessEnding();
GameLiftServerAPI.Destroy();

if (processEndingOutcome.Success)
  {
    Environment.Exit(0);
  }
else
  {
    Console.WriteLine("ProcessEnding() failed. Error: " + processEndingOutcome.Error.ToString());
    Environment.Exit(-1);  
  }
ProcessExitHelper: Determining exit from processExitValue 137; terminationReason
ProcessExitHelper: Creating abnormal exit from exitCode FORCE_EXIT_EXIT_TIMEOUT
EventReporter: Reporting exit ProcessExit(exitType=ABNORMAL, exitCode=FORCE_EXIT_EXIT_TIMEOUT) with exit code 137 for process [`process_uuid`] 
EventReporter: Did not find an abnormal exit, but FORCE_EXIT_EXIT_TIMEOUT exit code. must report
....
HeartbeatHandler: Received Heartbeat response with Status: [Active]; Unhealthy processes: [[`process_uuid`]]; Unregistered processes: [[]]
GameProcessManager: Skipping process termination; no managed process found with process UUID `process_uuid`

Case 2, use sample line of only ProcessEnding. but not reported SERVER_PROCESS_PROCESS_EXIT_TIMEOUT.

GenericOutcome processEndingOutcome = GameLiftServerAPI.ProcessEnding();
ProcessExitHelper: Determining exit from processExitValue 0; terminationReason null
EventReporter: Reporting exit ProcessExit(exitType=NORMAL, exitCode=NONE) with exit code 0 for process [`process_uuid`]
EventReporter: Did not find an abnormal exit.  Not recording an event.
...
HeartbeatHandler: Received Heartbeat response with Status: [Active]; Unhealthy processes: [[`process_uuid`]] Unregistered processes: [[]]
GameProcessManager: Skipping process termination; no managed process found with process UUID `process_uuid`

Which one is normal? what does HeartbeatHandler Unhealthy processes list mean?

As an aside, the server would sometimes restart and show SERVER_PROCESS_EXIT_TIMEOUT when I wasn't playing.

질문됨 8달 전261회 조회
1개 답변
0

Hello,

Kindly note that the correct steps to terminate the process is to call the ProcessEnding(), Destroy(), and exit(0) (in that exact order). It is important to note that if this isn't done within 1 minute, a SERVER_PROCESS_EXIT_TIMEOUT Fleet event will be created when GameLift terminates the process for you.

If you are terminating the process correctly and if you are still facing “SERVER_PROCESS_EXIT_TIMEOUT” issue, we would require further details from your end which are non-public information like your Fleet ARN, additional logs in order to investigate this issue further. Hence, kindly open a support case with AWS Premium Support so that we can further investigate this issue.

[+] AWS Premium Support: https://aws.amazon.com/premiumsupport/

AWS
지원 엔지니어
답변함 8달 전
profile picture
전문가
검토됨 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠