CubeCoders / AMP

Issue tracking and documentation for AMP
https://cubecoders.com/AMP
201 stars 38 forks source link

Backup Failure when file missing #1100

Open sanegaming opened 1 month ago

sanegaming commented 1 month ago

Bug Report

System Information

I confirm:

Symptoms

Reproduction

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

jwitow commented 1 month ago

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 commented 3 weeks ago

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

Marvellanius commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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

Screenshot_20240612_181849_Chrome.jpg