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.

Easyapache rebuild fails

Discussion in 'EasyApache' started by DeVdD, Mar 30, 2016.

  1. DeVdD

    DeVdD Registered

    Joined:
    Mar 30, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Portugal
    cPanel Access Level:
    Root Administrator
    Hello!

    I'm trying to rebuild with easyapache3 and getting this error:

    Code:
    Checking that all packages are present and up to date.
    The system cannot update the /var/cpanel/sysinfo.config file. at /usr/local/cpanel/Cpanel/GenSysInfo.pm line 101.
    ERROR: The system cannot update the /var/cpanel/sysinfo.config file because it cannot determine your distribution's major version.
    Run the following command: rpm -qf --queryformat '%{VERSION}\n' /etc/redhat-release
    Output other than the numbers 5 or 6 indicates a problem. Open a support ticket or resolve the issue manually.
    
    I tried to run the command directly in the server and got this response:

    Code:
    
    root@server[~]#  rpm -qf --queryformat '%{VERSION}\n' /etc/redhat-release
    file /etc/redhat-release is not owned by any package
    
    
    How can i fix this problem ?


    Thank you.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,674
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. DeVdD

    DeVdD Registered

    Joined:
    Mar 30, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Portugal
    cPanel Access Level:
    Root Administrator
    Hello,

    Thanks for the reply.

    Code:
    root@server[~]# cat /etc/redhat-release
    CentOS release 6.5 (Final)
    
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,674
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I've seen this happen when the RPM database on a system is corrupted. Please try rebuilding the RPM database via:

    "WHM Home » Software » Rebuild RPM Database"

    Then, assuming the rebuild completes successfully, you can run the following command:

    Code:
    /usr/local/cpanel/scripts/gensysinfo
    Thank you.
     
  5. DeVdD

    DeVdD Registered

    Joined:
    Mar 30, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Portugal
    cPanel Access Level:
    Root Administrator
    Hello,

    I rebuild RPM and it completed with success.

    But the error persists:


    Code:
    root@server [~]# /usr/local/cpanel/scripts/gensysinfo
    ERROR: The system cannot update the /var/cpanel/sysinfo.config file because it cannot determine your distribution's major version.
    Run the following command: rpm -qf --queryformat '%{VERSION}\n' /etc/redhat-release
    Output other than the numbers 5 or 6 indicates a problem. Open a support ticket or resolve the issue manually.
    The system cannot update the /var/cpanel/sysinfo.config file. at /usr/local/cpanel/Cpanel/GenSysInfo.pm line 101.
    
    
    root@server [~]# rpm -qf --queryformat '%{VERSION}\n' /etc/redhat-release
    file /etc/redhat-release is not owned by any package
    root@server [~]#
    
    Thanks.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,674
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  7. droona

    droona Registered

    Joined:
    May 2, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Monterrey, MX
    cPanel Access Level:
    Root Administrator
    I'm having the same issue, if there is a simple fix it would be nice if you could post it please.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,674
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The most common cause of this problem has been a corrupted RPM database. You can try repairing the RPM database via Web Host Manager:

    "WHM Home » Software » Rebuild RPM Database"

    Thank you.
     
Loading...

Share This Page