You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We often see Thread died in Berkeley DB library error: db5 error(-30973) when chef-client attempt so run across our environments. We would need to do the following on the OS to fix issue: rm -f /var/lib/rpm/__db* and then rpm --rebuilddb
Details on this one:
yum_package[lvm2] (lvm::default line 20) had an error: RuntimeError: yum-helper.py had stderr/stdout output: error: rpmdb: BDB0113 Thread/process 98402/140067491477568 failed: BDB1507 Thread died in Berkeley DB library error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db5 - (-30973) error: cannot open Packages database in /var/lib/rpm error: rpmdb: BDB0113 Thread/process 98402/140067491477568 failed: BDB1507 Thread died in Berkeley DB library error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages database in /var/lib/rpm Traceback (most recent call last): File "/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17/lib/chef/provider/package/yum/yum_helper.py", line 203, in query(command) File "/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17/lib/chef/provider/package/yum/yum_helper.py", line 88, in query enabled_repos = base.repos.listEnabled() File "/usr/lib/python2.7/site-packages/yum/init.py", line 1071, in repos = property(fget=lambda self: self._getRepos(), File "/usr/lib/python2.7/site-packages/yum/init.py", line 686, in _getRepos self.conf # touch the config class first File "/usr/lib/python2.7/site-packages/yum/init.py", line 1079, in conf = property(fget=lambda self: self._getConfig(), File "/usr/lib/python2.7/site-packages/yum/init.py", line 349, in _getConfig startupconf = config.readStartupConfig(fn, root, releasever) File "/usr/lib/python2.7/site-packages/yum/config.py", line 1115, in readStartupConfig startupconf.distroverpkg) File "/usr/lib/python2.7/site-packages/yum/config.py", line 1260, in _getsysver raise Errors.YumBaseError("Error: " + str(e)) yum.Errors.YumBaseError: Error: rpmdb open failed
[If you are filing an issue what are the things we need to do in order to repro your problem? How are you using this cookbook or any resources it includes?]
Expected Result:
chef-client run successful
Actual Result:
chef-client fails once it get to lvm2 package
The text was updated successfully, but these errors were encountered:
Hey There
It looks like this is the first issue you've filed against the chef-cookbooks project. I'm here to offer you a bit of extra help to make sure we can quickly get back to you.
Make sure you've filled out all the fields in our issue template. Make sure you've provided us with the version of chef-client you're running, your operating system and the version of the cookbook. If you're not using the most up to date version of the cookbook then please make sure to update first. Lots of things change between versions even if you're issue isn't listed in the changelog. Finally please give us a detailed description of the issue you're having. The more we know about what you're trying to do, what actually happens, and how you can reproduce the problem, the better.
If you're looking for more immediate troubleshooting help make sure to check out #general on the Chef Community Slack. There's plenty of folks there willing to lend a helping hand. Thanks for the first issue. We hope we can get back to you soon with a solution.
I think that this ticket is better handled as a RedHat support call, and the Chef LVM Cookbook behaviour will be immediately fixed as soon as the underlying RedHat issue is fixed.
Cookbook version
cookbook 'lvm', '~> 4.5.3'
Chef-client version
chef-14.7.17
Platform Details
redhat 7
Scenario:
We often see Thread died in Berkeley DB library error: db5 error(-30973) when chef-client attempt so run across our environments. We would need to do the following on the OS to fix issue: rm -f /var/lib/rpm/__db* and then rpm --rebuilddb
Details on this one:
yum_package[lvm2] (lvm::default line 20) had an error: RuntimeError: yum-helper.py had stderr/stdout output: error: rpmdb: BDB0113 Thread/process 98402/140067491477568 failed: BDB1507 Thread died in Berkeley DB library error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db5 - (-30973) error: cannot open Packages database in /var/lib/rpm error: rpmdb: BDB0113 Thread/process 98402/140067491477568 failed: BDB1507 Thread died in Berkeley DB library error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages database in /var/lib/rpm Traceback (most recent call last): File "/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17/lib/chef/provider/package/yum/yum_helper.py", line 203, in query(command) File "/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17/lib/chef/provider/package/yum/yum_helper.py", line 88, in query enabled_repos = base.repos.listEnabled() File "/usr/lib/python2.7/site-packages/yum/init.py", line 1071, in repos = property(fget=lambda self: self._getRepos(), File "/usr/lib/python2.7/site-packages/yum/init.py", line 686, in _getRepos self.conf # touch the config class first File "/usr/lib/python2.7/site-packages/yum/init.py", line 1079, in conf = property(fget=lambda self: self._getConfig(), File "/usr/lib/python2.7/site-packages/yum/init.py", line 349, in _getConfig startupconf = config.readStartupConfig(fn, root, releasever) File "/usr/lib/python2.7/site-packages/yum/config.py", line 1115, in readStartupConfig startupconf.distroverpkg) File "/usr/lib/python2.7/site-packages/yum/config.py", line 1260, in _getsysver raise Errors.YumBaseError("Error: " + str(e)) yum.Errors.YumBaseError: Error: rpmdb open failed
This one would come from:
https://supermarket.chef.io/cookbooks/lvm
https://github.com/chef-cookbooks/lvm/blob/master/recipes/default.rb
LINE 20 it attempts is:
package 'lvm2'
Steps to Reproduce:
[If you are filing an issue what are the things we need to do in order to repro your problem? How are you using this cookbook or any resources it includes?]
Expected Result:
chef-client run successful
Actual Result:
chef-client fails once it get to lvm2 package
The text was updated successfully, but these errors were encountered: