Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chef Workstation with embedded ruby doesn't work on MacOS (Code has to be at least ad-hoc signed.) #2701

Open
jackivanov opened this issue Apr 8, 2022 · 2 comments
Labels
Status: Untriaged An issue that has yet to be triaged.

Comments

@jackivanov
Copy link

Description

Following this and this docs ended up with a broken chef setup on MacOS

not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. -

failed to load the ffi-yajl c-extension, falling back to ffi interface
FATAL: to use the ffi extension instead of the compiled C extension, the ffi gem must be installed
       (it is optional, so you must include it in your bundle manually)
% gem list | grep ffi
cheffish (17.0.0)
ffi (1.15.5)
ffi-libarchive (1.1.3)
ffi-yajl (2.4.0)
public_suffix (4.0.6)
% irb
irb(main):001:0> require "ffi"
<internal:/opt/chef-workstation/embedded/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': dlopen(/Users/username/.chefdk/gem/ruby/3.0.0/gems/ffi-1.15.5/lib/ffi_c.bundle, 9): no suitable image found.  Did find: (LoadError)
	/Users/username/.chefdk/gem/ruby/3.0.0/gems/ffi-1.15.5/lib/ffi_c.bundle: code signature in (/Users/username/.chefdk/gem/ruby/3.0.0/gems/ffi-1.15.5/lib/ffi_c.bundle) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. - /Users/username/.chefdk/gem/ruby/3.0.0/gems/ffi-1.15.5/lib/ffi_c.bundle

Chef Workstation Version

Chef Workstation version: 22.4.861
Chef InSpec version: 4.56.19
Chef CLI version: 5.6.1
Chef Habitat version: 1.6.420
Test Kitchen version: 3.2.2
Cookstyle version: 7.32.1
Chef Infra Client version: 17.10.0

Platform Version

MacOS 11.6.5

@jackivanov jackivanov added the Status: Untriaged An issue that has yet to be triaged. label Apr 8, 2022
@i5pranay93
Copy link
Contributor

Linking #999

@lordkage
Copy link

lordkage commented Dec 14, 2024

Bump, it has been over 2 years? Any resolution?

Chef Workstation version: 24.8.1068
Test Kitchen version: 3.6.0
Cookstyle version: 7.32.8
Chef Infra Client version: 18.5.0
Chef InSpec version: 5.22.55
Chef CLI version: 5.6.14
Chef Habitat version: 1.6.1041

MacOS 15.2, intel

EDIT: I found a less ideal way around this issue, deleting ~/.chef/gem directory, then not installing any additional gems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged.
Projects
None yet
Development

No branches or pull requests

3 participants