Clicking Prune button does nothing

MineOS installed as a plugin within FreeNAS

A while back I had a cron job run amuck and it created 2258 restore points. When I click on the button to “Prune older than this” nothing happens. I am unable to prune restore points. Any ideas?

Thx.

When other people click on the “Prune older than this” button, does it happen immediately or after a few seconds or longer? I don’t think I’m being too impatient - I thought maybe the computer is background processing through all 2258 restore points and taking a while to refresh the page. ? I don’t know. I’ve waited up to 45 minutes before doing anything after clicking the button. I think it’s just broken somehow on my system.

I’ve tried it in different browsers and from different end points. Same result.

Thx.

Pruning should definitely happen immediately. Or at least, there should be indications of incremental removals that certain show within 45 minutes.

Can you share the mineos log? /var/log/mineos.log is the standard location–FreeNAS’ plugin does kind of change things up a bit, and in a way I’m not too personally familiar with (another user maintains the mineos plugin), so perhaps the log might show us what’s going on.

Beyond that, the webui is only a front-end to a back-end process called rdiff-backup, so very realistically, we can also try pruning with a terminal command, which might be necessary to see why it’s taking so long and if that’s because of the hefty amount you’re holding.

Thank you for the reply. I’ve uploaded the mineos.log file to Google Drive HERE

Thank you for looking.

Looks like I’ll need to use the command:

rdiff-backup --remove-older-than 2W host.net::/remote-dir

but tailored to my environment it looks like:

root@mineos:/ # rdiff-backup --remove-older-than 2W /var/games/minecraft/backup/Jhin/rdiff-backup-data

… produces the following errors:

Exception 'tuple index out of range' raised of class '<type 'exceptions.IndexError'>':
  File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 304, in error_check_Main
    try: Main(arglist)
  File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 324, in Main
    take_action(rps)
  File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 288, in take_action
    elif action == "remove-older-than": RemoveOlderThan(rps[0])
  File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 760, in RemoveOlderThan
    rootrp = require_root_set(rootrp, 0)
  File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 729, in require_root_set
    if not restore_set_root(rp):
  File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 702, in restore_set_root
    assert (from_datadir[1] == "increments" or

Traceback (most recent call last):
  File "/usr/local/bin/rdiff-backup", line 30, in <module>
    rdiff_backup.Main.error_check_Main(sys.argv[1:])
  File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 304, in error_check_Main
    try: Main(arglist)
  File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 324, in Main
    take_action(rps)
  File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 288, in take_action
    elif action == "remove-older-than": RemoveOlderThan(rps[0])
  File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 760, in RemoveOlderThan
    rootrp = require_root_set(rootrp, 0)
  File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 729, in require_root_set
    if not restore_set_root(rp):
  File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 702, in restore_set_root
    assert (from_datadir[1] == "increments" or
IndexError: tuple index out of range

Any idea what the problem is? I’ll Google it tonight when I get home.

As best as I can tell, you’re supposed to specify /var/games/minecraft/backup/Jhin/, where rdiff-backup-data is the implied directory that rdiff knows about because of it’s child-relationship to Jihn.

Try again without the additional child subdir, and report what errors may be cropping up from that.

Now we’re getting somewhere.

Thx. I ran the following:
root@mineos:/ # rdiff-backup --remove-older-than 2W /var/games/minecraft/backup/Jhin

and I got a listing of all the backup sets in descending order. Here is a snippet of the buffer output:

Mon Jul  1 23:48:01 2019
Mon Jul  1 23:49:01 2019
Mon Jul  1 23:50:01 2019
Mon Jul  1 23:51:01 2019
Mon Jul  1 23:52:01 2019
Mon Jul  1 23:53:01 2019
Mon Jul  1 23:54:01 2019
Mon Jul  1 23:55:00 2019
Mon Jul  1 23:56:00 2019
Mon Jul  1 23:57:00 2019
Mon Jul  1 23:58:00 2019
Mon Jul  1 23:59:00 2019
Sun Jul  7 13:13:22 2019
Mon Jul  8 19:04:16 2019
Wed Jul 24 21:36:51 2019
Fri Aug  9 20:42:25 2019
Sat Dec 14 20:39:40 2019
If you want to delete multiple increments in this way, use the --force.
root@mineos:/ # 

I attempted to increase the buffer space used in Putty to a higher number (7500 lines) but it didn’t seem to make a difference in how far I could scroll UP in that output so I’m not sure what the first output line says.

When I ls the /var/games/minecraft/backup/Jhin/rdiff-backup-data directory I see three files per snapshot:

  1. file_statistics..data.gz
  2. mirror_metadata..diff.gz
  3. session_statistics..data
    and a lot fewer, random (?) mirror_metadata..snapshot.gz files

The restore points within MIneOS are still present.

Do I need to re-index rdiff? Is that even a thing?

I used the --force switch and they were physically removed from the volume but still present in the UI.

Stopped and started the game server (not MineOS, just the server instance) and it refreshed the restore point count.

Looks good! All gone except for the single backup I made a few minutes ago.

thank you for turning me on to the rdiff commands.