1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Cannot Stop Backup

Discussion in 'Plesk for Linux - 8.x and Older' started by KrazyBob, Dec 10, 2009.

  1. KrazyBob

    KrazyBob Regular Pleskian

    27
    40%
    Joined:
    Nov 28, 2006
    Messages:
    141
    Likes Received:
    0
    A customer was trying to do a backup to an external FTP location and the hour glass just sits on the screen. I don't know where to look or how to stop it. Other domains appear to backup fine.
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,546
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    As possible variant you can use API method. Sample you can find here.
     
  3. KrazyBob

    KrazyBob Regular Pleskian

    27
    40%
    Joined:
    Nov 28, 2006
    Messages:
    141
    Likes Received:
    0
    How do I get the account ID?
     
  4. KrazyBob

    KrazyBob Regular Pleskian

    27
    40%
    Joined:
    Nov 28, 2006
    Messages:
    141
    Likes Received:
    0
    Thank you again for this but how is it implemented? I found that if I mouse over the link inside Plesk it shows the dom_id. But how do I use what you referred me to? I can see that it is XML but that's all.
     
  5. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,546
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    You can use curl for sending API requests of use following script.
     
  6. KrazyBob

    KrazyBob Regular Pleskian

    27
    40%
    Joined:
    Nov 28, 2006
    Messages:
    141
    Likes Received:
    0
    Stopping a user initiated backup should not be this much work. Your command did not work. This is a Linux Plesk 8.6 server on Virtuozzo 3.

    Code:
    -bash-3.2# cat stop182.xml | perl api.pl xxxxx xxxxx   
    ----- REQUEST ---------------------
    REQUEST_HEADERS=$VAR1 = 'HTTP_AUTH_LOGIN: admin
    HTTP_AUTH_PASSWD: xxxxx
    HTTP_PRETTY_PRINT: TRUE
    Content-Length: 141
    Content-Type: text/xml
    ';
    
    REQUEST DATA
    <packet version="1.5.1.0">
    <backup-manager>
       <stop-backup>
          <domain-id>182</domain-id>
       </stop-backup>
    </backup-manager>
    </packet>
    
    
    ----- RESULT ------------------------
    REPLY_HEADERS=$VAR1 = {
              'LOCATION' => 'https://clss01b.xxxxx.net:8443',
              'CONTENT-TYPE' => 'text/html; charset=iso-8859-1',
              'DATE' => 'Mon, 14 Dec 2009 05:11:43 GMT',
              'SERVER' => 'Apache',
              'CONNECTION' => 'close'
            };
    
    REPLY_TYPE=HTTP/1.1 302 Found
    REPLY_DATA:
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <HTML><HEAD>
    <TITLE>302 Found</TITLE>
    </HEAD><BODY>
    <H1>Found</H1>
    The document has moved <A HREF="https://clss01b.xxxxx.net:8443">here</A>.<P>
    </BODY></HTML>
    
     
  7. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,546
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Make sure that you have psa-api-rpc package installed on your Plesk server.
     
  8. KrazyBob

    KrazyBob Regular Pleskian

    27
    40%
    Joined:
    Nov 28, 2006
    Messages:
    141
    Likes Received:
    0
    Yes, we do.

    Last login: Mon Dec 14 01:29:46 2009 from bob
    [root@hw003 ~]# vzctl enter 507
    entered into VE 507
    -bash-3.2# rpm -qa | grep psa-api-rpc
    psa-api-rpc-8.6.0-cos5.build86080930.08
     
  9. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,546
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Try to check that there is correct URL with

    there is should be something like:

     
  10. KrazyBob

    KrazyBob Regular Pleskian

    27
    40%
    Joined:
    Nov 28, 2006
    Messages:
    141
    Likes Received:
    0
    It does but how does this help me?

    Code:
    <?xml version="1.0"?>
            <packet version="0.0.0.0">
                    <system>
                            <status>error</status>
                            <errcode>1003</errcode>
                            <errtext>Wrong request</errtext>
                    </system>       </packet>[root@server1 ~]# curl -k https://xxxxx.org:8443/ent[root@server1 ~]# curl -k https://xxx.xxx.xxx.xxx:8443/enterprise/control/agent.php                
    <?xml version="1.0"?>
            <packet version="0.0.0.0">
                    <system>
                            <status>error</status>
                            <errcode>1003</errcode>
                            <errtext>Wrong request</errtext>
                    </system>       </packet>[root@server1 ~]#
    
     
  11. KrazyBob

    KrazyBob Regular Pleskian

    27
    40%
    Joined:
    Nov 28, 2006
    Messages:
    141
    Likes Received:
    0
    This remains unresolved. Are there any other ideas as to why when clicking on Backup the Plesk control panel freezes on one particular domain?
     
Loading...