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!

Update is blocked because RPM database is unstable

Discussion in 'Database Discussion' started by carolainn, Jul 13, 2018.

  1. carolainn

    carolainn Member

    Joined:
    Feb 22, 2018
    Messages:
    10
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Argentina
    cPanel Access Level:
    Root Administrator
    Hello, I'm getting this error since a few weeks, and I don't know how to fix it, what should I do? It says that glibc is not installed, is that what I have to do? If so, where can I get it?

    During a recent attempt to run /scripts/upcp, the system detected that your RPM database is unstable. The system cannot install any RPMs, so the upcp script cannot proceed.

    FAIL: RPM DB error: rpmdb: Thread/process 3839/47267204490048 failed: Thread died in Berkeley DB library
    error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
    error: cannot open Packages index using db3 - (-30974)
    error: cannot open Packages database in /var/lib/rpm
    rpmdb: Thread/process 3839/47267204490048 failed: Thread died in Berkeley DB library
    error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
    package glibc is not installed
    error: cannot open Packages database in /var/lib/rpm (exit code 1)
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,871
    Likes Received:
    280
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @carolainn


    Can you run the following via SSH and let me know if you continue to experience issues with the update:

    Code:
    /scripts/find_and_fix_rpm_issues
    Alternatively, you can go to WHM>>Software>>Rebuild RPM Database to rebuild the database as well.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    847
    Likes Received:
    14
    Trophy Points:
    168
    Since recent updates I've found a number of servers have started to have this problem every night. I can rebuild the RPM database from WHM or run the /scripts/find_and_fix_rpm_issues script - but 24 hours later the error is back. It seems each day a new server has this problem. These are all CL6 servers. I've not made any changes - the only common factor is recent cpanel updates.

    My error is very slightly different to the one mentioned above - but same common problem "package glibc is not installed" -although I don't think it is missing.

    FAIL: RPM DB error: rpmdb: Thread/process 619951/140267549230848 failed: Thread died in Berkeley DB library
    error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
    error: cannot open Packages index using db3 - (-30974)
    error: cannot open Packages database in /var/lib/rpm
    rpmdb: Thread/process 619951/140267549230848 failed: Thread died in Berkeley DB library
    error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
    error: cannot open Packages database in /var/lib/rpm
    package glibc is not installed (exit code 1)
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,871
    Likes Received:
    280
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @4u123

    That should definitely not be happening on a regular basis.
    Can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. kabatak

    kabatak Well-Known Member

    Joined:
    Jun 10, 2009
    Messages:
    121
    Likes Received:
    4
    Trophy Points:
    68
    Hi @cPanelLauren

    I am also experiencing this issue right now, it's happen to me maybe 4-5 times in the last month.
    I already have a ticket regarding this but the tech says it's not under Cpanel's care.
    However like the OP, this seems to happen when there are Cpanel updates.
    It keeps happening.
     
  6. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    847
    Likes Received:
    14
    Trophy Points:
    168
    The solution for me was to run /scripts/find_and_fix_rpm_issues and then reboot the affected servers. Not sure what the problem was exactly but I've not had the issue on any of them since rebooting.
     
  7. kabatak

    kabatak Well-Known Member

    Joined:
    Jun 10, 2009
    Messages:
    121
    Likes Received:
    4
    Trophy Points:
    68
    @4u123

    /scripts/find_and_fix_rpm_issues fixes the RPM issues but after a while, it will happen again.

    After a few days, I will receive another "Update is blocked because RPM database is unstable" notification and the cycle keeps on repeating.
     
  8. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    847
    Likes Received:
    14
    Trophy Points:
    168
    Did you reboot the server as suggested in my previous reply?
     
  9. kabatak

    kabatak Well-Known Member

    Joined:
    Jun 10, 2009
    Messages:
    121
    Likes Received:
    4
    Trophy Points:
    68
    @4u123

    I believe I've done that before but I'll try again.
     
  10. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,871
    Likes Received:
    280
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Are your guys' servers running with high load/memory usage? I'm trying to think of circumstances when the RPM database would become unstable like this and it's typically when there's an issue with yum being able to run/complete. This wouldn't necessarily be cPanel related but will keep cPanel from being able to be updated.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. kabatak

    kabatak Well-Known Member

    Joined:
    Jun 10, 2009
    Messages:
    121
    Likes Received:
    4
    Trophy Points:
    68
    @cPanelLauren

    My issue now appears to be related to CloudLinux license but I will need to observe for a few more weeks.
     
  12. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,871
    Likes Received:
    280
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @kabatak

    That's interesting! What makes you believe it's related? I'd also like to know what you find out.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. kabatak

    kabatak Well-Known Member

    Joined:
    Jun 10, 2009
    Messages:
    121
    Likes Received:
    4
    Trophy Points:
    68
    @cPanelLauren

    One of the techs pointed out that the CL license is not active so I activated it.
     
  14. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,871
    Likes Received:
    280
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @kabatak

    Ahhh, that could cause some issues. Please let us know if it helps resolve the issue!
     
    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