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.

updatenow Failed

Discussion in 'General Discussion' started by rasheed, Feb 2, 2005.

  1. rasheed

    rasheed Member

    Joined:
    Jul 6, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Whenever I'm trying to run updatenow, the script failed to fetch http://httpupdate.cpanel.net/cpanelsync/RELEASE/scripts/.cpanelsync.lock...

    ###################
    [root@ scripts]# ./updatenow
    Sync Source: http://httpupdate.cpanel.net/RELEASE/scripts
    Fetching http://httpupdate.cpanel.net/cpanelsync/RELEASE/scripts/.cpanelsync.lock....Trying httpupdate.cpanel.net @ 69.72.164.151
    Unable to retrieve file
    ...Failed
    Unable to connect to host httpupdate.cpanel.net
    Trying httpupdate.cpanel.net @ 69.72.164.152
    Unable to connect to host httpupdate.cpanel.net
    ...Failed
    ...Done
    Fetching http://httpupdate.cpanel.net/cpanelsync/RELEASE/scripts/.cpanelsync.bz2....Trying httpupdate.cpanel.net @ 69.72.164.152

    [7]+ Stopped ./updatenow
    ####################

    What could be the reason?

    Rasheed
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I would guess that you've either chmod 000 wget or you're blocking an outgoing port in your firewall that should be open (check your logs).

    Another thought: make sure that your server is resolving domain names.
     
  3. rasheed

    rasheed Member

    Joined:
    Jul 6, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    But I have the same problem while installing Cpanel on CentOS 3.4, I'm unable to connect to httpupdate.cpanel.net. I have configured wget and yum to go throw my ISP proxy and both working (my ISP don't permit access http direct >>> only throw his proxies).

    ########################
    root@centos cpins]# wget http://layer1.cpanel.net/latest
    --12:47:56-- http://layer1.cpanel.net/latest
    => `latest'
    Resolving proxy.awalnet.net.sa... done.
    Connecting to proxy.awalnet.net.sa[212.93.193.87]:8080... connected.
    Proxy request sent, awaiting response... 200 OK
    Length: 605,844 [text/plain]

    100%[====================================>] 605,844 221.26K/s ETA 00:00

    12:47:59 (221.26 KB/s) - `latest' saved [605844/605844]

    [root@centos cpins]# sh latest
    Creating directory installd
    Verifying archive integrity... All good.
    Uncompressing cplyr1-cPanel............................................ .................................................. .................................................. .................................................. .
    ____ _
    ___| _ \ __ _ _ __ ___| |
    / __| |_) / _` | '_ \ / _ \ |
    | (__| __/ (_| | | | | __/ |
    \___|_| \__,_|_| |_|\___|_|

    Linux detected!
    cPanel Layer 1 Installer Init.....
    Warning !!! Warning !!! WARNING !!! Warning !!! Warning
    -------------------------------------------------------
    cPanel requires a fresh/clean server!
    If you are serving websites off this server (and are
    not already running cPanel) this installer will
    overwrite all of your config files. You should hit
    Ctrl+C NOW!!!
    If this is a new server please ignore this messages
    -------------------------------------------------------
    Warning !!! Warning !!! WARNING !!! Warning !!! Warning
    Waiting 5 seconds.....
    Done
    This install will take 10-70 minutes depending on your hardware.
    Now is the time to go get another cup of coffee/jolt.
    The install will log to /var/log/cpanel-install-thread0.log.
    and /var/log/cpanel-install-thread1.log.
    Repairing OS Problems....Done
    Installing Default resolv.conf....Done
    Installing Support Libs.
    Unable to find pid
    Gathering header information file(s) from server(s)
    Server: CentOS-3 - Addons
    Server: CentOS-3 - Base
    Server: CentOS-3 - Extras
    Server: CentOS-3 - Updates
    Finding updated packages
    Downloading needed headers
    wget is installed and is the latest version.
    No actions to take
    Gathering header information file(s) from server(s)
    Server: CentOS-3 - Addons
    Server: CentOS-3 - Base
    Server: CentOS-3 - Extras
    Server: CentOS-3 - Updates
    Finding updated packages
    Downloading needed headers
    rsync is installed and is the latest version.
    rdate is installed and is the latest version.
    No actions to take
    Done
    Syncing with time server....Checking RPMS/DEBS.....Tue Feb 1 12:50:48 AST 2005..Done
    syncing with httpupdate.cpanel.net....Sync Source: http://httpupdate.cpanel.net/RELEASE/scripts
    Fetching http://httpupdate.cpanel.net/cpanel....lock....Trying httpupdate.cpanel.net @ 69.72.164.152
    Gathering header information file(s) from server(s)
    Server: CentOS-3 - Addons
    Server: CentOS-3 - Base
    Server: CentOS-3 - Extras
    Server: CentOS-3 - Updates
    Finding updated packages
    Downloading needed headers
    Unable to retrieve file
    ...Failed
    Unable to connect to host httpupdate.cpanel.net
    Trying httpupdate.cpanel.net @ 69.72.164.151
    Unable to connect to host httpupdate.cpanel.net
    ...Failed
    ...Done
    Fetching http://httpupdate.cpanel.net/cpanel...r.bz2....Trying httpupdate.cpanel.net @ 69.72.164.151

    [1]+ Stopped sh latest
    [root@centos cpins]#
    ########################

    Did I miss something?

    Rasheed
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    That is your problem. cPanel downloads updates directly through a port 80 socket connection. However, it does use the TCP name for http rather than the port itself, so you could try editing /etc/services and changing:

    http 80/tcp

    to:

    http NNN/tcp

    Where NNN is the port you're being forced to use for HTTP connections.
     
  5. rasheed

    rasheed Member

    Joined:
    Jul 6, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    I have changed "http 80/tcp" to "http 8080/tcp", but still I'm unable to connect to cpanel updates server.
    I should redirect all http traffic to "proxyserver:port"....???

    Rasheed
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I doubt that you can use cPanel on such a connection then. I'd suggest that you confirm that with cPanel through a support ticket.
     
  7. rasheed

    rasheed Member

    Joined:
    Jul 6, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Our International link supplier closes many ports. So I want to send request to open these ports. But I need to confirm that below "port/cPanel Distention IP" only required for install/update cPanel :-


    80 http >> httpupdate.cpanel.net
    80 http >> layer2.cpanel.net
    80 http >> web.cpanel.net

    873 rsync >> rsync.cpanel.net

    2089 cplic >> httpupdate.cpanel.ne


    Thanks,
    Rasheed
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Looks good to me.
     
  9. HostBrasil.net

    Joined:
    May 19, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    São Paulo
    use in SSH to fix problem ;-)


     
  10. destr0yr

    destr0yr Well-Known Member

    Joined:
    May 4, 2004
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Kelowna, BC.
    Thanks, that worked great.
     
Loading...

Share This Page