Gamelift Managed Linux Servers Lock Up (Question includes a workaround)

0

There appears to be a bug in GameLift Managed Linux hosting where standard output is redirected by the process that starts the server executable and is not being read from which causes the server to hang once the buffer fills up. This is happening with a normal UE4 server.

A workaround is to not use standard output or redirect standard output to /dev/null in the game server executable. I don't know if this is just an issue with my server or if other people are having the same issue which is why I am asking this question and providing a workaround.

If anyone from AWS can take a look at the server wrapper and see if this is an issue with all managed servers it would be helpful. It should be a fairly easy fix to implement in the wrapper code. Hopefully this helps anyone having the same issue.

Bahke
질문됨 일 년 전272회 조회
1개 답변
0

Hello,

Thank you for reaching out to us regarding the above query. As mentioned by you, For a long term solution, the recommendation is to redirect stdout to a file, and provide the log path to GameLift via LogParameters. This way you can access the log files via the API GetGameSessionLogUrl without having to ssh onto the host. You can periodically clear the buffer using fflush which moves the stream to the desired destination (console in case of stdout / file in case stdout has been redirected to a file).

Having said that, In order to troubleshoot the behaviour being observed, please feel free to open a support case with AWS using the following link as we would require specification of your setup.

Thank you

AWS
지원 엔지니어
Mukul_V
답변함 일 년 전

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

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

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

관련 콘텐츠