{"id":66,"date":"2022-01-09T08:49:52","date_gmt":"2022-01-08T23:49:52","guid":{"rendered":"https:\/\/global-hack.com\/blog\/?p=66"},"modified":"2022-02-10T08:45:17","modified_gmt":"2022-02-09T23:45:17","slug":"centos7-9%e3%80%8cthread-died-in-berkeley-db-library%e3%80%8d%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ae%e4%bf%ae%e5%be%a9%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/global-hack.com\/blog\/archives\/66","title":{"rendered":"CentOS7.9\u300cThread died in Berkeley DB library\u300d\u30a8\u30e9\u30fc\u306e\u4fee\u5fa9\u65b9\u6cd5"},"content":{"rendered":"<h3>CentOS7.9\u306eyum\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u6642\u306b\u30a8\u30e9\u30fc<\/h3>\n<p>rpm\u3068\u3044\u3046CentOS\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3067\u8d77\u304d\u305f\u30a8\u30e9\u30fc\u306e\u8a71\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Anacron job 'cron.daily'\r\n\/etc\/cron.daily\/logrotate:<\/code><\/pre>\n<\/div>\n<p>\u30b5\u30fc\u30d0\u30fc\u3092\u7ba1\u7406\u3057\u3066\u3044\u308bPlesk\u304b\u3089\u30e1\u30fc\u30eb\u3092\u53d7\u3051\u53d6\u308a\u307e\u3057\u305f\u3002\u6bce\u65e5\u53e9\u304b\u308c\u3066\u3044\u305fcron\u306e\u3088\u3046\u3067\u3001\u8ff7\u60d1\u30d5\u30a9\u30eb\u30c0 \u306b\u632f\u308a\u5206\u3051\u3089\u308c\u6c17\u4ed8\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u30a8\u30e9\u30fc\u5185\u5bb9\u3067\u3059\u304c\u3001\u8abf\u3079\u3066\u307f\u308b\u3068yum\u304c\u4f55\u304b\u3057\u3089\u3067\u5b9f\u884c\u4e2d\u306b\u30ed\u30c3\u30af\u304c\u304b\u304b\u308a\u3001\u4ee5\u964d\u51e6\u7406\u304c\u9032\u307e\u306a\u3044\u304c\u305f\u3081\u306b\u4e00\u65e6\u30d7\u30ed\u30bb\u30b9\u3092\u5f37\u5236\u7d42\u4e86\u3059\u308b\u3002\u3053\u308c\u306b\u3088\u308a\u4e0b\u8a18\u306erpmdb\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u7834\u640d\u306e\u304a\u77e5\u3089\u305b\u304c\u6765\u308b\u3053\u3068\u3068\u306a\u3063\u305f\u3002<\/p>\n<p>\u4ee5\u524d\u4f3c\u305f\u3088\u3046\u306a\u30b1\u30fc\u30b9\u3067\u3001\u30be\u30f3\u30d3\u30d7\u30ed\u30bb\u30b9\u304c\u5927\u91cf\u767a\u751f\u3057\u3066\u3057\u307e\u3044\u30d7\u30ed\u30bb\u30b9\u3092\u5f37\u5236\u7d42\u4e86\u3059\u3089\u3067\u304d\u305a\u3001\u305d\u306e\u7d50\u679c\u3001\u30e1\u30e2\u30ea\u304c\u67af\u6e07\u3057\u3066\u3057\u307e\u3046\u6050\u3044\u7d4c\u9a13\u3082\u3042\u308a\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u4eca\u56de\u306f\u30ed\u30b0\u3092\u898b\u308b\u9650\u308a\u30d7\u30ed\u30bb\u30b9\u306e\u5f37\u5236\u7d42\u4e86\u306f\u3001\u3057\u3063\u304b\u308a\u884c\u3048\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u6c17\u697d\u306b\u5bfe\u5fdc\u3067\u304d\u305d\u3046\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>error: rpmdb: BDB0113 Thread\/process 23354\/140189948721280 failed: BDB1507 Thread died in Berkeley DB library\r\nerror: db5 error(-30973) from dbenv-&gt;failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery\r\nerror: cannot open Packages index using db5 -  (-30973)\r\nerror: cannot open Packages database in \/var\/lib\/rpm\r\nerror: rpmdb: BDB0113 Thread\/process 23354\/140189948721280 failed: BDB1507 Thread died in Berkeley DB library\r\nerror: db5 error(-30973) from dbenv-&gt;failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery\r\nerror: cannot open Packages database in \/var\/lib\/rpm\r\n<\/code><\/pre>\n<\/div>\n<p><!--more--><\/p>\n<h3>rpm &#8211;rebuilddb \u30b3\u30de\u30f3\u30c9\u3067\u30a8\u30e9\u30fc\u304c\u89e3\u6c7a\u3057\u307e\u3057\u305f<\/h3>\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/dba010.com\/2021\/05\/20\/rpm-qa-gets-thread-died-in-berkeley-db-library\/\" target=\"_blank\" rel=\"nofollow noopener\" title=\"rpm\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4fee\u5fa9\">rpm -qa gets thread died in Berkeley DB library<\/a><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code><span>rpm --rebuilddb<\/span><\/code><\/pre>\n<\/div>\n<p><span>rpm &#8211;rebuilddb \u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u5f8c\u306b\u3001\u30a8\u30e9\u30fc\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u306a\u3051\u308c\u3070\u4fee\u5fa9\u5b8c\u4e86\u3067\u3059\u3002<\/span><\/p>\n<h3>\u4fee\u5fa9\u3067\u304d\u305f\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3092\u3059\u308b<\/h3>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ yum list installed | grep openssl\r\nopenssl.x86_64                1:1.0.2k-22.el7_9              @updates\r\nopenssl-devel.x86_64          1:1.0.2k-22.el7_9              @updates\r\nopenssl-libs.x86_64           1:1.0.2k-22.el7_9              @updates\r\n\r\n$ rpm -qa | grep openssl\r\nopenssl-1.0.2k-22.el7_9.x86_64\r\nopenssl-libs-1.0.2k-22.el7_9.x86_64\r\nopenssl-devel-1.0.2k-22.el7_9.x86_64  <\/code><\/pre>\n<\/div>\n<p>\u3053\u308c\u3067\u30a8\u30e9\u30fc\u30e1\u30fc\u30eb\u3082\u6765\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>CentOS7.9\u306eyum\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u6642\u306b\u30a8\u30e9\u30fc rpm\u3068\u3044\u3046CentOS\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3067\u8d77\u304d\u305f\u30a8\u30e9\u30fc\u306e\u8a71\u306b\u306a\u308a\u307e\u3059\u3002 Anacron job &#8216;cron.daily&#8217; \/etc\/cron.daily\/logrotate: \u30b5\u30fc\u30d0 <a class=\"mh-excerpt-more\" href=\"https:\/\/global-hack.com\/blog\/archives\/66\" title=\"CentOS7.9\u300cThread died in Berkeley DB library\u300d\u30a8\u30e9\u30fc\u306e\u4fee\u5fa9\u65b9\u6cd5\">&#8230;<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":67,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,21],"tags":[26,23,25,27,24],"class_list":["post-66","post","type-post","status-publish","format-standard","has-post-thumbnail","category-centos7","category-linux","tag-berkeleydb","tag-plesk","tag-rpm","tag-vps","tag-yum"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/global-hack.com\/blog\/wp-content\/uploads\/2022\/01\/CentOS-rpmdb-error.png","_links":{"self":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/comments?post=66"}],"version-history":[{"count":0,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/media\/67"}],"wp:attachment":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}