AMP icon indicating copy to clipboard operation
AMP copied to clipboard

Backup Failure when file missing

Open sanegaming opened this issue 1 year ago • 6 comments

Bug Report

System Information

  • Operating System (Including distribution name and version number):
  1. Windows 10
  • AMP version and build date (Always use the version number, 'latest' is not valid!)
  1. 2.5.0.8 - 20240502.1
  • Which AMP release stream you're using (Mainline, Nightly or FastTrack)
  1. Mainline

I confirm:

  • [x] that I have searched for an existing bug report for this issue.
  • [x] that I am using the latest available version of AMP.
  • [x] that my operating system is up-to-date.

Symptoms

  • What are you trying to do? Take a scheduled backup

  • What are you expecting to happen? The backup to be taken successfully, without having to stop the server.

  • What is actually happening? ('Nothing' is not an acceptable answer!) The backup task fails if a file is missing, sometimes games change files while running and it messes with the file index, or a user manually removes a file. If that happens after the index point, then the backup always fails outright.

Reproduction

Have an instance kick off a backup delete a file before it was archived notice failure

sanegaming avatar May 11 '24 17:05 sanegaming

I'm having an issue with V Rising server backups and I believe this is the cause. Since the game seems to trim its own autosaves, they go missing before a backup can be completed. I didn't think this would be the case for every backup attempt, but it has been for every scheduled backup that's been attempted so far. I'm not sure if there's a long period of time between the indexing and the actual backing up or what, because it seems like there would be a slim chance for a save to get trimmed at the exact moment that the files are being archived, but maybe not?

jwitow avatar May 15 '24 00:05 jwitow

Also there is no notification banner when a backup is running via the scheduled task on 2.5.0.10 - 20240521.1

sanegaming avatar Jun 02 '24 15:06 sanegaming

I'm having this issue on a V Rising instance as well, scheduled backups are never completed, stating Failed - Could not find file '/AMP/v-rising/1829350/save-data/Saves/v3/richieworld/AutoSave_10210.save.gz'. Manually triggering them sometimes does work, so I am imagining this is some sort of race condition as @jwitow seems to suggest

Marvellanius avatar Jun 12 '24 15:06 Marvellanius

As a workaround, this shouldn't be an issue if you stop the game server while doing the backup. It's not the best scenario, but there is a way to still get your backups while the issue is looked into.

IceOfWraith avatar Jun 12 '24 15:06 IceOfWraith

As a workaround, this shouldn't be an issue if you stop the game server while doing the backup. It's not the best scenario, but there is a way to still get your backups while the issue is looked into.

can you provide an example schedule that properly reports the backup completed state to ensure the server isn't started until complete. I've been trying to use wait action but it's not working well for me.

sanegaming avatar Jun 12 '24 18:06 sanegaming

See the top two triggers here. Should do what you need.

Screenshot_20240612_181849_Chrome.jpg

IceOfWraith avatar Jun 12 '24 23:06 IceOfWraith