engineyard / eycloud-app-jenkins

EY Cloud application to install and run Jenkins
12 stars 15 forks source link

Deploy runs fail with missing `generate` method on JSON. #6

Closed benschwarz closed 12 years ago

benschwarz commented 12 years ago

Deploys are failing, here is the output: (Deployed from HEAD)

/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.6.4/lib/engineyard-serverside/deploy_hook.rb:21:in `run': undefined method `generate' for #<JSON::Ext::Generator::State:0x8396eb4> (NoMethodError)
    from (eval):6:in `run'
    from (eval):5:in `open'
    from (eval):5:in `run'
    from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.6.4/lib/engineyard-serverside/deploy_hook.rb:15:in `chdir'
    from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.6.4/lib/engineyard-serverside/deploy_hook.rb:15:in `run'
    from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.6.4/lib/engineyard-serverside/cli.rb:89:in `hook'
    from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.6.4/lib/vendor/thor/lib/thor/task.rb:33:in `send'
    from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.6.4/lib/vendor/thor/lib/thor/task.rb:33:in `run'
    from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.6.4/lib/vendor/thor/lib/thor/invocation.rb:109:in `invoke'
    from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.6.4/lib/vendor/thor/lib/thor/invocation.rb:116:in `call'
    from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.6.4/lib/vendor/thor/lib/thor/invocation.rb:116:in `invoke'
    from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.6.4/lib/vendor/thor/lib/thor.rb:137:in `start'
    from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.6.4/lib/vendor/thor/lib/thor/base.rb:378:in `start'
    from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.6.4/lib/vendor/thor/lib/thor.rb:124:in `start'
    from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.6.4/bin/engineyard-serverside:10
benschwarz commented 12 years ago

ping @drnic

drnic commented 12 years ago

Hmm, I just ran through the README and it created Jenkins successfully. I used Stack v2. I'll do it again with Stack v1 and see if issue appears.

benschwarz commented 12 years ago

Whats stack v1?

drnic commented 12 years ago

Taking kids to school (and end of year school breakfast). Back in an hour or so.

We started shipping newer base AMIs.

drnic commented 12 years ago

Email me your account details and I'll look at what you have/had.

drnic commented 12 years ago

Confirmed that it worked on Stack v1.

@benschwarz tweeted http://twitter.com/benschwarz/status/208558353046175744

"I was using the 'rezeko' account, not sure if that helps you… ? I ended up using other scripts ey had on their GH account"

Ben, what does " I ended up using other scripts ey had on their GH account" mean?

drnic commented 12 years ago

Mate, can you try the following; if it works I'll update the documentation:

gem install ey_cli
ey_cli create_app --git git://github.com/engineyard/eycloud-app-jenkins.git --name jenkins --env_name jenkins --solo
drnic commented 12 years ago

Correction: use rack

ey_cli create_app --git git://github.com/engineyard/eycloud-app-jenkins.git --name jenkins --env_name jenkins --solo --type rack
drnic commented 12 years ago

README is updated. Also how to setup DNS.