chef-boneyard/chef-dk

chefdk error while loading shared libraries in fedora 30

adstak opened this issue · 3 comments

Description

Since upgrading to fedora 30 I am getting the following error when trying to run anything with chef. The example I have provided is as below:

[umbreon@NOT-001417 sensu_cookbook]$ chef exec rspec -I ./
/opt/chefdk/embedded/bin/ruby: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
[umbreon@NOT-001417 sensu_cookbook]$

I have tired this in a brand new install of fedora 30 in a VM to confirm this issue.

ChefDK Version

Unable to run chef version due to error but I have provided the rpm version below:

[umbreon@NOT-001417 sensu_cookbook]$ chef --version
/opt/chefdk/embedded/bin/ruby: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
[umbreon@NOT-001417 sensu_cookbook]$ rpm -qi chefdk
Name : chefdk
Version : 4.0.1
Release : 1.el7
Architecture: x86_64
Install Date: Thu 02 May 2019 15:44:50 BST
Group : default
Size : 504075739
License : Apache-2.0
Signature : DSA/SHA1, Thu 28 Feb 2019 20:52:50 GMT, Key ID 2940aba983ef826a
Source RPM : chefdk-4.0.1-1.el7.src.rpm
Build Date : Thu 28 Feb 2019 20:52:15 GMT
Build Host : chefdk-rhel-7-builder-9b2226.cd.chef.co
Relocations : /
Packager : Chef Software, Inc. maintainers@chef.io
Vendor : Omnibus omnibus@getchef.com
URL : https://www.chef.io
Summary : The full stack of chefdk
Description :
The full stack of chefdk
[umbreon@NOT-001417 sensu_cookbook]$

I have also tired this with the latest chefdk from the stable channel and the error is the same on both my machine and a brand new clean VM

Platform Version

Fedora 30

[umbreon@NOT-001417 sensu_cookbook]$ cat /etc/os-release
NAME=Fedora
VERSION="30 (Workstation Edition)"
ID=fedora
VERSION_ID=30
VERSION_CODENAME=""
PLATFORM_ID="platform:f30"
PRETTY_NAME="Fedora 30 (Workstation Edition)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:30"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f30/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=30
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=30
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation
[umbreon@NOT-001417 sensu_cookbook]$

Replication Case

To replicate this simply do the following:

  1. fedora 30 VM or machine

  2. install the latest chef dk from either the stable or current channel

  3. then try to run chef exec rspec against some spec tests or any chef command

Stacktrace

N/A

NOTE: CHEFDK BUGS ONLY

This issue tracker is for the code contained within this repo -- chefdk.

Managed to sort this in fedora 30 by installing libxcrypt-compat. Closing this now

looks like Fedora 30 ships with libcrypt version 2 which the above package mentions provides. maybe something which could be improved in the rpm SPEC file for chefdk but otherwise easy to fix for the end user either way :D

lock commented

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.