Backup Error - pkgacct reported error code 1
I have verified that my backup drive is only using 50%, and there is nothing wrong with disk IO. It only started occurring recently. Please help!
WHM Version: WHM 54.0 (build 15)
-----------------------------------------
The following error occurred during account backups:
Error
(XID rez5jv) "/usr/local/cpanel/bin/pkgacct" reported error code "1" when it ended.
[2016-02-16 12:24:05 +0800] warn [backup] (XID rez5jv) "/usr/local/cpanel/bin/pkgacct" reported error code "1" when it ended. at /usr/local/cpanel/Cpanel/Backup/Utility.pm line 216.
Cpanel::Backup::Utility::__ANON__(Cpanel::Exception::ProcessFailed::Error=HASH(0x178c4c98)) called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 103
Try::Tiny::try(CODE(0x18994a08), Try::Tiny::Catch=REF(0x189b8cc0), Try::Tiny::Finally=REF(0x189d5790)) called at /usr/local/cpanel/Cpanel/Backup/Utility.pm line 226
Cpanel::Backup::Utility::cpusystem(Cpanel::Backup::Utility=HASH(0x177d45e8), "pkgacct", "giga", "/backup/2016-02-16/accounts", "backup") called at /usr/local/cpanel/bin/backup line 1152
bin::backup::backup_accounts("/backup/2016-02-16/accounts") called at /usr/local/cpanel/bin/backup line 581
bin::backup::__ANON__() called at /usr/local/cpanel/bin/backup line 588
bin::backup::__ANON__() called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 80
eval {...} called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 71
Try::Tiny::try(CODE(0x189928a8), Try::Tiny::Catch=REF(0x18994378)) called at /usr/local/cpanel/bin/backup line 598
bin::backup::_process_backups(HASH(0x188373b8)) called at /usr/local/cpanel/bin/backup line 325
bin::backup::run("bin::backup") called at /usr/local/cpanel/bin/backup line 104
[2016-02-16 12:24:05 +0800] warn [backup] Failed to back up account "giga". at /usr/local/cpanel/bin/backup line 1163.
bin::backup::backup_accounts("/backup/2016-02-16/accounts") called at /usr/local/cpanel/bin/backup line 581
bin::backup::__ANON__() called at /usr/local/cpanel/bin/backup line 588
bin::backup::__ANON__() called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 80
eval {...} called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 71
Try::Tiny::try(CODE(0x189928a8), Try::Tiny::Catch=REF(0x18994378)) called at /usr/local/cpanel/bin/backup line 598
bin::backup::_process_backups(HASH(0x188373b8)) called at /usr/local/cpanel/bin/backup line 325
bin::backup::run("bin::backup") called at /usr/local/cpanel/bin/backup line 104
[2016-02-16 12:24:05 +0800] info [backup] Pruning backup directory: /backup/2016-02-14
[2016-02-16 12:24:05 +0800] info [backup] Pruning backup directory: /backup/2016-02-15
[2016-02-16 12:29:36 +0800] info [backup] Queuing prune operation for remote destination daily backups
[2016-02-16 12:29:36 +0800] info [backup] Queuing transport reporter
[2016-02-16 12:29:36 +0800] info [backup] Completed at Tue Feb 16 12:29:36 2016
[2016-02-16 12:29:36 +0800] info [backup] Final state is Backup::PartialFailure (0)
-
Hello :) Could you package this account manually and let us know where it fails? EX: /scripts/pkgacct $username
Thank you.0 -
Hi! I'm now trying to fix this. A large site that Cpanel won't backup. As you asked I ran /script/pkgacct cpanelusername and the last line is (after a bunch of ..... lines): [2016-04-13 09:33:02 -0500] ERROR: The subprocess "Archive::Tar::Builder"KILL" # KILL? Seems something KILLed this process. Is it perhaps that there is a timeout, a time limit for this process, a limit that was hit on this huge site? Maybe a value somewhere to modify to increase this time limit? Thank you all for your wonderful help on this issue that literally keeps me awake. :) 0 -
Hi, Do you have CSF/LFD installed on the system? If so, is the "exe:/usr/local/cpanel/3rdparty/perl/514/bin/perl" line added to the ignore list? 0 -
KILL? Seems something KILLed this process. Is it perhaps that there is a timeout, a time limit for this process, a limit that was hit on this huge site? Maybe a value somewhere to modify to increase this time limit?
Hello :) Yes, as mentioned in the previous post, check to see if you have any third-party applications installed that will kill processes based on usage or time such as LFD. Thank you.0 -
Thank you both for your very valuable input. I added line exe:/usr/local/cpanel/3rdparty/perl/514/bin/perl to /etc/csf/csf.pignore and restarted lfd, but it was still killing the backup. I also looked for emails from the csf firewall on this process and yes, it's precisely the /usr/local/cpanel/3rdparty/perl/514/bin/perl expression. But backup is still killed. I'm puzzled. :) Now I'm trying /scripts/pkgacct cpanelusername with lfd disabled, and lfd not monitored (in WHM, Service Manager), to see if the backup completes successfully. As of now I don't know if lfd is killing the backup (I guess it is, indeed). Will update this thread as soon as backup breaks or completes in the current run. Thanks! ER 0 -
Even with lfd disabled, stopped, un-monitored, backup gets killed... ................................................................................ ................................................................................ ................................................................................ .................................................. [2016-04-13 14:33:02 -0500] ERROR: The subprocess "Archive::Tar::Builder"KILL" root [~]# ps axu | grep lfd root 14596 0.0 0.0 61168 684 pts/2 D+ 14:48 0:00 grep lfd root [~]# ie no lfd process root [~]# ps axu | grep csf root 14803 0.0 0.0 61168 740 pts/2 S+ 14:49 0:00 grep csf root [~]# ie no csf process Any help is greatly appreciated. Thanks! ER 0 -
I don't have cphulk enabled. It's disabled. I checked this too. Any third party monitoring on the server other than Cpanel and CSF? Not that I know. I'm sure there is nothing else installed. I modified the ftptimeout = 120 to 1200 in /etc/cpbackup.conf and still no luck. Perhaps a parameter that is not mentioned in /etc/cpbackup.conf that would let the tar go on longer? Thanks! ER 0 -
Do you notice any output to /usr/local/cpanel/logs/error_log when the process is killed? Thank you. 0 -
Problem solved. Yes, it was a third-party thing in the crontab explicitly killing processes for the cpanel user. Once it was disabled backups for such site are now running and completing fine. THANKS a lot!!! 0 -
I'm happy to see the issue is now resolved. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
10 comments