hectcastro / chef-collectd

A Chef cookbook to install collectd.
Apache License 2.0
23 stars 65 forks source link

Looks like collectd.org is now blocking chef-client #10

Closed jondot closed 10 years ago

jondot commented 11 years ago

When recipe downloads the collectd tarball, it is being redirected to another url. The effect is producing a 590 byte tarball, which looks compressed too.

Chef will fail with a 'corrupt tar'. If you turn on debug, you'll see that the client is redirected here:

http://collectd.org/temp/ContactMe.chef

With the message

Hi,

you're using a Chef cookbook that downloads and builds collectd regularly. Due
to the size of the tarball, the popularity of the cookbook and traffic limits
on collectd.org this is causing problems for me.

I'm working with Miah Johnson, the original author of the code in question,
Noah Kantrowitz, the original author of the cookbook and others to resolve this
issue to everybody's satisfaction. If this is affecting you, please follow the
Github issue, where we track progress in this matter:

  https://github.com/miah/chef-collectd/issues/15

Also refer to the collectd mailing list to follow along the discussion and
voice your opinion. You can subscribe at:

  http://mailman.verplant.org/listinfo/collectd

Once this issue is resolved, please upgrade your cookbook. In the meantime we
kindly ask you to mirror the tarball locally. Thank you!

Sincerely,
—octo

Personally, I think the author should have made a 406 unacceptable or that kind of sort.

Any way looks like there needs to be a mirror for this for anyone's personal use.

hectcastro commented 11 years ago

I'm going to follow that ticket to determine a proper fix. In the mean time, you should still be able to use the package installation option.

jondot commented 11 years ago

yup. since I want latest version, I'm using http://fossies.org/linux/privat/collectd-5.3.0.tar.gz for now (this mirror doesn't have all versions though, but I do think it's free to upload new ones if its FOSS).

hectcastro commented 11 years ago

Just to make the workaround easier to apply, below is an example of how to override attributes in a Chef role:

default_attributes(
  "collectd" => {
    "version" => "5.3.0",
    "url" => "http://fossies.org/linux/privat/collectd-5.3.0.tar.gz",
    "checksum" => "3089a9784e02ebc207b4ac88a507922f8aa75fca8303e9aac51d8fc6c247daf4"
  }
)
jondot commented 11 years ago

Yup. I've actually now moved to using a wrapper, and storing this tarball on internal S3 bucket. I think that's a good strategy nevertheless (not to rely on external tarballs).