gocd/go-cookbook

Issue with apt repository + binary.com

mjuszczak opened this issue · 8 comments

It seems that a recent 301 redirect for the debian repository broke the server package installation. Ended up having to resolve with something like this to force the bintray.com URL. Anyone else experiencing this? If so, I can resolve and open a PR.

chef_gem 'chef-rewind'
require 'chef/rewind'

rewind 'apt_repository[thoughtworks]' do
  uri 'http://dl.bintray.com/gocd/gocd-deb/'
  key 'https://bintray.com/user/downloadSubjectPublicKey?username=gocd'
  only_if { node['platform_family'] == 'debian' }
end
tomzo commented

@mjuszczak which cookbook version are you using?

I have rerun kitchen tests few hours ago and none of them failed.

@tomzo I'm trying again now, but you're not testing off of master. I'm forcing master via:

cookbook 'go', github: 'gocd-contrib/go-cookbook', ref: '84eb2d00948eee581e55a44421929329e61d2157'

in my Berksfile. Keep getting:

   "Err http://download.go.cd  Packages
         server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
   Ign http://download.go.cd  Translation-en
       STDERR: W: Failed to fetch http://download.go.cd/gocd-deb/Packages  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
   E: Some index files failed to download. They have been ignored, or old ones used instead."
tomzo commented

I'd really would not want to work on old master anymore. I suggest you switch to the one where tests passed.

If you insist on staying with old cookbook then you could try with

  apt_repository 'thoughtworks' do
    uri 'http://dl.bintray.com/gocd/gocd-deb/'
    keyserver "pgp.mit.edu"
    key "0x9149B0A6173454C7"
    components ['/']
  end

I have created a branch with this applied but did not test yet. You could try it - https://github.com/gocd-contrib/go-cookbook/tree/57-fixapt

Ah, I wasn't aware that master wasn't actively maintained. Where is the actively maintained branch? Don't insist on staying with the old cookbook, but the chef rewind is working for now.

tomzo commented

I have merged all we did so far and pushed just now to https://github.com/gocd-contrib/go-cookbook/tree/develop

When you make PRs I'll merge these to develop branch first. I do not plan to touch master until cookbook is in sensible state again.

I'd appreciate if you checked if you have this apt problem when running from develop branch.

OK, I'll take a peek soon. Thanks!

tomzo commented

@mjuszczak I think this is solved. Let me know if it is not.