adhearsion / virginia

A Reel interface to Adhearsion
MIT License
7 stars 10 forks source link

Virginia fails to load with reel 0.5.0.pre #9

Closed bklang closed 9 years ago

bklang commented 10 years ago
[2014-04-02 00:35:08.924] INFO  RequestHandler: HTTP Request Handler initialized on 0.0.0.0:8080
[2014-04-02 00:35:08.938] ERROR Celluloid: Reel::Server crashed!
TypeError: no implicit conversion of Symbol into Integer
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/reel-0.5.0.pre/lib/reel/server.rb:23:in `[]'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/reel-0.5.0.pre/lib/reel/server.rb:23:in `initialize'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `public_send'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `dispatch'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:67:in `dispatch'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in `block in handle_message'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in `block in task'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in `block in initialize'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:13:in `block in create'
[2014-04-02 00:35:08.939] ERROR Celluloid: Celluloid::SupervisionGroup crashed!
TypeError: no implicit conversion of Symbol into Integer
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/reel-0.5.0.pre/lib/reel/server.rb:23:in `[]'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/reel-0.5.0.pre/lib/reel/server.rb:23:in `initialize'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `public_send'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `dispatch'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:67:in `dispatch'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in `block in handle_message'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in `block in task'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in `block in initialize'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:13:in `block in create'
    (celluloid):0:in `remote procedure call'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:92:in `value'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/proxies/sync_proxy.rb:33:in `method_missing'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/proxies/actor_proxy.rb:20:in `_send_'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid.rb:200:in `new_link'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/supervision_group.rb:136:in `start'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/supervision_group.rb:124:in `initialize'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/supervision_group.rb:82:in `new'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/supervision_group.rb:82:in `add'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/supervision_group.rb:69:in `supervise'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `public_send'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `dispatch'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:67:in `dispatch'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in `block in handle_message'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in `block in task'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in `block in initialize'
    /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:13:in `block in create'
[2014-04-02 00:35:08.952] WARN  Celluloid: Terminating task: type=:call, meta={:method_name=>:initialize}, status=:callwait
[2014-04-02 00:35:08.952] DEBUG Celluloid: Terminating 2 actors...
/srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:32:in `terminate': task was terminated (Celluloid::Task::TerminatedError)
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:404:in `block in cleanup'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:404:in `each'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:404:in `cleanup'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:375:in `shutdown'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:367:in `handle_crash'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:187:in `rescue in run'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:171:in `run'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:157:in `block in initialize'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/thread_handle.rb:13:in `block in initialize'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/internal_pool.rb:100:in `call'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/internal_pool.rb:100:in `block in create'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
    from (celluloid):0:in `remote procedure call'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:92:in `value'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/proxies/sync_proxy.rb:33:in `method_missing'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/proxies/actor_proxy.rb:20:in `_send_'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid.rb:189:in `new'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/supervisor.rb:10:in `supervise'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid.rb:208:in `supervise'
    from /srv/pe/current/ahn/lib/request_handler.rb:7:in `initialize'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/bundler/gems/virginia-930d53c9d0d1/lib/virginia/service.rb:6:in `new'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/bundler/gems/virginia-930d53c9d0d1/lib/virginia/service.rb:6:in `start'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/bundler/gems/virginia-930d53c9d0d1/lib/virginia/plugin.rb:6:in `block in <class:Plugin>'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/bundler/gems/adhearsion-ee9d1526e077/lib/adhearsion/plugin/initializer.rb:26:in `instance_exec'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/bundler/gems/adhearsion-ee9d1526e077/lib/adhearsion/plugin/initializer.rb:26:in `run'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/bundler/gems/adhearsion-ee9d1526e077/lib/adhearsion/plugin.rb:188:in `block in run_plugins'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/bundler/gems/adhearsion-ee9d1526e077/lib/adhearsion/plugin.rb:187:in `each'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/bundler/gems/adhearsion-ee9d1526e077/lib/adhearsion/plugin.rb:187:in `run_plugins'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/bundler/gems/adhearsion-ee9d1526e077/lib/adhearsion/initializer.rb:254:in `run_plugins'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/bundler/gems/adhearsion-ee9d1526e077/lib/adhearsion/initializer.rb:66:in `block in start'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/bundler/gems/adhearsion-ee9d1526e077/lib/adhearsion/initializer.rb:41:in `catch'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/bundler/gems/adhearsion-ee9d1526e077/lib/adhearsion/initializer.rb:41:in `start'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/bundler/gems/adhearsion-ee9d1526e077/lib/adhearsion/initializer.rb:12:in `start'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/bundler/gems/adhearsion-ee9d1526e077/lib/adhearsion/cli_commands/ahn_command.rb:104:in `start_app'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/bundler/gems/adhearsion-ee9d1526e077/lib/adhearsion/cli_commands/ahn_command.rb:43:in `start'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
    from /srv/pe/current/ahn/vendor/ruby/ruby/2.1.0/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
    from script/ahn:9:in `<main>'
bklang commented 10 years ago

This is a bigger problem now that Reel 0.5.0 is out. New installs of Virginia will fail because of this incompatibility.

For anyone who needs a temporary workaround, this should do in your Gemfile:

gem 'virginia'
gem 'reel', '< 0.5.0'
gem 'http', '< 0.6.0'
system123 commented 10 years ago

This can be easily fixed by changing

Reel::Server.supervise(host, port) to the new Reel format of Reel::Server::HTTP.supervise(host, port)

Did it for my new Virginia install, works perfectly.

bklang commented 9 years ago

Fixed in 0.3.0