error when using custom backup destination
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:
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
[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
-
Hello :) Could you provide more information about the custom backup script that you have developed? Thank you. 0 -
[quote="cPanelMichael, post: 1713431">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 $@" 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.0 -
I've moved this thread to the "cPanel Developers" forum. You will likely get more relevant feedback on this thread. Thank you. 0
Please sign in to leave a comment.
Comments
4 comments