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.

Move to larger AWS instance

Discussion in 'Bind / DNS / Nameserver Issues' started by QRM, Mar 23, 2016.

  1. QRM

    QRM Registered

    Joined:
    Mar 23, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Henderson, NV
    cPanel Access Level:
    Root Administrator
    I created a t2.micro instance on AWS E2. Everything has been running swell. I decided to hire ConfigServer to setup my firewall. Their support team indicated some of the firewall services were clobbering the 1GB Ram limit on my t2.micro instance.

    I created an AMI on a 8GB Ram instance and reallocated the elastic IP to the new device. Unfortunately, I got a license error page even though the elastic public IP is the licensed IP. I can SSH to the larger EC2 instance on the licensed IP. I thought there may be an issue with the new private IP allocation of the AMI. AWS does not allow you change the private IPs on an instance. The t2.micro is 10.0.0.242 and the M4.large is 10.0.0.79. /usr/local/cpanel/cpkeyclt failed on the new instance.

    What do I need to do to properly migrate my machine image and get it running the way it should?

    Thank you.

    Tom
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Could you verify if you are using the AMI offered by cPanel? There's a post on it at:

    Unable to install on Amazon Linux

    It's unrelated to your specific issue, but it explains how to use the supported cPanel AMI (no others are supported).

    Thank you.
     
  3. QRM

    QRM Registered

    Joined:
    Mar 23, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Henderson, NV
    cPanel Access Level:
    Root Administrator
    Michael,

    I performed a direct install on my t2.micro EC2 CentOS 7 (x86_64) with Updates HVM instance. I felt I had a good server running. So do I need to rebuild an m4.large instance from scratch via the cPanel AMI? Is there anyway to migrate kernel update, extensions, ConfigServer plugin, PHP, MySQL upgrades, Pure-FTP passive port range, etc? Thank you.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You should not have to migrate your data, however going forward it's a good idea to ensure the cPanel AMI is utilized. As far as the license issue, could you let us know the specific error message you receive when attempting to update your license? Are there any entries in /usr/local/cpanel/logs/license_log that offer more information? Is the correct IP address listed when running the "curl -L http://cpanel.net/showip.cgi" command from your server?

    Thank you.
     
  5. QRM

    QRM Registered

    Joined:
    Mar 23, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Henderson, NV
    cPanel Access Level:
    Root Administrator
    Michael,

    Thanks. I've been waiting for my B2B ecommerce site to calm down. I deleted my m4.large instance this morning. I'm going to launch a new one, associate the elastic IP and run the show IP command from SSH. I'll report back shortly.
     
  6. QRM

    QRM Registered

    Joined:
    Mar 23, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Henderson, NV
    cPanel Access Level:
    Root Administrator
    Correct IP (Elastic) on the m4.large EC2 instance:

    root@ip-10-0-0-165 [~]# curl -L http://cpanel.net/showip.cgi

    [Removed]

    root@ip-10-0-0-165 [~]#

    ----------------

    FYI The t2.micro EC2 instance private IP was 10.0.0.242 (private IPs can not be change on AWS)

    --------------------

    First I got the WHM login which redirects at authentication to:

    upload_2016-3-23_21-33-1.png

    Then I restarted Apache. Then I ran the cpkeyclt command and I get into WHM. However the sites show:

    upload_2016-3-23_21-43-8.png

    I renamed the server host to match what the t2.micro was as the m4.large was set to the new private IP address allocation.

    Here is the most recent entries in the license log:

    Wed Mar 23 21:10:32 2016: License Update Request

    Wed Mar 23 21:10:38 2016: Using full manual DNS resolution

    Wed Mar 23 21:10:41 2016: Trying server 208.74.125.19

    Wed Mar 23 21:10:41 2016: Server 208.74.125.19 on port 2089 returned:

    Key Accepted

    Key Follows

    Wed Mar 23 21:10:42 2016: Obtained lock license file

    Wed Mar 23 21:10:42 2016: Openid connect client credentials were not received

    Wed Mar 23 21:10:42 2016: Accepted license from server 208.74.125.19 on port 2089

    Wed Mar 23 21:10:42 2016: License update succeeded after trying 1 server

    root@ip-10-0-0-165 [/usr/local/cpanel/logs]#

    ----------------------

    I just did a graceful restart in WHM. I appreciate input.

    Would changing the private IP address to the new instance private IP resolve this? How can I change the private IP in cPanel?

    upload_2016-3-23_21-57-9.png
     
    #7 QRM, Mar 23, 2016
    Last edited by a moderator: Mar 24, 2016
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    If you are proceeding to launch a new instance, then it's a good idea to go ahead and use the cPanel AMI. Could you let us know if the issue persists when doing so? Otherwise, check to ensure 1:1 NAT is enabled:

    1:1 NAT - Documentation - cPanel Documentation

    Thank you.
     
Loading...

Share This Page