-
-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cron backup #194
Cron backup #194
Conversation
…ith_cron feat: ✨ Add Cron command to Dockerfile.
…ith_cron feat: ✨ Add cron command for DockerFile
Nice work! Will test tonight, after #188 is merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting the following error while running a cronjob to backup:
palworld-server | *****STARTING SERVER*****
palworld-server | ./PalServer.sh -port=8211 -servername="World of Pals" -serverdescription="" -serverpassword="worldofpals" -adminpassword="adminPasswordHere" -queryport=27015 -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS
palworld-server | time="2024-01-29T17:04:03Z" level=info msg="read crontab: /home/steam/server/crontab"
palworld-server | [S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
palworld-server | Shutdown handler: initalize.
palworld-server | Increasing per-process limit of core file size to infinity.
palworld-server | CAppInfoCacheReadFromDiskThread took 2 milliseconds to initialize
palworld-server | Setting breakpad minidump AppID = 2394010
palworld-server | [S_API FAIL] Tried to access Steam interface SteamUser021 before SteamAPI_Init succeeded.
palworld-server | [S_API FAIL] Tried to access Steam interface SteamFriends017 before SteamAPI_Init succeeded.
palworld-server | [S_API FAIL] Tried to access Steam interface STEAMAPPS_INTERFACE_VERSION008 before SteamAPI_Init succeeded.
palworld-server | [S_API FAIL] Tried to access Steam interface SteamNetworkingUtils004 before SteamAPI_Init succeeded.
palworld-server | time="2024-01-29T17:05:00Z" level=info msg=starting iteration=0 job.command="bash /usr/local/bin/backup" job.position=0 job.schedule="* * * * *"
palworld-server | time="2024-01-29T17:05:00Z" level=info msg="cli: config: parse file: read file: open rcon.yaml: no such file or directory" channel=stderr iteration=0 job.command="bash /usr/local/bin/backup" job.position=0 job.schedule="* * * * *"
palworld-server | time="2024-01-29T17:05:00Z" level=info msg="backup created at /palworld/backups/palworld-save-2024-01-29_17-05-00.tar.gz" channel=stdout iteration=0 job.command="bash /usr/local/bin/backup" job.position=0 job.schedule="* * * * *"
palworld-server | time="2024-01-29T17:05:00Z" level=info msg="job succeeded" iteration=0 job.command="bash /usr/local/bin/backup" job.position=0 job.schedule="* * * * *"
palworld-server | time="2024-01-29T17:06:00Z" level=info msg=starting iteration=1 job.command="bash /usr/local/bin/backup" job.position=0 job.schedule="* * * * *"
palworld-server | time="2024-01-29T17:06:00Z" level=info msg="cli: config: parse file: read file: open rcon.yaml: no such file or directory" channel=stderr iteration=1 job.command="bash /usr/local/bin/backup" job.position=0 job.schedule="* * * * *"
palworld-server | time="2024-01-29T17:06:00Z" level=info msg="backup created at /palworld/backups/palworld-save-2024-01-29_17-06-00.tar.gz" channel=stdout iteration=1 job.command="bash /usr/local/bin/backup" job.position=0 job.schedule="* * * * *"
palworld-server | time="2024-01-29T17:06:00Z" level=info msg="job succeeded" iteration=1 job.command="bash /usr/local/bin/backup" job.position=0 job.schedule="* * * * *"
palworld-server | time="2024-01-29T17:07:00Z" level=info msg=starting iteration=2 job.command="bash /usr/local/bin/backup" job.position=0 job.schedule="* * * * *"
palworld-server | time="2024-01-29T17:07:00Z" level=info msg="cli: config: parse file: read file: open rcon.yaml: no such file or directory" channel=stderr iteration=2 job.command="bash /usr/local/bin/backup" job.position=0 job.schedule="* * * * *"
palworld-server | time="2024-01-29T17:07:00Z" level=info msg="backup created at /palworld/backups/palworld-save-2024-01-29_17-07-00.tar.gz" channel=stdout iteration=2 job.command="bash /usr/local/bin/backup" job.position=0 job.schedule="* * * * *"
palworld-server | time="2024-01-29T17:07:00Z" level=info msg="job succeeded" iteration=2 job.command="bash /usr/local/bin/backup" job.position=0 job.schedule="* * * * *"
It seems like the rcon-cli cant find the rcon.yaml
It seems like supercronic was not able to find the rcon.yaml in the default location, added the full path and it runs without issues |
Context
Choices
palworld-server-test | time="2024-01-28T17:33:00-05:00" level=info msg=starting iteration=0 job.command="bash /usr/local/bin/backup" job.position=0 job.schedule="* * * * *"
Test instructions
BACKUP_CRON_EXPRESSION
to* * * * *
to backup every minute to reduce waiting while testingdocker exec -it palworld-server bash -c "top -n 1 | grep supercronic | grep --color steam"
Checklist before requesting a review