Unable to complete instance backups - missing file

OS Name/Version: Ubuntu 20.04

Product Name/Version: AMP Release “Triton” v2.3.3, built 24/05/2022 15:04

Problem Description:
Unable to add /home/amp/.ampdata/instances/<InstanceName>/Minecraft/world/level.dat_new to archive: Could not find file '/home/amp/.ampdata/instances/<InstanceName>/Minecraft/world/level.dat_new'. - aborting.

Steps to reproduce:

  • Step 1: Schedule backup
  • Step 2: Let backup run
  • Step 3: Backup fail with the above

Actions taken to resolve so far:
If you copy level.dat to level.dat_new then it will work once then it fails again.

I have another scheduled task that writes unsaved changes to the world to the disk.

Additional AMP Logs for Instance:

cat AMPLOG\ 2022-06-02\ 00-00-00.log
[00:00:00] [Logger Info]          : Rollover from previous log file: AMP_Logs/AMPLOG 2022-06-01 00-00-00.log
[00:00:00] [FileBackup Activity]  : Creating Backup: Scheduled Backup
[00:00:00] [Server thread/INFO]: Saving...
[00:00:00] [Server thread/INFO]: Saved the world
[00:00:10] [Server thread/INFO]: Turned on world auto-saving
[01:00:00] [Server thread/INFO]: Saving...
[01:00:00] [Server thread/INFO]: Saved the world
[02:00:00] [Server thread/INFO]: Saving...
[02:00:00] [Server thread/INFO]: Saved the world
[03:00:00] [FileBackup Activity]  : Creating Backup: Scheduled Backup
[03:00:00] [Server thread/INFO]: Saving...
[03:00:00] [Server thread/INFO]: Saved the world
[03:00:00] [Server thread/INFO]: Saving...
[03:00:00] [Server thread/INFO]: Saved the world
[03:00:00] [Server thread/INFO]: Turned off world auto-saving
[03:00:10] [Server thread/INFO]: Turned on world auto-saving
[04:00:00] [Server thread/INFO]: Saving...
[04:00:00] [Server thread/INFO]: Saved the world
[05:00:00] [Server thread/INFO]: Saving...
[05:00:00] [Server thread/INFO]: Saved the world
[05:09:00] [Core Info]            : Checking for AMP updates...
[05:09:01] [Core Info]            : AMP is up-to-date.
[06:00:00] [FileBackup Activity]  : Creating Backup: Scheduled Backup
[06:00:00] [Server thread/INFO]: Saving...
[06:00:00] [Server thread/INFO]: Saved the world
[06:00:00] [Server thread/INFO]: Saving...
[06:00:00] [Server thread/INFO]: Saved the world
[06:00:00] [Server thread/INFO]: Turned off world auto-saving
[06:00:10] [Server thread/INFO]: Turned on world auto-saving

Try adding the .dat_new extension to the exclusion list for that directory. This can happen if the file is deleted by the running MC server between AMP building the file list and then making the archive.

Another method is to stop the Minecraft server first. I do a daily restart anyways so the backup is taken in between the stop/start.

I forgot to update, my b.

@Mike I applied the exclusion for the file, thank you.

@IceOfWraith I spaced putting an automation in for restarting the mc server, thank you for the reminder. I did apply that.