Upon closer inspection, it's still running on Amazon AL1. Could this be the problem?
I tried to change building fleet with --operating-system AMAZON_LINUX_2023 but I got:
An error occurred (InvalidRequestException) when calling the CreateBuild operation: The Amazon Linux 2023 operating system is not supported with GameLift SDK version under 5.0.
I built the window's dll and linux's sh plugin with GameLiftServerSDK-5.1.1. Where else do I need to upgraded this?
You might check the URL of the WebSocket used to connect to your game server.
//Define the server parameters FServerParameters serverParameters; parameters.m_authToken = "1111aaaa-22bb-33cc-44dd-5555eeee66ff"; parameters.m_fleetId = "arn:aws:gamelift:us-west-1:111122223333:fleet/fleet-9999ffff-88ee-77dd-66cc-5555bbbb44aa"; parameters.m_hostId = "HardwareAnywhere"; parameters.m_processId = "PID1234"; parameters.m_webSocketUrl = "wss://us-west-1.api.amazongamelift.com";
//Call InitSDK to establish a local connection with the GameLift agent to enable further communication. FGameLiftGenericOutcome initSdkOutcome = gameLiftSdkModule->InitSDK(serverParameters);
I don't get it. Does this URL normally set itself when uploading the game through GameLift? Could this raised problems because I tried test-running this in normal EC2, not though gamelift fleet?
Is there any way to see the log when the server crashed after activating in Gamelift?
Sorry for so many questions. Been using this for years and I never seen it crashes like this. This is inly because I updated from Unreal 4.6 to Unreal5.3.
ps. It's pretty wierd that it still said that I use Amazon Al1 OS when I already upgraded to the latest Gamelift Plugin..
When creating a GameLift build, make sure to specify the correct GameLiftServerSDK version that you are using with your server. Otherwise, GameLift won't know how to correctly setup your Managed EC2's infrastructure, especially with a jump in major version from SDK 4 to SDK 5.
Additionally, if the server is crashing locally, there should be a way to enable crash dumps in Unreal to see what is happening. A common occurrence we've seen is customers using a different OpenSSL version for building the GameLiftServerSDK than what Unreal 5 uses for it's net code, or that the OpenSSL libraries they built with aren't included in their build.
Lastly, if your Managed EC2 server crashes, you can sign into the EC2 instance to view your logs directly.
- For SDK 4 and below fleets, check out this guide: https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-remote-access.html
- For SDK 5 and above fleets, check out this re:Post answer: https://repost.aws/questions/QUKtsf6-brR4yhhYTL1Taniw/connect-to-windows-server-2016-gamelift-instance-with-sdk-version-5#ANhWlxD6VdQEaEEROOLc1UMg
Hope that helps!
I used sdk5 to build the thing but it won't let me choose Linux 2023. So I had to use Linux 2 instead
- asked 5 months ago
- Accepted Answerasked 6 months ago
- How do I resolve the error "You must be logged in to the server (Unauthorized)" when I connect to the Amazon EKS API server?AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 4 months ago
- EXPERTpublished 8 months ago