Code Monkey home page Code Monkey logo

Comments (13)

Josh-Tracy avatar Josh-Tracy commented on June 16, 2024

What version of the module are you using and what AWS region are you in.

from terraform-aws-palworld.

Josh-Tracy avatar Josh-Tracy commented on June 16, 2024

@ridwanaliah also, set the backup_s3_bucket_arn = "" and backup_s3_bucket_name = "". Those inputs are only used when you have create_backup_s3_bucket = false because you have an existing S3 bucket you want to use.

from terraform-aws-palworld.

ridwanaliah avatar ridwanaliah commented on June 16, 2024

What version of the module are you using and what AWS region are you in.

i used the sudo 1.1.0, my region ap-southeast-1

from terraform-aws-palworld.

ridwanaliah avatar ridwanaliah commented on June 16, 2024

@ridwanaliah also, set the backup_s3_bucket_arn = "" and backup_s3_bucket_name = "". Those inputs are only used when you have create_backup_s3_bucket = false because you have an existing S3 bucket you want to use.

okay i'll try it now

image

PS:
I have changed it to your advice, and now i'm waiting for the backup files

from terraform-aws-palworld.

Josh-Tracy avatar Josh-Tracy commented on June 16, 2024

Version 1.1.1 includes a bug fix to support certain AWS regions with s3. If the palworld_backup_log.txt file in the /palworld-server directory says something like this:

An error occurred (IllegalLocationConstraintException) when calling the PutObject operation: The ap-southeast-1 location constraint is incompatible for the region specific endpoint this request was sent to.

Then you need to update the module version to 1.1.1 and do one of these 2 options:

Option 1

Delete your server and rerun terraform apply to get a new server with the new user_data script. This will build a new /palworld-server/palworld_backup_script.sh on your server with the fix applied.

Option 2

SSH into your server and edit the existing backup script located in /palworld-server/palworld_backup_script.sh and look for these lines:

aws s3 cp "\$BACKUP_FILENAME" s3://"\$S3_BUCKET_NAME"/ 
aws s3 cp "\$GUS_BACKUP" s3://"\$S3_BUCKET_NAME"/ 

and add --region af-south-1 to the end of both of them. Example:

aws s3 cp "\$BACKUP_FILENAME" s3://"\$S3_BUCKET_NAME"/ --region ap-southeast-1
aws s3 cp "\$GUS_BACKUP" s3://"\$S3_BUCKET_NAME"/ --region  ap-southeast-1

from terraform-aws-palworld.

ridwanaliah avatar ridwanaliah commented on June 16, 2024

Can you give me some instruction how to update to 1.1.1 module?

anyway i still don't get any backup files

from terraform-aws-palworld.

ridwanaliah avatar ridwanaliah commented on June 16, 2024

Option 1
Delete your server and rerun terraform apply to get a new server with the new user_data script. This will build a new /palworld-server/palworld_backup_script.sh on your server with the fix applied.

if i do this, all my dedicated server save games will lost or not?

from terraform-aws-palworld.

ridwanaliah avatar ridwanaliah commented on June 16, 2024

hello, i've updated the module to 1.1.1 version
but can you help me how to do the option 2?

image

what command i use to ssh to the palworld_backup_script.sh
i need ur help
thank you so much.

from terraform-aws-palworld.

ridwanaliah avatar ridwanaliah commented on June 16, 2024

image

what should i do next?

from terraform-aws-palworld.

ridwanaliah avatar ridwanaliah commented on June 16, 2024

can i copy paste this manually to my local desktop?

image

from terraform-aws-palworld.

Josh-Tracy avatar Josh-Tracy commented on June 16, 2024

Sorry for the late response.

Looking at your screenshot, it looks like you never got the backup script installed. I do not see the /palworld-server/palworld_backup_script.sh .That means the cron job was never setup either. Option 2 was for editing the backup script manually using vi or some other texte editor as outlined here: https://youtu.be/H0gGtPqhxco?si=8CwsubuxhYZI-qv4&t=334

If that file does not exist then your only option is to destroy the server and recreate it using version 1.1.1. Starting from here: https://youtu.be/H0gGtPqhxco?si=L1OIwfsIkaCVBQEj&t=1175 you an use SCP to move the SaveGame files off your EC2 instance onto your PC to save your data.

Then you can use the restore_from_backup option to start a new sever using your backup files. Be sure to follow the instructions in the README.md and restore_from_backup example. Make sure you get the DedicatedServerName from your GameUserSettings.ini file before you destroy the server.

from terraform-aws-palworld.

ridwanaliah avatar ridwanaliah commented on June 16, 2024

If that file does not exist then your only option is to destroy the server and recreate it using version 1.1.1. Starting from here: https://youtu.be/H0gGtPqhxco?si=L1OIwfsIkaCVBQEj&t=1175 you an use SCP to move the SaveGame files off your EC2 instance onto your PC to save your data

I've tried this to scp it but it appears like this:

image

can you help me?

from terraform-aws-palworld.

Josh-Tracy avatar Josh-Tracy commented on June 16, 2024

../../palworld_public_key is stating that you have the ssh key 2 directories/folders below the C:\Users\User\Desktop\Palworld-Terraform\ directory / folder. You have to provide the path to your SSH key relative to C:\Users\User\Desktop\Palworld-Terraform\.

from terraform-aws-palworld.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.