Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

AWS Installation Error

Discussion in 'General Discussion' started by eyanchao, Apr 22, 2018.

  1. eyanchao

    eyanchao Member

    Joined:
    Apr 22, 2018
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    China
    cPanel Access Level:
    Root Administrator
    I have the same proplem,who can help me on this.

    _______________________________________________________

    [2018-04-23 01:42:54 +0000] E The install encountered an error: (XID v4xtdk) The system failed to load the module “Cpanel::SafeFile::LockInfoCache” because of an error: Can't locate Cpanel/SafeFile/LockInfoCache.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at (eval 26) line 1.
    [2018-04-23 01:42:54 +0000] BEGIN failed--compilation aborted at (eval 26) line 1.
    (XID v4xtdk) The system failed to load the module “Cpanel::SafeFile::LockInfoCache” because of an error: Can't locate Cpanel/SafeFile/LockInfoCache.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at (eval 26) line 1.
    BEGIN failed--compilation aborted at (eval 26) line 1.

    2018-04-23 01:42:54 982 (DEBUG): The installation process detected a failed synchronization. The system will reattempt the synchronization with the updatenow.static file...
    2018-04-23 01:42:54 988 (FATAL): The installation process was unable to synchronize cPanel & WHM. Verify that your network can connect to httpupdate.cpanel.net and rerun the installer.
    Removing /root/installer.lock.
    [root@ip-172-31-12-66 opt]# ping httpupdate.cpanel.net
    PING httpupdate.cpanel.net (76.76.26.254) 56(84) bytes of data.
    64 bytes from unknown.carohosting.net (76.76.26.254): icmp_seq=1 ttl=38 time=26.1 ms
    64 bytes from unknown.carohosting.net (76.76.26.254): icmp_seq=2 ttl=38 time=26.2 ms
    ^C
    --- httpupdate.cpanel.net ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1001ms
    rtt min/avg/max/mdev = 26.193/26.202/26.211/0.009 ms
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,755
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @eyanchao,

    Can you let us know the contents of the /etc/cpupdate.conf and /etc/resolv.conf files on this system? EX:

    Code:
    cat /etc/cpupdate.conf
    cat /etc/resolv.conf
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. eyanchao

    eyanchao Member

    Joined:
    Apr 22, 2018
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    China
    cPanel Access Level:
    Root Administrator
    Thank you for watching my posts, i think i am in trouble on this for a long time. I run these commans as your follows,then're shown like this:

    [root@ip-172-31-12-66 opt]# cat /etc/cpupdate.conf
    CPANEL=release
    RPMUP=daily
    SARULESUP=daily
    STAGING_DIR=/usr/local/cpanel
    UPDATES=daily

    [root@ip-172-31-12-66 opt]# cat /etc/resolv.conf
    ; generated by /usr/sbin/dhclient-script
    search us-east-2.compute.internal
    nameserver 172.31.0.2
    [root@ip-172-31-12-66 opt]#
     
  4. eyanchao

    eyanchao Member

    Joined:
    Apr 22, 2018
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    China
    cPanel Access Level:
    Root Administrator
    My vps is on the AWS , the OS is RHEL 7.5, the perl rpm version is perl-5.16.3-292.el7.x86_64, i think the RHEL as the same as the Centos 7.5, so i wrote it on here.


    perl -V

    Built under linux
    Compiled at Mar 2 2017 08:50:35
    @INC:
    /usr/local/lib64/perl5
    /usr/local/share/perl5
    /usr/lib64/perl5/vendor_perl
    /usr/share/perl5/vendor_perl
    /usr/lib64/perl5
    /usr/share/perl5
    .

    These above are all paths of the perl in my os.
     
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,755
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @eyanchao,

    I moved these posts to a separate thread since you noticed this is happened on AWS (the previous thread related to the Google Compute Engine).

    Can you try running "/scripts/upcp --force" and verify if the cPanel update fails?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. eyanchao

    eyanchao Member

    Joined:
    Apr 22, 2018
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    China
    cPanel Access Level:
    Root Administrator
    OK, you mean directly to run the command "/scripts/upcp --force" or others?


    [root@ip-172-31-12-66 opt]# /scripts/upcp --force
    -bash: /scripts/upcp: No such file or directory
    [root@ip-172-31-12-66 opt]#
     
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,755
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    This suggests the initial installation failed. Can you let us know the full steps you took when attempting to install cPanel? For instance, did you install a minimal instance of CentOS 7 first?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. eyanchao

    eyanchao Member

    Joined:
    Apr 22, 2018
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    China
    cPanel Access Level:
    Root Administrator
    Before install the cpanel,i ever tried to change the yum repo to Centos,because of the rhel is need subsrcibe via the RHN as you know,but when i found the scripts shown the system is RHEL not the Centos7, so i changed the yum to the RHEL again,it shows the proplem.
     
  9. eyanchao

    eyanchao Member

    Joined:
    Apr 22, 2018
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    China
    cPanel Access Level:
    Root Administrator
    Now i have been subcribe to the RHN successfully and update the yum repo.

    But when i install the cpanel, it shows the proplem?
     
  10. eyanchao

    eyanchao Member

    Joined:
    Apr 22, 2018
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    China
    cPanel Access Level:
    Root Administrator
    [root@ip-172-31-12-66 opt]# subscription-manager list
    +-------------------------------------------+
    Installed Product Status
    +-------------------------------------------+
    Product Name: Red Hat Enterprise Linux Server
    Product ID: 69
    Version: 7.5
    Arch: x86_64
    Status: Subscribed
    Status Details:
    Starts: 08/24/2017
    Ends: 08/24/2018

    [root@ip-172-31-12-66 opt]#
     
  11. eyanchao

    eyanchao Member

    Joined:
    Apr 22, 2018
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    China
    cPanel Access Level:
    Root Administrator
    And i have been update the the RHEL yum repo,it still shows the proplem.

    [root@ip-172-31-12-66 opt]# yum update -y
    Loaded plugins: amazon-id, product-id, rhui-lb, search-disabled-repos, subscription-manager
    No packages marked for update
    [root@ip-172-31-12-66 opt]#
     
  12. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,755
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. eyanchao

    eyanchao Member

    Joined:
    Apr 22, 2018
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    China
    cPanel Access Level:
    Root Administrator
  14. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,755
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    You must use the official AMI we offer for it to be supported, and currently that makes use of CentOS as opposed to RHEL. I encourage you to open a feature request if you'd like to see an additional AMI for RHEL:

    Submit A Feature Request

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. eyanchao

    eyanchao Member

    Joined:
    Apr 22, 2018
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    China
    cPanel Access Level:
    Root Administrator
    Thank you.
     
  16. eyanchao

    eyanchao Member

    Joined:
    Apr 22, 2018
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    China
    cPanel Access Level:
    Root Administrator
    Hmm, i want to know the scripts How detected the os whether it's the rhel OS?
     
  17. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,755
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    We only support using the official cPanel & WHM AMI with Amazon Linux and it's based on CentOS. Otherwise, the installation may fail or cPanel & WHM may not function properly. It's important to follow the guide at:

    Launch an AWS AMI Instance - cPanel Knowledge Base - cPanel Documentation

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice