voxpupuli / puppet-blacksmith

Ruby Gem with Puppet Module utilities
Apache License 2.0
69 stars 31 forks source link

Release Results in 404 #11

Closed solarkennedy closed 10 years ago

solarkennedy commented 10 years ago

I've used your module many times in the past. Thanks for making it so easy!!

But now I'm getting a 404 when I try to make a release on a module I've uploaded before.

Url: https://forge.puppetlabs.com/KyleAnderson/consul Code: https://github.com/solarkennedy/puppet-consul

Trace output: http://pastebin.com/ffbzfV81

I first thought it might be due to a wrong forge url? So I updated to use forgeapi:

$ ⮀cat ~/.puppetforge.yml 
--- 
url: https://forgeapi.puppetlabs.com
username: KyleAnderson
password: ***

Still 404.

It's all happening over https, so I can't see what actual resource it is hitting that gets 404. Since the module exists already, I should be able to add new releases.

Any idea what is wrong or how I can debug more?

carlossg commented 10 years ago

seems it is failing at authentication time https://github.com/maestrodev/puppet-blacksmith/blob/master/lib/puppet_blacksmith/forge.rb#L41

you could put some debugging statements there and try manually the url, otherwise contact puppet labs if it was working before

solarkennedy commented 10 years ago

Auth failing? Why would that be a 404?

Anyway, I had 2.0.2 in my Gemfile.lock, I've bumped to the latest 3.0.2 and now I get this error:

⮀bundle exec rake module:release --trace
** Invoke module:release (first_time)
** Invoke module:clean (first_time)
** Execute module:clean
Cleaning for module build
** Execute clean
** Invoke build (first_time)
** Execute build
** Invoke module:tag (first_time)
** Execute module:tag
** Invoke module:push (first_time)
** Invoke build 
** Execute module:push
Uploading to Puppet Forge KyleAnderson/consul
rake aborted!
NameError: uninitialized constant Blacksmith::Forge::JSON
/var/lib/gems/1.9.1/gems/puppet-blacksmith-3.0.2/lib/puppet_blacksmith/forge.rb:51:in `push!'
/var/lib/gems/1.9.1/gems/puppet-blacksmith-3.0.2/lib/puppet_blacksmith/rake_tasks.rb:28:in `block (2 levels) in <top (required)>'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:240:in `call'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:240:in `block in execute'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:235:in `each'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:235:in `execute'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:199:in `each'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:199:in `invoke_prerequisites'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:165:in `invoke'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:150:in `invoke_task'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
/var/lib/gems/1.9.1/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
Tasks: TOP => module:release => module:push

But it works ok if I don't run it under bundle exec. Oh well, I guess it has to do with something specific about the gems in my gemfile? https://github.com/solarkennedy/puppet-consul/blob/master/Gemfile

/me shrug

carlossg commented 10 years ago

the json missing require should be fixed in 3.0.2