The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

error when using custom backup destination

Discussion in 'cPanel Developers' started by brainyron, Aug 21, 2014.

  1. brainyron

    brainyron Member

    Joined:
    Apr 7, 2008
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. brainyron

    brainyron Member

    Joined:
    Apr 7, 2008
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Seattle, WA
    cPanel Access Level:
    Root Administrator
    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.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. cPDavidN

    cPDavidN cPanel Developer
    Staff Member

    Joined:
    Mar 19, 2013
    Messages:
    42
    Likes Received:
    3
    Trophy Points:
    8
    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!
     
Loading...

Share This Page