engineyard/engineyard-serverside — Issue #31: Deploying a jruby app to EY and got exceptions
Author: jingweno
Created: 2012-02-04 18:04:55+00:00
State: open

Hi,

I was trying to deploy a jruby app to EY cloud and got the following exceptions:

```bash
~> Deploying revision 61b2bba added thor to trinidad platform
+ 0m 00s ~> Pushing code to all servers
+ 0m 00s ~> Starting full deploy
+ 0m 00s ~> Copying to /data/todo/releases/20120204172654
+ 0m 00s ~> Ensuring proper ownership.
+ 0m 00s ~> Gemfile found.
+ 0m 00s ~> Gemfile.lock found.
+ 0m 00s ~> Bundling gems...
LoadError: library `fiber' could not be loaded: java.lang.ClassNotFoundException: org.jruby.libraries.FiberExtLibrary
require at org/jruby/RubyKernel.java:1047
require at /usr/lib/jruby/1.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36
(root) at /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/vendor/celluloid/lib/celluloid/fiber.rb:3
require at org/jruby/RubyKernel.java:1047
require at /usr/lib/jruby/1.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36
(root) at /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/vendor/celluloid/lib/celluloid/fiber.rb:1
require at org/jruby/RubyKernel.java:1047
require at /usr/lib/jruby/1.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36
(root) at /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/vendor/celluloid/lib/celluloid/core_ext.rb:243
require at org/jruby/RubyKernel.java:1047
require at /usr/lib/jruby/1.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36
Serverside at /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/vendor/celluloid/lib/celluloid.rb:4
EY at /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/engineyard-serverside/futures/celluloid.rb:2
(root) at /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/engineyard-serverside/futures/celluloid.rb:1
require at org/jruby/RubyKernel.java:1047
require at /usr/lib/jruby/1.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36
Serverside at /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/engineyard-serverside/futures/celluloid.rb:24
EY at /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/engineyard-serverside/future.rb:2
(root) at /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/engineyard-serverside/future.rb:1
require at org/jruby/RubyKernel.java:1047
require at /usr/lib/jruby/1.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36
(root) at /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/engineyard-serverside/future.rb:28
require at org/jruby/RubyKernel.java:1047
require at /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/engineyard-serverside.rb:36
(root) at /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/bin/engineyard-serverside:8
+ 0m 03s ~> Release /data/todo/releases/20120204172654 failed, saving release to /data/todo/releases_failed.
+ 0m 04s ~> [Relax] Your site is still running old code and nothing destructive has occurred.
/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/engineyard-serverside/task.rb:62:in `run_on_roles': #, @args=[false], @block=#> (EY::Serverside::RemoteFailure)
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/engineyard-serverside/task.rb:48:in `sudo'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/engineyard-serverside/deploy.rb:497:in `check_ruby_bundler'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/engineyard-serverside/deploy.rb:228:in `bundle'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/engineyard-serverside/task.rb:34:in `roles'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/engineyard-serverside/deploy.rb:227:in `bundle'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/engineyard-serverside/deploy.rb:160:in `send'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/engineyard-serverside/deploy.rb:160:in `run_with_callbacks'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/engineyard-serverside/deploy.rb:31:in `cached_deploy'
... 12 levels...
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/lib/vendor/thor/lib/thor.rb:124:in `start'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/engineyard-serverside-1.5.27/bin/engineyard-serverside:10
from /usr/local/ey_resin/ruby/bin/engineyard-serverside:19:in `load'
from /usr/local/ey_resin/ruby/bin/engineyard-serverside:19
```