Ruby on rails Sidekiq rails的问题

Ruby on rails Sidekiq rails的问题,ruby-on-rails,sidekiq,Ruby On Rails,Sidekiq,我正在尝试为Sidekiq运行下面的命令 bundle exec sidekiq 我的错误率越来越低,无法使用sidekiq运行作业 $ bundle exec sidekiq Note: Google::Cloud::Logging is disabled because it failed to authorize with the service. (Unable to read the credential file specified by GOOGLE_APPLICATION_C

我正在尝试为Sidekiq运行下面的命令

 bundle exec sidekiq
我的错误率越来越低,无法使用sidekiq运行作业

$ bundle exec sidekiq
Note: Google::Cloud::Logging is disabled because it failed to authorize with the service. (Unable to read the credential file specified by GOOGLE_APPLICATION_CREDENTIALS: file /home/app/config/secrets/pubsub-credentials.json does not exist) Falling back to the default Rails logger.

INFO: Booting Sidekiq 5.1.1 with redis options {:url=>"redis://redis:6379/0", :role=>:master, :password=>"REDACTED", :id=>"Sidekiq-server-PID-10968"}


         m,
         `$b
    .ss,  $$:         .,d$
    `$$P,d$P'    .,md$P"'
     ,$$$$$bmmd$$$P^'
   .d$$$$$$$$$$P'
   $$^' `"^$$$'       ____  _     _      _    _
   $:     ,$$:       / ___|(_) __| | ___| | _(_) __ _
   `b     :$$        \___ \| |/ _` |/ _ \ |/ / |/ _` |
          $$:         ___) | | (_| |  __/   <| | (_| |
          $$         |____/|_|\__,_|\___|_|\_\_|\__, |
        .d$$                                       |_|

INFO: Running in ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]
INFO: See LICENSE and the LGPL-3.0 for licensing details.
INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org
getaddrinfo: Name or service not known
/vendor/cache/ruby/2.4.0/gems/redis-4.0.1/lib/redis/connection/ruby.rb:210:in `getaddrinfo'

帮我解决它。提前感谢。

您将sidekiq设置为在redis://redis:6379/0,但这不是系统上的有效url。特别是,主机redis无法解析为IP地址。

要运行sidekiq,您需要一台redis服务器:

Redis为Sidekiq提供数据存储。它保存所有作业数据以及运行时和历史数据,为Sidekiq的Web UI提供动力

从文件中:

如果您的redis服务器运行在localhost:6379以外的任何地方,则可以

要安装本地redis服务器,可以使用以下设备安装:

然后在第二个shell窗口中,尝试启动sidekiq:

bundle exec sidekiq

您正在哪个环境上运行此操作?你的机器上没有运行redis吗?请添加完整的日志。如果你猜错了,你的机器上没有运行redis,这是sidekiq所需要的。还有,这就是全部的错误吗?@KedarnagMukanahallipatna I cehck和redisruining@siegy22我用完整的错误日志更新了我的问题,据说他们已经运行了redis。哦,在评论中没有看到,他们显然崩溃了,更新了答案,你怎么看?
brew install redis
redis-server # will run the server on `localhost:6379`
bundle exec sidekiq