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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则