error when using custom backup destination

brainyron

Member
Apr 7, 2008
19
0
51
Seattle, WA
cPanel Access Level
Root Administrator
Hello,

I am attempting to develop a custom backup destination script and when I run a backup, I see the below output in cpbackup_transporter.log:

Code:
[2014-08-21 04:21:54 +0000] warn [cpbackup_transporter] Path creation failed:  Can't locate object method "OPEN" via package "STDERRCapture" at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/5.14.3/IPC/Open3.pm line 178.
 at /usr/local/cpanel/Cpanel/LoggerAdapter.pm   line 26
        Cpanel::LoggerAdapter::warn(Cpanel::LoggerAdapter=HASH(0x10dbdd0), 'Path creation failed:  Can\'t locate object method "OPEN" via package "STDERRCapture" at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/5.14.3/IPC/Open3.pm line 178.\x0A') called at /usr/local/cpanel/Cpanel/Backup/Queue.pm line 441
        Cpanel::Backup::Queue::transport_backup::_validate_path(Cpanel::Backup::Queue::transport_backup=HASH(0x1a256a8), Cpanel::Transport::Files::Custom=HASH(0x1a3b4d0), 'cp02/2014-08-21/system_files.tar', Cpanel::LoggerAdapter=HASH(0x10dbdd0)) called at /usr/local/cpanel/Cpanel/Backup/Queue.pm line 399
        Cpanel::Backup::Queue::transport_backup::validate_path(Cpanel::Backup::Queue::transport_backup=HASH(0x1a256a8), Cpanel::Transport::Files::Custom=HASH(0x1a3b4d0), 'cp02/2014-08-21/system_files.tar', Cpanel::LoggerAdapter=HASH(0x10dbdd0)) called at /usr/local/cpanel/Cpanel/Backup/Queue.pm line 168
        Cpanel::Backup::Queue::transport_backup::process_task(Cpanel::Backup::Queue::transport_backup=HASH(0x1a256a8), cPanel::TaskQueue::Task=HASH(0xfa9170), Cpanel::LoggerAdapter=HASH(0x10dbdd0)) called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/cPanel/TaskQueue.pm line 580
        eval {...} called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/cPanel/TaskQueue.pm line 583
        cPanel::TaskQueue::__ANON__() called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/cPanel/StateFile.pm line 247
        eval {...} called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/cPanel/StateFile.pm line 247
        cPanel::StateFile::Guard::call_unlocked(cPanel::StateFile::Guard=HASH(0x1989a30), CODE(0x1acd758)) called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/cPanel/TaskQueue.pm line 588
cPanel::TaskQueue::process_next_task(cPanel::TaskQueue=HASH(0x1656f78)) called at /usr/local/cpanel/bin/cpbackup_transporter line 150
        eval {...} called at /usr/local/cpanel/bin/cpbackup_transporter line 148
[2014-08-21 05:18:15 +0000] info [cpbackup_transporter] Error encountered
[2014-08-21 05:18:15 +0000] info [cpbackup_transporter] Error is not a reference Can't locate object method "OPEN" via package "STDERRCapture" at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/5.14.3/IPC/Open3.pm line 178.

These errors are repeated for every call it makes. Lack of log output from my custom script indcates that the backup system has not even called the script. Please advise how I can correct this issue.

Ron
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello :)

Could you provide more information about the custom backup script that you have developed?

Thank you.
 

brainyron

Member
Apr 7, 2008
19
0
51
Seattle, WA
cPanel Access Level
Root Administrator
Hello :)

Could you provide more information about the custom backup script that you have developed?

Thank you.
The script is a BASH wrapper around a python script which implements Azure storage. The python script is here: https://github.com/brainyron/azcmd I haven't put the bash wrapper on github yet. For logging, I've inserted the command near the top of the script "logger $AZCMD [email protected]" This logging shows up in my syslog exactly as expected when I perform validation in the backup settings in WHM, but there's no logging output when the backup transport queue attempts to run it.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
I've moved this thread to the "cPanel Developers" forum. You will likely get more relevant feedback on this thread.

Thank you.
 

DavidN.

Active Member
Mar 19, 2013
42
3
83
cPanel Access Level
DataCenter Provider
Hi Brainyron,

Sorry it's taken so long to get a response for you. I've been trying to reproduce this (we've had 2 reports now) but haven't been able to so far. Could you open a support ticket at https://tickets.cpanel.net/ so we can get more information about your system and why this is happening? Make sure you refer to this forum thread.

Thanks!