GC error

aychprox

Renowned Member
Oct 27, 2015
76
7
73
Hi,

I try to run GC and encountered following error:

root@pbs:~# proxmox-backup-client garbage-collect
Error: unable to get (default) repository

In PBS GUI, when click on the GC, it shows:

unable to get exclusive lock - EACCES: Permission denied

May I know what causes this error and how to rectify?
Thanks in advance
 
Last edited:
root@pbs:~# proxmox-backup-client garbage-collect
Error: unable to get (default) repository
here you have to choose a repository e.g.

Code:
proxmox-backup-client garbage-collect --repository mydatastore
(see docs for more detail)

In PBS GUI, when click on the GC, it shows:

unable to get exclusive lock - EACCES: Permission denied
whats the output of

Code:
ls -lha /path/to/your/datastore/
?
 
Hi,

The output as below:

root@pbs:~# proxmox-backup-client garbage-collect --repository vmbackup
starting garbage collection on store vmbackup
TASK ERROR: unable to get exclusive lock - EACCES: Permission denied


root@pbs:~# ls -lha /vmbackup
total 4.5K
drwxr-xr-x 2 backup backup 0 Jul 16 01:50 .
drwxr-xr-x 19 root root 4.0K Aug 2 22:38 ..
drwxr-xr-x 2 backup backup 0 Jul 12 17:57 .chunks
drwxr-xr-x 2 backup backup 0 Jul 12 20:11 host
-rwxr-xr-x 1 backup backup 0 Jul 12 17:54 .lock
drwxr-xr-x 2 backup backup 0 Aug 8 23:00 vm


it is on CIFS mount
 
I had open a bug on this issue.

By the way, may I know how to manually remove the unwanted backup aka the backup "garbage"?
Tried to use prune to remove, but overall disk use size still remain .....
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!