3

I am trying to configure Sidekiq in a Rails 4.1.4 application that connects to an AWS Elasticache Node running Redis.

I set up my Redis server, and followed the directions in this AWS Guide: http://docs.aws.amazon.com/opsworks/latest/userguide/other-services-redis-cluster.html

And my Redis server was running properly and my app server could connect properly.

I followed these directions to set up Sidekiq to run on the external worker: https://github.com/mperham/sidekiq/wiki/Advanced-Options

Whenever I visited my app server at the /sidekiq url to view the Sidekiq panel, I kept getting the error on screen saying "Internal Server Error".

My Unicorn error logs do not contain any relevant information, so I am not sure how to get this working. AWS support did not have any answers either.

Any information would be greatly appreciated. Thanks!

4

1 回答 1

2

当资产未编译或未配置为从您的环境提供服务时,通常会出现此问题。在将生产配置更改为指向您的本地资源(redis+db)并查看页面是否能够加载之后,以生产模式(或所指的任何环境)启动您的 app/sidekiq。

RAILS_ENV=production bundle exec unicorn
RAILS_ENV=production bundle exec sidekiq -c config/sidekiq.yml
于 2014-07-18T15:31:44.990 回答