doctorray117 / minecraft-ondemand

Templates to deploy a serverless Minecraft Server on demand in AWS
Apache License 2.0
1.72k stars 119 forks source link

EFS Seemingly Not Being Used by Tasks #67

Closed Th3Equin0x closed 1 year ago

Th3Equin0x commented 1 year ago

Hello, and thank you for putting together this tutorial! I don't have much AWS experience, but I was able to get about 99% of the way to an ondemand modded Minecraft server with your help. The server spins itself up and shuts itself down according to activity as advertised, and I've been able to log into them.

Unfortunately, I've encountered an issue that I'm not sure how to resolve. It seems like the cluster containers aren't using the EFS as a data volume somehow. Nothing carries over between sessions, and when I manually mount into the EFS between active sessions, there's nothing there besides the ops.json I manually created, inserted into the S3 and then transferred into the EFS. Judging by that, I know that the DataSync tasks are working and the FS and FSAP IDs are correct.

FA and FSAP IDs image

FSAP Details image

Cluster Task Definition Storage Configuration image

efs.rw.minecraft-data IAM policy image

Roles with efs.rw.minecraft-data attached image

Logs from Cluster tasks showing files and directories being referenced image

EC2 Console After Mounting EFS and using ls to check contents image

Th3Equin0x commented 1 year ago

I found a section for defining mountPoints for the containers to use the EFS, but they still don't seem to be using it? They create a new server.properties and generate a new starting area every time still.

It would be very helpful for me if you could share an example of what the mountPoints and Volumes look like for you.

The container path values shown here cause the container deployments to fail, but I also tried /minecraft and that did not seem to help the issue with the EFS being empty. image