我正在尝试在生产模式下运行 Sidekiq UI,尽管工作人员运行良好,但有时它们会崩溃,因此我想查看 UI 以重新启动它们或查看问题所在。这只是生产模式下的问题,开发模式完美无缺!
但是,当我访问 /sidekiq UI 时,我总是会遇到内部服务器错误,而且我似乎无法在我的 log/sidekiq.log 或我的 rails 应用程序的 log/production.log 中获得任何回溯。
让这个工作的最好方法是什么,或者至少让我回溯!
宝石文件:
gem 'sidekiq', '0.7.0' #I am using sidetiq for scheduling
gem 'sidekiq-middleware', '0.3.0'
gem 'sinatra', :require => nil
启动sidekiq的命令
bundle exec sidekiq -d -L log/sidekiq.log -C config/sidekiq.yml -e production
Sidekiq 日志始终具有此输出(如果有帮助)
Can't link Sidetiq::Actor::Handler. Sidekiq::Manager not running. Retrying in 5 seconds ...
Can't link Sidetiq::Actor::Handler. Sidekiq::Manager not running. Retrying in 5 seconds ...
Can't link Sidetiq::Actor::Handler. Sidekiq::Manager not running. Retrying in 5 seconds ...
DEBUG: [Sidetiq] Can't link Sidetiq::Actor::Clock. Sidekiq::Manager not running. Retrying in 5 seconds ...
Sidetiq] Lock: sidetiq:MyAwesomeWorker:lock
[Sidetiq] Enqueue: MyAwesomeWorker (at: 1458064200.0) (last: 1458064140.0)
Sidetiq] Unlock: sidetiq:MyAwesomeWorker:lock