guidance-for-persistent-world-game-hosting-on-aws icon indicating copy to clipboard operation
guidance-for-persistent-world-game-hosting-on-aws copied to clipboard

GameLift fleet resource fails to stabilize when deploying gamelift backend

Open jwlondon98 opened this issue 2 years ago • 2 comments
trafficstars

Following the deployment process described in the readme. When I run cdk deploy PersistentWorldGameliftStack (step 7), the command line eventually prints a CREATE_FAILED error on step 36/42:

Example Persistent World Fleet (ExamplePersistentWorldFleet) Resource handler returned message: "Resource of type 'AWS::GameLift::Fleet' with identifier 'fleet-393d4f21-f56e-4f97-a0b9-7325b08dfaf5' did not stabilize." (RequestToken: f15ba57a-dd4f-4921-03f5-f692c7632d78, HandlerErrorCode: NotStabilized)

image

The process then proceeds to ROLLBACK all previous steps.

jwlondon98 avatar Mar 28 '23 23:03 jwlondon98

Looking at the Fleets for more information, I saw under Events: Cannot run program "/local/game/install.sh" (in directory "/local/game"): error=2, No such file or directory

ScatSoQt avatar Apr 02 '23 14:04 ScatSoQt

Hi both!

Sorry for the very delayed reply. First thing you should do is to check that the LinuxServerBuild folder has install.sh in it (as it should) as well as the game server binary and data.

If you're on Windows, there might be a line ending problem with the install.sh script changing from the original Unix line endings to Windows. You could try with Notepad++ to change the line endings in install.sh by selecting "Edit -> EOL conversion -> UNIX/OSX Format" and saving.

Let me know if this helped and I will look more into it if needed!

juhoaws avatar Jun 01 '23 15:06 juhoaws