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!

Unable to update cPanel properly

Discussion in 'General Discussion' started by indharajith, Oct 3, 2018.

  1. indharajith

    indharajith Member

    Joined:
    Mar 12, 2017
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,
    I try to update my cpanel server to latest version but it reboot automatically. So I try to open my whm panel but it can't open.
    I try to update cpanel from ssh by using the script /usr/local/cpanel/scripts/upcp --force and /scripts/upcp --force but t says "-bash: /xxxx/xxxx/xxx: No such file or directory"
    I'm also try to fix rpm but im getting
    Can't locate Cpanel/SafeDir/MK.pm in @INC (you may need to install the Cpanel::SafeDir::MK module) (@INC contains: /usr/local/cpanel /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/5.26.0/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/5.26.0 /opt/cpanel/perl5/526/site_lib/x86_64-linux-64int /opt/cpanel/perl5/526/site_lib) at /usr/local/cpanel/Cpanel/Update/Logger.pm line 10.
    BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Update/Logger.pm line 10.
    Compilation failed in require at /scripts/check_cpanel_rpms line 23.
    BEGIN failed--compilation aborted at /scripts/check_cpanel_rpms line 23.

    this error
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,262
    Likes Received:
    481
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @indharajith

    When you run
    Code:
    /scripts/find_and_fix_rpm_issues --rebuildonly
    do you continue to get the same output?


    Please note this will just rebuild the RPM database:
    --rebuildonly - Unconditionally rebuild the RPM database.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. indharajith

    indharajith Member

    Joined:
    Mar 12, 2017
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi @cPanelLauren
    Thank you for your reply
    I fix this issue by
    copy /usr/local/cpanel folder from my snapshot and run
    /scripts/find_and_fix_rpm_issues --rebuildonly
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,262
    Likes Received:
    481
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @indharajith


    I'm really glad to hear it's resolved, thank you for posting here the solution that worked for 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