Skip to content
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

Backup Failure when file missing #1100

Open
3 tasks done
sanegaming opened this issue May 11, 2024 · 6 comments
Open
3 tasks done

Backup Failure when file missing #1100

sanegaming opened this issue May 11, 2024 · 6 comments

Comments

@sanegaming
Copy link

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:

  • that I have searched for an existing bug report for this issue.
  • that I am using the latest available version of AMP.
  • 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

@jwitow
Copy link

jwitow commented May 15, 2024

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?

@sanegaming
Copy link
Author

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

@Marvellanius
Copy link

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

@IceOfWraith
Copy link
Collaborator

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.

@sanegaming
Copy link
Author

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.

@IceOfWraith
Copy link
Collaborator

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

Screenshot_20240612_181849_Chrome.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants