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 WS 22.12.1024 missing tar when SHARE to private supermarket #3051

Open
Firenice03 opened this issue Feb 8, 2023 · 0 comments
Open

Chef WS 22.12.1024 missing tar when SHARE to private supermarket #3051

Firenice03 opened this issue Feb 8, 2023 · 0 comments

Comments

@Firenice03
Copy link

Describe the problem

When running the command to share a cookbook to a private supermarket (likely an issue for Chef Supermarket) receiving a message tart fails...
Command: knife supermarket share COOKBOOK_NAME -m https://PRIVATE.SM.URL.com
with or without flags -o -m or category

Error:
Generating metadata for cchmc_base from C:/Users/USER/AppData/Local/Temp/chef-COOKBOOK_NAME-build20230208-11724-qkvntw/COOKBOOK_NAME/metadata.rb
Making tarball COOKBOOK_NAME.tgz
ERROR: Error making tarball COOKBOOK_NAME.tgz: Expected process to exit with [0], but received '-1073741515'
---- Begin output of tar -czf COOKBOOK_NAME.tgz COOKBOOK_NAME ----
STDOUT:
STDERR:
---- End output of tar -czf COOKBOOK_NAME.tgz COOKBOOK_NAME ----
Ran tar -czf COOKBOOK_NAME.tgz COOKBOOK_NAME returned -1073741515. Increase log verbosity (-VV) for more information.

Software Version

Windows 10
Chef Workstation version: 22.12.1024
Test Kitchen version: 3.5.0
Cookstyle version: 7.32.1
Chef Infra Client version: 17.10.0
Chef InSpec version: 4.56.20
Chef CLI version: 5.6.8
Chef Habitat version: 1.6.521

Replication Case

Installed 22.12.1024 on 2 systems, 1 was an update from 22.6.973 which did work. The other was a new install of 22.12.1024. Both fail with the same error when attempting to SHARE.

Downgrading to 22.6.973 resolved the issue for me.

Stacktrace

the flags -VV doesn't yield any additional info; -VVV does make a call out to the following...

Making tarball COOKBOOK_NAME.tgz
which: no gnutar in (/c/opscode/chef-workstation/bin:/c/Users/USER_ID/AppData/Local/chef/gem/ruby/3.0.0/bin:/c/opscode/chef-workstation/embedded/bin:/c/opscode/chef-workstation/bin:/c/ProgramData/Oracle/Java/javapath:/c/windows/system32:/c/windows:/c/windows/System32/Wbem:/c/windows/System32/WindowsPowerShell/v1.0:/c/windows/System32/OpenSSH:/c/Program Files/dotnet:/c/Program Files/PuTTY:/c/HashiCorp/Vagrant/bin:/c/opscode/chef-workstation/bin:/c/Users/USER_ID/AppData/Local/Microsoft/WindowsApps:/c/Users/USER_ID/AppData/Local/Programs/Microsoft VS Code/bin:/usr/bin)
ERROR: Error making tarball COOKBOOK_NAME.tgz: Expected process to exit with [0], but received '-1073741515'

Possible Solution

Either gnutar is missing or the path Chef is looking for is incorrect = c/opscode/xxx VS. c:/opescode/xxxx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant