gpt4 book ai didi

ruby-on-rails - Rails、Sidekiq - Redis NOAUTH

转载 作者:IT王子 更新时间:2023-10-29 05:56:46 25 4
gpt4 key购买 nike

我使用 sidekiq on rails 发送电子邮件。我已经为 redis 服务器添加了密码,但似乎无法正确设置,因为出现错误

D, [2015-12-10T16:49:52.714279 #10497] DEBUG -- :    (0.5ms)  COMMIT
I, [2015-12-10T16:49:52.720380 #10497] INFO -- : [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5bce215c-7649-4774-8c6e-d29e743cf25e) to Sidekiq(mailers) with arguments: "MessageMailer", "new_message", "deliver_now", gid://customer-app/Message/18
I, [2015-12-10T16:49:52.723400 #10497] INFO -- : Completed 500 Internal Server Error in 25ms (ActiveRecord: 1.6ms)
F, [2015-12-10T16:49:52.726204 #10497] FATAL -- :
Redis::CommandError (NOAUTH Authentication required.):
app/controllers/messages_controller.rb:37:in `block in create'
app/controllers/messages_controller.rb:35:in `create'

我的 sidekiq 日志显示它应该没问题?

2015-12-10T16:49:39.220Z 10448 TID-ows27pimw INFO: Booting Sidekiq 3.5.3 with redis options {:url=>"redis://localhost:6379/0", :password=>"REDACTED", :namespace=>"sidekiq"}
2015-12-10T16:49:40.916Z 10448 TID-ows27pimw INFO: Running in ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]

这是我在初始化程序中的 sidekiq.rb

Sidekiq.configure_server do |config|
config.redis = { :url => "redis://#{}localhost:6379/0", password: ENV["REDIS_PASSWORD"], :namespace => "sidekiq" }
end

最佳答案

您需要在服务器和客户端 block 中配置 Redis,如 Using Redis wiki page 中所述。 .

关于ruby-on-rails - Rails、Sidekiq - Redis NOAUTH,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34207523/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com