用橡胶启动SideKiq

时间:2014-07-11 04:21:56

标签: ruby-on-rails amazon-ec2 sidekiq rubber

我们遵循以下在线发现的步骤,使用Rubber在EC2上设置Rails环境。 Rails服务器和Monit运行良好,但是sidekiq工作者没有开启。有人可以帮忙吗?提前谢谢。

===我们做了什么===

$ rubber vulcanize sidekiq
$ ALIAS=mach1 ROLES=app,sidekiq,monit,web_tools cap rubber:create
$ cap rubber:bootstrap
$ cap deploy 

// Rails服务器已开启并且现在运行良好

$ cap rubber:sidekiq:start
  * 2014-07-11 09:46:55 executing `rubber:init'
 ** Auto role: app => mach1.m.com, {:platform=>"linux", :provider=>"aws"}
 ** Auto role: unicorn => mach1.m.com, {:platform=>"linux", :provider=>"aws"}
 ** Auto role: nginx => mach1.m.com, {:platform=>"linux", :provider=>"aws"}
 ** Auto role: sidekiq => mach1.m.com, {:platform=>"linux", :provider=>"aws"}
 ** Auto role: monit => mach1.m.com, {:platform=>"linux", :provider=>"aws"}
 ** Auto role: web_tools => mach1.m.com, {:platform=>"linux", :provider=>"aws"}
 ** Auto role: db => mach1.m.com, {:primary=>true, :platform=>"linux", :provider=>"aws"}
 ** Auto role: postgresql => mach1.m.com, {:platform=>"linux", :provider=>"aws"}
 ** Auto role: postgresql_master => mach1.m.com, {:platform=>"linux", :provider=>"aws"}
 ** Auto role: collectd => mach1.m.com, {:platform=>"linux", :provider=>"aws"}
  * 2014-07-11 09:46:57 executing `rubber:sidekiq:start'
  * executing "sudo -p 'sudo password: ' -H -u ubuntu bash -l -c 'cd /mnt/projectrepo-production/current ; nohup bundle exec sidekiq -e production -C /mnt/projectrepo-production/current/config/sidekiq.yml -P /mnt/projectrepo-production/current/tmp/pids/sidekiq.pid >> /mnt/projectrepo-production/current/log/sidekiq.log 2>&1 &'"
    servers: ["mach1.m.com"]
    [mach1.m.com] executing command
    command finished in 808ms
$

SideKiq Log说

!!! ERROR HANDLER THREW AN ERROR !!!
2014-07-11T04:30:40Z 22691 TID-oryg4a6cc ERROR: undefined method `user' for "Manager#processor_died died":String
2014-07-11T04:30:40Z 22691 TID-oryg4a6cc ERROR: /mnt/datahub_rubber-production/shared/bundle/ruby/2.1.0/bundler/gems/raven-ruby-776c042695dd/lib/raven/event.rb:50:in `initialize'

0 个答案:

没有答案