Page 1 of 2 12 LastLast
Results 1 to 15 of 27

Thread: Backup timeouts in scripts/cpbackup [Case 48571]

  1. #1
    Registered Member
    Join Date
    Oct 2007
    Location
    ct
    Posts
    30

    Default Backup timeouts in scripts/cpbackup [Case 48571]

    Here's the log from my back up of my biggest (and most important) site.

    Some days it works, other days it does not.

    Code:
    ..........
    
    size is: 14125448003
    Net::FTP=GLOB(0x856e080)<<< 220 (vsFTPd 2.0.5)
    Net::FTP=GLOB(0x856e080)>>> USER xxxxxxx
    Net::FTP=GLOB(0x856e080)<<< 331 Please specify the password.
    Net::FTP=GLOB(0x856e080)>>> PASS xxxxxx
    Net::FTP=GLOB(0x856e080)<<< 230 Login successful.
    Net::FTP=GLOB(0x856e080)>>> TYPE I
    Net::FTP=GLOB(0x856e080)<<< 200 Switching to Binary mode.
    Net::FTP=GLOB(0x856e080)>>> MKD /ftpbackup/
    Net::FTP=GLOB(0x856e080)<<< 550 Create directory operation failed.
    Net::FTP=GLOB(0x856e080)>>> MKD /ftpbackup//daily
    Net::FTP=GLOB(0x856e080)<<< 550 Create directory operation failed.
    Net::FTP=GLOB(0x856e080)>>> CWD /ftpbackup//daily
    Net::FTP=GLOB(0x856e080)<<< 250 Directory successfully changed.
    Net::FTP=GLOB(0x856e080)>>> ALLO 14125448003
    Net::FTP=GLOB(0x856e080)<<< 202 ALLO command ignored.
    Net::FTP=GLOB(0x856e080)>>> PASV
    Net::FTP=GLOB(0x856e080)<<< 227 Entering Passive Mode (xxxxxx)
    Net::FTP=GLOB(0x856e080)>>> STOR xxxxxxxx.tar.gz
    Net::FTP=GLOB(0x856e080): Timeout at /scripts/cpbackup line 787
    Net::FTP=GLOB(0x856e080)>>> QUIT
    Net::FTP=GLOB(0x856e080)<<< 150 Ok to send data.
    specifically,
    Timeout at /scripts/cpbackup line 787

    Can I Change this, and if so, how?

    and why am i getting double // folder paths?
    and why does it try to make the folders every time instead of trying to change to it first?



    I'm using FTP backup to a Nas on an internal network IP on a gbps port.

  2. #2
    ilw
    ilw is offline
    Registered User
    Join Date
    Oct 2010
    Posts
    4

    Default re: Backup timeouts in scripts/cpbackup [Case 48571]

    +1.

    Thank you.

  3. #3
    Registered Member
    Join Date
    Oct 2007
    Location
    ct
    Posts
    30

    Default re: Backup timeouts in scripts/cpbackup [Case 48571]

    Is there any way to get some support on this issue?

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,610
    cPanel/WHM Access Level

    Root Administrator

    Default re: Backup timeouts in scripts/cpbackup [Case 48571]

    Have you tried increasing the FTP timeout in /etc/pure-ftpd.conf file in case it is due to that timeout specifically? The /etc/cpbackup script on that line does not have a timeout value set nor was I able to locate a timeout in cpbackup script itself. The FTP timeout is set in this line in /etc/pure-ftpd.conf file:

    Code:
    MaxIdleTime 15
    You would want to ensure that both servers are not hitting that timeout value. If it doesn't end up being the FTP service causing the timeout, then please note opening up a ticket would be the best course of action if you need a response within a set timeframe. You can open up a ticket via WHM > Support Center > Contact cPanel or using the link in my signature.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  5. #5
    Registered Member
    Join Date
    Oct 2007
    Location
    ct
    Posts
    30

    Default re: Backup timeouts in scripts/cpbackup [Case 48571]

    Thank you, i've increased that setting to 30 and will see how it goes tonight.

    It fails every night, but will complete successfully when running it via --force switch.

  6. #6
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,610
    cPanel/WHM Access Level

    Root Administrator

    Default re: Backup timeouts in scripts/cpbackup [Case 48571]

    It appears the timeout is being set in the Net::FTP module used by the backups. I've opened up a case #48571 internally to request that an option be added to increase the timeout when configuring backups in WHM > Backup > Configure Backup area.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  7. #7
    Registered Member
    Join Date
    Oct 2007
    Location
    ct
    Posts
    30

    Default re: Backup timeouts in scripts/cpbackup [Case 48571]

    Thank you. I look forward to a fix.

  8. #8
    Registered Member
    Join Date
    Oct 2007
    Location
    ct
    Posts
    30

    Default re: Backup timeouts in scripts/cpbackup [Case 48571]

    Update: the setting change to 30 made it last longer (timeout after 40 min instead of 12)
    but still had similar errors.

    Net::FTP=GLOB(0x9aacc20)>>> STOR xxxxx.tar.gz
    Net::FTP=GLOB(0x9aacc20): Timeout at /scripts/cpbackup line 787
    Net::FTP=GLOB(0x9aacc20)>>> QUIT
    Net::FTP=GLOB(0x9aacc20): Timeout at /scripts/cpbackup line 788

  9. #9
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,610
    cPanel/WHM Access Level

    Root Administrator

    Default re: Backup timeouts in scripts/cpbackup [Case 48571]

    If changing that FTP setting did help it a bit, you might try adjusting to 60 minutes instead. How long does that account's backup normally take when it is successful?
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  10. #10
    Registered Member
    Join Date
    Oct 2007
    Location
    ct
    Posts
    30

    Default re: Backup timeouts in scripts/cpbackup [Case 48571]

    It takes about 2 hours (total) for the whole server to complete. The other sites are small <.5gb where as this one is 14gb in size and thus takes most of the time.

  11. #11
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,610
    cPanel/WHM Access Level

    Root Administrator

    Default re: Backup timeouts in scripts/cpbackup [Case 48571]

    You might then want to change it to 150 for 150 minutes and see if it does actually help, since changing the setting previously appeared to have some type of impact.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  12. #12
    Registered Member
    Join Date
    Oct 2007
    Location
    ct
    Posts
    30

    Default re: Backup timeouts in scripts/cpbackup [Case 48571]

    Upped to 150. we'll see what happens tonight.

    thx

  13. #13
    Registered User
    Join Date
    Feb 2011
    Posts
    1

    Default re: Backup timeouts in scripts/cpbackup [Case 48571]

    This causes the timeout:

    Net::FTP=GLOB(0x856e080)<<< 227 Entering Passive Mode (xxxxxx)

  14. #14
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,610
    cPanel/WHM Access Level

    Root Administrator

    Default re: Backup timeouts in scripts/cpbackup [Case 48571]

    Yes, which is why we have a case opened (48571) about allowing Net::FTP timeout to be changed. The FTP timeout in /etc/pure-ftpd.conf is only being adjusted further as it appeared to help previously when it was changed as well.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  15. #15
    Registered Member
    Join Date
    Oct 2007
    Location
    ct
    Posts
    30

    Default re: Backup timeouts in scripts/cpbackup [Case 48571]

    Quote Originally Posted by briansol View Post
    Upped to 150. we'll see what happens tonight.

    thx
    Backup failed completely last night with this setting. log file just stops at:

    Code:
    Net::FTP=GLOB(0x962b474)>>> CWD /ftpbackup//daily
    Net::FTP=GLOB(0x962b474)<<< 250 Directory successfully changed.
    Net::FTP=GLOB(0x962b474)>>> ALLO 13564636611
    Net::FTP=GLOB(0x962b474)<<< 202 ALLO command ignored.
    Net::FTP=GLOB(0x962b474)>>> PASV
    Net::FTP=GLOB(0x962b474)<<< 227 Entering Passive Mode (10,0,78,85,218,236)
    Net::FTP=GLOB(0x962b474)>>> STOR xxxxx.tar.gz
    Net::FTP=GLOB(0x962b474)<<< 150 Ok to send data.

Page 1 of 2 12 LastLast

Similar Threads

  1. Filed with Developers Better handling of Account Restore Timeouts [Case 56921]
    By cPanelDavidG in forum Feature Requests for cPanel & WHM
    Replies: 6
    Last Post: 03-09-2012, 04:56 AM
  2. Backup timeouts in scripts/cpbackup [Case 48571]
    By briansol in forum cPanel & WHM Discussions
    Replies: 23
    Last Post: 10-07-2011, 11:15 AM
  3. Replies: 10
    Last Post: 12-02-2010, 07:41 AM
  4. Do Not Backup Users tmp When Using /scripts/cpbackup
    By emericklaw in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 09-23-2005, 12:04 AM
  5. Cpanel Backup Problems /scripts/cpbackup
    By vaultnet in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 03-30-2005, 10:29 AM
bargain