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.

[Case 69101] WHM 11.34.1 to 11.38 update - timeout on connect ?

Discussion in 'General Discussion' started by eva2000, Jun 11, 2013.

  1. eva2000

    eva2000 Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    322
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Brisbane, Australia
    cPanel Access Level:
    Root Administrator
    Twitter:
    Doing a WHM 11.34.1 to 11.38 update on one server and at following stage:

    Code:
    [maintenance] Making sure all needed perl modules are installed : /usr/local/cpanel/install/perlmods 
    get the following ?

    Code:
    (resolve attempt 1/65)......connecting to 62.58.50.18......Unable to connect to host: 62.58.50.18......removing 62.58.50.18......Failed......(request attempt 12/12)...Resolving cpan.mirror.versatel.nl...(resolve attempt 1/65)......connecting to 62.58.50.18......Unable to connect to host: 62.58.50.18......removing 62.58.50.18......Failed......Done
    [20130611.023342]      [11883] Cpanel::HttpRequest [url]http://cpan.mirror.versatel.nl///authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.50.tar.gz:[/url] Bad file descriptor at /usr/local/cpanel/Cpanel/cPCPAN/cpanminus.pm line 146.
    [20130611.023342]      [11883] ! Download [url]http://cpan.mirror.versatel.nl///authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.50.tar.gz[/url] failed. Retrying ... 
    [20130611.023342]      [11883] ! Failed to download [url]http://cpan.mirror.versatel.nl///authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.50.tar.gz[/url]
    [20130611.023828]      [11883] Fetching [url]http://cpan.ip.pt///authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.50.tar.gz[/url] ... Fetching [url]http://cpan.ip.pt/authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.50.tar.gz[/url] (connected:0).......(request attempt 1/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 2/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 3/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 4/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 5/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73...
    [20130611.024328]      [11883] ..Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 6/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 7/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 8/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 9/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 10/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73...
    [20130611.024542]      [11883] ..Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 11/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 12/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......Done
    [20130611.024542]      [11883] Cpanel::HttpRequest [url]http://cpan.ip.pt///authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.50.tar.gz:[/url] Bad file descriptor at /usr/local/cpanel/Cpanel/cPCPAN/cpanminus.pm line 146.
    [20130611.024542]      [11883] FAIL
    [20130611.024542]      [11883] ! Download [url]http://cpan.ip.pt///authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.50.tar.gz[/url] failed. Retrying ... 
    [20130611.024828]      [11883] Fetching [url]http://cpan.ip.pt/authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.50.tar.gz[/url] (connected:0).......(request attempt 1/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 2/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 3/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73...
    [20130611.025328]      [11883] ..Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 4/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 5/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 6/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 7/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 8/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73...
    [20130611.025742]      [11883] ..Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 9/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 10/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 11/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......(request attempt 12/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73.....Timeout on connect.....Unable to connect to host: 195.23.131.73......removing 195.23.131.73......Failed......Done
    [20130611.025742]      [11883] Cpanel::HttpRequest [url]http://cpan.ip.pt///authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.50.tar.gz:[/url] Bad file descriptor at /usr/local/cpanel/Cpanel/cPCPAN/cpanminus.pm line 146.
    [20130611.025742]      [11883] ! Download [url]http://cpan.ip.pt///authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.50.tar.gz[/url] failed. Retrying ... 
    [20130611.025828]      [11883] Fetching [url]http://cpan.ip.pt/authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.50.tar.gz[/url] (connected:0).......(request attempt 1/12)...Resolving cpan.ip.pt...(resolve attempt 1/65)......connecting to 195.23.131.73...
    
     
  2. Dr Ahmed

    Dr Ahmed Member

    Joined:
    Mar 22, 2011
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    This happens to me yesterday , you can relaunch update now, it has been fixed
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,707
    Likes Received:
    658
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Are you still experiencing this issue, or was it a temporary network issue with the CPAN mirrors?

    Also, if this is a VPS, check to make sure you are not encountering any resource limits. Look for fail counts with the "tcpsndbuf" parameter in:

    Code:
    # /proc/user_beancounters
    Thank you.
     
  4. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Seeing this right now, trying to upgrade servers from 11.34 to 11.36

    Code:
    [20130611.215700]      [31885] Fetching http://cpan.sarang.net///authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.50.tar.gz ...                                           Fetching http://cpan.sarang.net/authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.50.tar.gz (connected:1).......(request attempt 1/12)...Resolving cpan.sarang.net...(resolve attempt 1/65)......connecting to 211.115.125.50...@211.115.125.50......connected......receiving...100%......request success......Done
    [20130611.215700]      [31885] OK
    [20130611.215700]      [31885] Unpacking XML-SAX-Expat-0.50.tar.gz
    [20130611.215700]      [31885] ./
    [20130611.215700]      [31885] ./XML-SAX-Expat-0.50/
    [20130611.215700]      [31885] ./XML-SAX-Expat-0.50/Expat.pm
    [20130611.215700]      [31885] ./XML-SAX-Expat-0.50/MANIFEST
    [20130611.215700]      [31885] ./XML-SAX-Expat-0.50/Changes
    [20130611.215700]      [31885] ./XML-SAX-Expat-0.50/Makefile.PL
    [20130611.215700]      [31885] ./XML-SAX-Expat-0.50/META.json
    [20130611.215700]      [31885] ./XML-SAX-Expat-0.50/t/
    [20130611.215700]      [31885] ./XML-SAX-Expat-0.50/t/00basic.t
    [20130611.215700]      [31885] ./XML-SAX-Expat-0.50/t/99podcov.t
    [20130611.215700]      [31885] ./XML-SAX-Expat-0.50/t/98podsyn.t
    [20130611.215700]      [31885] ./XML-SAX-Expat-0.50/META.yml
    [20130611.215700]      [31885] ./XML-SAX-Expat-0.50/eg/
    [20130611.215700]      [31885] ./XML-SAX-Expat-0.50/eg/counter.pl
    [20130611.215700]      [31885] ./XML-SAX-Expat-0.50/README
    [20130611.215700]      [31885] ! Bad archive: XML-SAX-Expat-0.50.tar.gz
    [20130611.215700]      [31885] ! Failed to unpack XML-SAX-Expat-0.50.tar.gz: no directory
    [20130611.215914]      [31885] Fetching http://archive.cpan.cz///authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.50.tar.gz ...                                           Fetching http://archive.cpan.cz/authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.50.tar.gz (connected:1).......(request attempt 1/12)...Resolving archive.cpan.cz...(resolve attempt 1/65)......connecting to 81.91.81.54.....Timeout on connect.....Unable to connect to host: 81.91.81.54......removing 81.91.81.54......Failed......(request attempt 2/12)...Resolving archive.cpan.cz...(resolve attempt 1/65)......connecting to 81.91.81.54.....Timeout on connect.....Unable to connect to host: 81.91.81.54......removing 81.91.81.54......Failed......(request attempt 3/12)...Resolving archive.cpan.cz...(resolve attempt 1/65)......connecting to 81.91.81.54...
    [20130611.220414]      [31885] ..Timeout on connect.....Unable to connect to host: 81.91.81.54......removing 81.91.81.54......Failed......(request attempt 4/12)...Resolving archive.cpan.cz...(resolve attempt 1/65)......connecting to 81.91.81.54.....Timeout on connect.....Unable to connect to host: 81.91.81.54......removing 81.91.81.54......Failed......(request attempt 5/12)...Resolving archive.cpan.cz...(resolve attempt 1/65)...... Timeout on request ...Resolving archive.cpan.cz using backup method...Waiting for dns resolution to become available....Resolving archive.cpan.cz...(resolve attempt 2/65)......connecting to 81.91.81.54.....Timeout on connect.....Unable to connect to host: 81.91.81.54......removing 81.91.81.54......Failed......(request attempt 6/12)...Resolving archive.cpan.cz...(resolve attempt 1/65)......connecting to 81.91.81.54.....Timeout on connect.....Unable to connect to host: 81.91.81.54......removing 81.91.81.54......Failed......(request attempt 7/12)...Resolving archive.cpan.cz...(resolve attempt 1/65)......connecting to 81.91.81.54.....Timeout on connect.....Unable to connect to host: 81.91.81.54......removing 81.91.81.54......Failed......(request attempt 8/12)...Resolving archive.cpan.cz...(resolve attempt 1/65)......connecting to 81.91.81.54...
    [20130611.220902]      [31885] ..Timeout on connect.....Unable to connect to host: 81.91.81.54......removing 81.91.81.54......Failed......(request attempt 9/12)...Resolving archive.cpan.cz...(resolve attempt 1/65)......connecting to 81.91.81.54.....Timeout on connect.....Unable to connect to host: 81.91.81.54......removing 81.91.81.54......Failed......(request attempt 10/12)...Resolving archive.cpan.cz...(resolve attempt 1/65)......connecting to 81.91.81.54.....Timeout on connect.....Unable to connect to host: 81.91.81.54......removing 81.91.81.54......Failed......(request attempt 11/12)...Resolving archive.cpan.cz...(resolve attempt 1/65)......connecting to 81.91.81.54.....Timeout on connect.....Unable to connect to host: 81.91.81.54......removing 81.91.81.54......Failed......(request attempt 12/12)...Resolving archive.cpan.cz...(resolve attempt 1/65)......connecting to 81.91.81.54.....Timeout on connect.....Unable to connect to host: 81.91.81.54......removing 81.91.81.54......Failed......Done
    [20130611.220902]      [31885] Cpanel::HttpRequest http://archive.cpan.cz///authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.50.tar.gz: Bad file descriptor at /usr/local/cpanel/Cpanel/cPCPAN/cpanminus.pm line 146.
    [20130611.220902]      [31885] FAIL
    [20130611.220902]      [31885] ! Download http://archive.cpan.cz///authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.50.tar.gz failed. Retrying ... 
    [20130611.220914]      [31885]                                          Fetching http://archive.cpan.cz/authors/id/B/BJ/BJOERN/XML-SAX-Expat-0.50.tar.gz (connected:0).......(request attempt 1/12)...Resolving archive.cpan.cz...(resolve attempt 1/65)......connecting to 81.91.81.54...
    These are on two Xen based VPSs
     
  5. eva2000

    eva2000 Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    322
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Brisbane, Australia
    cPanel Access Level:
    Root Administrator
    Twitter:
    yeah no longer have the problem, just killed the existing process and reran /scripts/upcp and it took a while but went from 11.34 to 11.36 to 11.38 in one sitting :)
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,707
    Likes Received:
    658
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The error you reported can happen when the CPAN (Perl repository) mirror your server is configured to use, is down or otherwise not responding. This will typically resolve itself as the bad mirrors are disabled, or you could also try editing your resolvers in /etc/resolv.conf to public resolvers such as 8.8.8.8 or 4.2.2.2. Feel free to open a support ticket if you require additional assistance.

    Thank you.
     
  7. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Where is the list of CPAN mirrors stored?

    Is there a way to regenerate this to a known good list prior to doing an update?

    The issue isn't always DNS related, sometimes a mirror will resolve, but it doesn't have the file that the update is looking for.

    Would seem to make sense to regenerate this list of mirrors prior to performing an update with a known good list of mirrors.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,707
    Likes Received:
    658
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You could directly edit the "urllist" value in the "Config.pm" file associated with your Perl installation. For example, on a test server that I checked, this file is located at:

    # /usr/local/lib/perl5/5.8.8/CPAN/Config.pm

    Thank you.
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,707
    Likes Received:
    658
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    To update, this issue is actually related to a bug with cpanm where it will not unpack certain modules. There is an internal case open that addresses this issue by including a newer version of cpanm with cPanel. For reference, the case number is 69101. The workaround is to manually install the module via:

    Code:
    # cpan -i XML::SAX::Expat
    Thank you.
     
  10. techguide

    techguide Member

    Joined:
    Aug 29, 2012
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    So should the above be run BEFORE the cpup command to solve this issue?
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,707
    Likes Received:
    658
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, you can run the command before updating cPanel if you are experiencing this problem.

    Thank you.
     
  12. techguide

    techguide Member

    Joined:
    Aug 29, 2012
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    I experienced this problem also when upgrading from 11.34.1.5 to 11.34.1.16 (have to stay on this version on one server that still needs php 5.2.17). The above solved the problem and allowed the WHM upgrade. Thanks!
     
    #12 techguide, Jun 21, 2013
    Last edited: Jun 21, 2013
  13. yvrguy

    yvrguy Registered

    Joined:
    Feb 22, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I'm experiencing the same problem. Stuck on 30% trying to resolve. Will the process just stop at some point? Can I safely stop update at this point? I'm not sure what to do now that it is "stuck".
     
  14. techguide

    techguide Member

    Joined:
    Aug 29, 2012
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    yvrguy:
    The below worked for me, your situation might be different. If you have shell access SSH onto your server.
    Run "ps aux | grep upcp"

    Use "kill -9 {processid} to kill the upcp processes, usually there are 3.
    Gracefully reboot your server.

    I WOULD NOT kill the UPCP processes if you are finally past this particular issue as the upgrade could be taking place and files being replaced already, in which case, it is a bad thing to kill your upcp processes.

    However, if you server is still stuck on looking for cpan mirrors to find this rpm, then you can safely kill the cpup, restart the server, follow the steps to manually install the rpm and then continue back to your upcp /force.
     
Loading...

Share This Page