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.

Cannot update cpanel license

Discussion in 'General Discussion' started by madihrb, Apr 28, 2012.

  1. madihrb

    madihrb Member

    Joined:
    Jun 19, 2009
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Hello, I tried to verify my cpanel license it is not working

    Code:
    root@server2 [~]# /usr/local/cpanel/cpkeyclt
    Updating cPanel license...Done. Update Failed!
    Error message:
    License server hostnames could not be resolved to IP addresses
    
    Building global cache for cpanel...Done
    

    Also I checked my resolvers they are working fine.

    When I used the command wget cpanel.net it took 1 second to give the output:

    Code:
    root@server2 [~]# wget cpanel.net
    --10:48:21--  http://cpanel.net/
               => `index.html'
    Resolving cpanel.net... 69.90.250.19, 208.74.123.44
    Connecting to cpanel.net|69.90.250.19|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 30,656 (30K) [text/html]
    
    100%[====================================>] 30,656        --.--K/s
    
    10:48:21 (847.66 KB/s) - `index.html' saved [30656/30656]
    

    Now When I used the command wget verify.cpanel.net, it took around 2 minutes to complete the request.

    Code:
    root@server2 [~]# wget verify.cpanel.net
    --10:48:32--  http://verify.cpanel.net/
               => `index.html.1'
    Resolving verify.cpanel.net... 208.74.123.52, 208.74.125.26, 208.74.121.28
    Connecting to verify.cpanel.net|208.74.123.52|:80... failed: Connection timed out.
    Connecting to verify.cpanel.net|208.74.125.26|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [text/html]
    
        [ <=>                                 ] 10,544        --.--K/s
    
    10:51:42 (424.98 KB/s) - `index.html.1' saved [10544]

    Also I switched the firewall and csf off but still no luck.

    Please help me to verify my cpanel license so I can use cpanel, i cannot use cpanel my clients are crying.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,480
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. storminternet

    storminternet Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    462
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    It seems hostname of your server is not pointed to server IP address. Have you verified hostname of the server if it is pointed to server IP address.
     
  4. NetMantis

    NetMantis BANNED

    Joined:
    Apr 22, 2012
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Utah
    cPanel Access Level:
    DataCenter Provider
    Two items that might help here:

    Are you 100% certain you have valid resolvers in your /etc/resolv.conf?

    Those should NOT be IPs at your own server and if you don't know for certain if you have valid resolvers
    then I would set those to Google's resolvers at 8.8.8.8 and 8.8.4.4.

    Now on the topic of your server running very slow, what you need to do is setup an "A" record for your server's main hostname in the DNS record for the base domain that your server is using.

    For example only, say your hostname is "server.mydomain.com" and your server's IP address was 1.2.3.4.

    You would then edit the DNS record for "mydomain.com" and add a new "A" type record for "server" which pointed to the IP address 1.2.3.4 and then restart your DNS server (bind service).

    It would also be a very good idea to have your hosting provider setup a reverse DNS record in their own DNS system for the IP address 1.2.3.4 to point back to your domain name "mydomain.com"

    Those are just fake examples for illustration but that is basically what you would do except using your real IP and hostname.

    Once the DNS is setup correctly and working properly for your hostname, your server won't be so slow
    (Unless of course, you got a really small VPS server then well you are probably stuck slow permanently :D)

    One trick I often do setting up new servers is I often leave the default hostname assigned by the hosting provider in place until the rest of the new server is completely setup and Cpanel and WHM is all configured properly and the DNS on my main primary domain (the one used for DNS servers) is all setup and working properly and then AFTER that is done, I usually go back into WHM and change the hostname and update the service certificates and then go run /usr/local/cpanel/cpkeyclt again and then I don't have to worry about any slowdowns or performance issues while doing the initial setup of the server.

    Hope those tips help.
     
  5. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hopefully, this is now working for you, but I wanted to mention we had an internal case about the issue (53728) for that exact error => "License server hostnames could not be resolved to IP addresses" last year that was fixed. I'm uncertain if the same cause was happening on your machine. If you are still having issues, please let us know. If it is now working, please ensure to provide the resolution.
     
Loading...

Share This Page