Pruning of backup files skipped due to errors

Michael A.

Member
Jan 29, 2017
5
0
1
Romania
cPanel Access Level
DataCenter Provider
Hello,
I have a problem with my server. After upgrade and migrate all accounts to the new web server i have getting few error.
Code:
usercPanel (XID yyhbyr) “/usr/local/cpanel/bin/pkgacct” reported error code “1” when it ended:
usercPanel(XID 554sem) “/usr/local/cpanel/bin/pkgacct” reported error code “1” when it ended:
usercPanel(XID dgkrmr) “/usr/local/cpanel/bin/pkgacct” reported error code “1” when it ended:
usercPanel(XID tedb9f) “/usr/local/cpanel/bin/pkgacct” reported error code “1” when it ended:
usercPanel (XID 8wzb7g) “/usr/local/cpanel/bin/pkgacct” reported error code “1” when it ended:
usercPanel (XID w3bczj) “/usr/local/cpanel/bin/pkgacct” reported error code “1” when it ended:
usercPanel (XID zz43dk) “/usr/local/cpanel/bin/pkgacct” reported error code “1” when it ended:
usercPanel (XID p4n583) “/usr/local/cpanel/bin/pkgacct” reported error code “1” when it ended:
usercPanel (XID zhcrbu) “/usr/local/cpanel/bin/pkgacct” reported error code “1” when it ended:
usercPanel (XID x924w2) “/usr/local/cpanel/bin/pkgacct” reported error code “1” when it ended:
usercPanel (XID m2d4vp) “/usr/local/cpanel/bin/pkgacct” reported error code “1” when it ended:
usercPanel (XID at2wnm) “/usr/local/cpanel/bin/pkgacct” reported error code “1” when it ended:
usercPanel(XID 7xvp8r) “/usr/local/cpanel/bin/pkgacct” reported error code “1” when it ended:
usercPanel (XID 3yhkrd) “/usr/local/cpanel/bin/pkgacct” reported error code “1” when it ended:
and log:
Code:
[2019-01-02 06:58:19 +0200] homesize is: 3305754624
[2019-01-02 06:58:19 +0200]
[2019-01-02 06:58:19 +0200] homefiles is: 6942
[2019-01-02 06:58:19 +0200] pkgacct completed
[2019-01-02 06:58:20 +0200] info [backup] Successfully backed up account “userPanel” to “/media/USB/EH02/2019-01-02/accounts”
[2019-01-02 06:58:20 +0200] info [backup] Adding metadata information for userPanel to backup at /media/USB/EH02/2019-01-02
[2019-01-02 06:59:29 +0200] info [backup] Queuing daily backup copy of “userPanel” for transport of “/media/USB/EH02/2019-01-02/accounts/userPanel.tar.gz” to “2019-01-02/accounts/userPanel.tar.gz”
[2019-01-02 06:59:29 +0200] info [backup] This particular transport will be queued with keep_local = 1 , based on the need to copy weekly () and/or monthly () copies as well.
[2019-01-02 06:59:43 +0200] info [backup] Queuing transport of file: /media/USB/EH02/2019-01-02/accounts/userPanel.tar.gz
[2019-01-02 06:59:43 +0200] info [backup] no_transport = 0 .. and queueid = TQ:TaskQueue:1123
[2019-01-02 06:59:44 +0200] info [backup] leaving queue_backup_transport_item
[2019-01-02 06:59:44 +0200] info [backup] Queuing transport of meta file: /media/USB/EH02/2019-01-02/accounts/.master.meta
[2019-01-02 06:59:44 +0200] info [backup] no_transport = 0 .. and queueid = TQ:TaskQueue:1124
[2019-01-02 06:59:44 +0200] info [backup] leaving queue_backup_transport_item
[2019-01-02 06:59:44 +0200] info [backup] Queuing transport of file: /media/USB/EH02/2019-01-02/backup_incomplete
[2019-01-02 06:59:44 +0200] info [backup] no_transport = 0 .. and queueid = TQ:TaskQueue:1125
[2019-01-02 06:59:44 +0200] info [backup] leaving queue_backup_transport_item
[2019-01-02 06:59:44 +0200] warn [backup] Pruning of backup files skipped due to errors. at /usr/local/cpanel/bin/backup line 394.
bin::backup::run("bin::backup") called at /usr/local/cpanel/bin/backup line 122
[2019-01-02 06:59:50 +0200] info [backup] Scheduling backup metadata vacuum
[2019-01-02 06:59:50 +0200] info [backup] Queuing transport reporter
[2019-01-02 06:59:50 +0200] info [backup] no_transport = 0 .. and queueid = TQ:TaskQueue:1126
[2019-01-02 06:59:50 +0200] info [backup] leaving queue_backup_transport_item
[2019-01-02 06:59:50 +0200] info [backup] Completed at Wed Jan 2 06:59:50 2019
[2019-01-02 06:59:50 +0200] info [backup] Final state is Backup::PartialFailure (0)
Help me.
Thanks.
 
Last edited by a moderator:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,298
1,279
313
Houston
Hello @Michael A.


The backup pruning process is failing because one or more of your backups failed to complete. In order to identify why they failed to complete you'd need to add a response with the portion of the backup log that details the failure message.
 

Michael A.

Member
Jan 29, 2017
5
0
1
Romania
cPanel Access Level
DataCenter Provider
Code:
/usr/bin/gtar: /var/cpanel/php-fpm/usercPanel/sock: socket ignored
[2018-12-31 04:20:02 +0200] info [backup] checking backup for usercPanel
[2018-12-31 04:20:02 +0200] info [backup] Backups ARE enabled for usercPanel
[2018-12-31 04:20:02 +0200] info [backup] Calling pkgacct under cpuwatch to backup user “usercPanel”
[2018-12-31 04:20:02 +0200] pkgacct version 10 - user : usercPanel - tarball: 1 - target mysql : default - split: 0 - incremental: 0 - homedir: 1 - mailman: 1 - backup: 1 - archive version: 4 - running with uid 0
[2018-12-31 04:20:02 +0200] pkgacct working dir : /media/USB/EH02/2018-12-31/accounts/usercPanel
Summary databases …(XID gagesc) The system failed to create a hard link “/media/USB/EH02/2018-12-31/accounts/usercPanel/bandwidth_db.json.lock” to “/media/USB/EH02/2018-12-31/accounts/usercPanel/bandwidth_db.json.lock-10d17caad2f07-7c1c4113-76c6” because of an error: Operation not permitted
[2018-12-31 04:20:02 +0200] Copying Dns Zones.......usercPanel.com……addonDomain.com…[2018-12-31 04:20:02 +0200] Done
...log file sizes [1859289 byte(s)]......usercPanel……addonsDomain.usercPanel.com……usercPanel.com-ssl_log......addonsDomain.usercPanel.com-ssl_log......usercPanel.com-bytes_log......addonsDomain.usercPanel.com-bytes_log......usercPanel-imapbytes_log...[2018-12-31 04:20:02 +0200] Completed “Logs” component.
[2018-12-31 04:20:03 +0200] Fixing up EA4 .htaccess blocks: /home/usercPanel/public_html/.htaccess  Done.
usercPanel_wp[2018-12-31 04:20:03 +0200] (546433 bytes)
usercPanel_wpdata[2018-12-31 04:20:04 +0200] (4208065 bytes)
usercPanel_db[2018-12-31 04:20:04 +0200] (312909 bytes)
[2018-12-31 04:29:45 +0200] /home/usercPanel/mail/usercPanel.com/receptie/.Sent/cur/1505375679.M134826P31740.hostname,S=561572,W=569313:2,S: Cannot write file to archive: Broken pipe at bin/pkgacct.pl line 1409.
    Cpanel::Backup::Utility::cpusystem(Cpanel::Backup::Utility=HASH(0x1e7e5e8), "pkgacct", "usercPanel", "/media/USB/EH02/2018-12-31/accounts", "backup") called at /usr/local/cpanel/bin/backup line 1691
[2018-12-31 04:29:46 +0200] warn [backup] Failed to back up account “usercPanel”. at /usr/local/cpanel/bin/backup line 1695.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,298
1,279
313
Houston
HI @Michael A.

The error seems to be that there is a permissions error with creating hard links in the destination you've chosen:

Code:
The system failed to create a hard link “/media/USB/EH02/2018-12-31/accounts/usercPanel/bandwidth_db.json.lock” to “/media/USB/EH02/2018-12-31/accounts/usercPanel/bandwidth_db.json.lock-10d17caad2f07-7c1c4113-76c6” because of an error: Operation not permitted
This means the system didn't or doesn't have the correct permissions to create a file here.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,298
1,279
313
Houston
Hi @Michael A.


Depending on how the filesystem is setup there are typically default quotas for users in place. If one of those users is meeting/exceeding their quota they wouldn't be able to store any more data. It's difficult to know without more information on why the backups aren't being created for one user but they are for the other.
Please feel free to open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


Thanks!