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 have a dependency on this cookbook, but running it on some RHEL8 servers fails during the installation of cookbook gems.
Steps to Reproduce:
Include libarchive in the server's run list and attempt to run chef
Expected Result:
Chef runs and no failures
Actual Result:
Chef can't install the cookbook gem dependency
Installing Cookbook Gems:
Running handlers:
[2020-04-30T19:59:30+00:00] ERROR: Running exception handlers
Running handlers complete
[2020-04-30T19:59:30+00:00] ERROR: Exception handlers complete
Chef Infra Client failed. 0 resources updated in 07 seconds
[2020-04-30T19:59:30+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2020-04-30T19:59:30+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2020-04-30T19:59:30+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '5'
---- Begin output of ["bundle", "install"] ----
STDOUT: Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/.............
Resolving dependencies...
Using aws-eventstream 1.0.3
Using aws-partitions 1.228.0
Using aws-sigv4 1.1.3
Using jmespath 1.4.0
Using aws-sdk-core 3.71.0
Using aws-sdk-cloudformation 1.21.0
Using aws-sdk-cloudwatch 1.22.0
Using aws-sdk-dynamodb 1.28.0
Using aws-sdk-ec2 1.115.0
Using aws-sdk-elasticloadbalancing 1.14.0
Using aws-sdk-iam 1.22.0
Using aws-sdk-kinesis 1.15.0
Using aws-sdk-kms 1.20.0
Using aws-sdk-route53 1.24.0
Using aws-sdk-s3 1.38.0
Using aws-sdk-ssm 1.46.0
Using bundler 1.17.2
Fetching ffi 1.12.2
Installing ffi 1.12.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/opt/chef/embedded/lib/ruby/gems/2.6.0/gems/ffi-1.12.2/ext/ffi_c
/opt/chef/embedded/bin/ruby -I /opt/chef/embedded/lib/ruby/2.6.0 -r
./siteconf20200430-26899-12btnj5.rb extconf.rb
checking for ffi.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
The text was updated successfully, but these errors were encountered:
Cookbook version
2.1.0
Chef-client version
15.6.10
Platform Details
RHEL8
Scenario:
We have a dependency on this cookbook, but running it on some RHEL8 servers fails during the installation of cookbook gems.
Steps to Reproduce:
Include libarchive in the server's run list and attempt to run chef
Expected Result:
Chef runs and no failures
Actual Result:
Chef can't install the cookbook gem dependency
The text was updated successfully, but these errors were encountered: