In Progress CPANEL-42332 - Backups of a Suspended Domain

Timmy.S

Member
Aug 20, 2021
8
3
3
Canada
cPanel Access Level
DataCenter Provider
I am having an issue with cPanel Backups. The system is not pruning the folders following the retention settings. When reviewing the logs I am able to see the following during the backup:

rsync: opendir "/home/*DOMAIN*/public_ftp" failed: Permission denied (13)

Then when the system is attempting to remove the folder for the pruning i get the following:

[2022-12-21 09:55:20 -0500] info [backup] Pruning backup directory: /mnt/SERVERbackup/2022-12-14
cannot chdir to child for /mnt/SERVERbackup/2022-12-14/accounts/*DOMAIN*/homedir/public_ftp: Permission denied at /usr/local/cpanel/bin/backup line 2034.
cannot remove directory for /mnt/SERVERbackup/2022-12-14/accounts/*DOMAIN*/homedir: Directory not empty at /usr/local/cpanel/bin/backup line 2034.
cannot remove directory for /mnt/SERVERbackup/2022-12-14/accounts/*DOMAIN*: Directory not empty at /usr/local/cpanel/bin/backup line 2034.
cannot remove directory for /mnt/SERVERbackup/2022-12-14/accounts: Directory not empty at /usr/local/cpanel/bin/backup line 2034.
cannot remove directory for /mnt/SERVERbackup/2022-12-14: Directory not empty at /usr/local/cpanel/bin/backup line 2034.

The account that is causing the issue is currently suspended.

Is there a way to avoid this on suspended accounts as it is forcing us to manually prune the folders afterwards.

Thanks
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,241
2,217
363
cPanel Access Level
Root Administrator
Hey there! The reason this happens is because we change the permissions on the public_ftp directory from 750 to 000 when an account is suspended. However, I agree we should have some additional logic in place in the backup system to avoid errors like this. I've created case CPANEL-42332 to look into this for you, and I'll be sure to post any updates as soon as I get them.
 

cPanelMary

QA Analyst II
Staff member
Jul 8, 2009
10
2
128
Houston, TX
cPanel Access Level
Root Administrator
Hi Timmy.S,

I'm Mary, from Quality Assurance here at cPanel. I'm helping the developers investigate this issue. I was able to reproduce the first part (rsync: opendir "/home/*DOMAIN*/public_ftp" failed: Permission denied (13)) while making backups using incremental backups, but I'm having trouble reproducing the pruning errors, which I believe to be more important. I have a few questions for you, if you don't mind. Answering them may help us resolve the issue faster.
  1. a. Can you confirm that you're using incremental backups?
    b. If not, are you using compressed or uncompressed backups?
  2. a. Are you using an NFS mount for the backup directory (/mnt/SERVERbackup)?
    b. If not, are the backups that are having difficulty pruning an additional destination?
If there is any other configuration option that you think might be related to the problem, please feel free to share your thoughts. The more information we have about the setup where this is failing, the faster I can reproduce it on our tests servers, and the faster the developers can work on a fix. Thank you for your patience and assistance while we look into this.
 
  • Like
Reactions: cPRex

Timmy.S

Member
Aug 20, 2021
8
3
3
Canada
cPanel Access Level
DataCenter Provider
Mary,

Sorry for the delay, I had got caught in other issues and this had dropped off.

The Pruning errors are our concern as it is leaving the directory on the system.

1. The server is configured with Incremental backups.
2. The Backups are configured as an NFS mount.

Please let me know.

Thanks