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

Incorrectly compressed download on supermarket.getchef.com #6

Closed
gravitystorm opened this Issue Jul 28, 2014 · 9 comments

Comments

Projects
None yet
5 participants
@gravitystorm
Copy link

gravitystorm commented Jul 28, 2014

The download on https://supermarket.getchef.com/ appears to be a compressed tar.gz archive (by both filename and also mime type), but is actually an uncompressed tar archive.

$ wget https://s3.amazonaws.com/community-files.opscode.com/cookbook_versions/tarballs/6469/original/system.tar.gz
--2014-07-28 12:40:22--  https://s3.amazonaws.com/community-files.opscode.com/cookbook_versions/tarballs/6469/original/system.tar.gz
Resolving s3.amazonaws.com (s3.amazonaws.com)... 54.231.14.176
Connecting to s3.amazonaws.com (s3.amazonaws.com)|54.231.14.176|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 96256 (94K) [application/x-targz]
Saving to: `system.tar.gz'

100%[======================================================================================================>] 96,256       164K/s   in 0.6s    

2014-07-28 12:40:23 (164 KB/s) - `system.tar.gz' saved [96256/96256]

$ file system.tar.gz 
system.tar.gz: tar archive
$ tar -xzvf system.tar.gz 

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

This causes berkshelf to crash with a cryptic error ('The file at '/tmp/community-rest-stream20140728-408-10qmjbe' is not a known compression type')

I think you need to upload a new version of the cookbook to the chef supermarket.

@hamann

This comment has been minimized.

Copy link

hamann commented Jul 28, 2014

same here

@alanivey

This comment has been minimized.

Copy link

alanivey commented Jul 30, 2014

👍

Also, file permissions are ramped up all the way on the uploaded tar; I presume this was not the intent and that a newly-uploaded cookbook archive would have correct permissions. See chef/supermarket/issues/692 to see more info about how I saw the permissions.

@alanivey

This comment has been minimized.

Copy link

alanivey commented Jul 30, 2014

For anyone that comes here looking for a workaround, add this to your Berksfile:

cookbook "system", github: "xhost-cookbooks/system", tag: "v0.3.2"
@fletchowns

This comment has been minimized.

Copy link

fletchowns commented Oct 10, 2014

What's preventing this one from being fixed?

@flaccid

This comment has been minimized.

Copy link
Contributor

flaccid commented Oct 14, 2014

Tried knife and stove and re-issued a private key multiple times, I simply cannot upload the cookbook to supermarket currently.

{"error_code"=>"AUTHENTICATION_FAILED", "error_messages"=>["Authentication failed due to an invalid public/private key pair. If you have changed your keys recently try logging out and logging back in to Supermarket."]}

I'll try raising a support ticket with Chef.

@flaccid

This comment has been minimized.

Copy link
Contributor

flaccid commented Oct 20, 2014

Chef support has raised this ticket after no luck in trying to solve :(
chef/supermarket#866

@alanivey

This comment has been minimized.

Copy link

alanivey commented Oct 21, 2014

Thanks for following up on this!

flaccid added a commit that referenced this issue Oct 23, 2014

@flaccid

This comment has been minimized.

Copy link
Contributor

flaccid commented Oct 23, 2014

The upload issue has been resolved upstream. v0.3.3 is now shared to supermarket via knife, issue should be resolved. Thanks for your patience.

@flaccid flaccid closed this Oct 23, 2014

@fletchowns

This comment has been minimized.

Copy link

fletchowns commented Nov 5, 2014

Thanks for fixing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.