简体   繁体   English

Sidekiq、Redis、Rails 和 Ruby - 没有将路径名隐式转换为字符串

[英]Sidekiq, Redis, Rails and Ruby - no implicit conversion of Pathname into String

I am trying to get my sidekiq server and client up and running (using Foreman), but whenever it gets to:我正在尝试启动并运行我的 sidekiq 服务器和客户端(使用 Foreman),但是每当它到达时:

bundle exec sidekiq

The following results:结果如下:

no implicit conversion of Pathname into String

Just like that, without Type Error preceding it - obviously the stack trace followed (will post if it will help).就像那样,前面没有Type Error - 显然后面是堆栈跟踪(如果有帮助,会发布)。 It says that the problem is in active_support/dependencies.rb (version 5.0.0.1) in the require method.它说问题出在require方法中的 active_support/dependencies.rb(版本 5.0.0.1)中。 Earlier in the stack trace it gets to boot_system in sidekiq's cli.rb (version 4.1.2).在堆栈跟踪早些时候到达boot_system在sidekiq的cli.rb(版本4.1.2)。 I am not sure whether this is a known issue with sidekiq or whether I am missing some configuration (I have read through a good number of tutorials on this which include thorough discussion of considerations to make in regarding sidekiq, puma and redis' configs, but to no avail).我不确定这是否是 sidekiq 的一个已知问题,或者我是否缺少一些配置(我已经阅读了大量关于此的教程,其中包括对有关 sidekiq、puma 和 redis 配置的注意事项的深入讨论,但是无济于事)。 I am running Ruby 2.3.1 and Rails 5.0.0.1我正在运行 Ruby 2.3.1 和 Rails 5.0.0.1

The sidekiq.yml file includes (I got the error before this file and including it did not solve the issue): sidekiq.yml 文件包含(我在此文件之前收到错误并且包含它并没有解决问题):

development:  
  :concurrency: 5
production:  
  :concurrency: 20
:queues:
  - default

Also, I am really new to posting on stackoverflow (but have made frequent use of it in the past).另外,我对在 stackoverflow 上发帖真的很陌生(但过去经常使用它)。 Any guidance would be great!任何指导都会很棒!

So I did manage to get my sidekiq up and running with redis.所以我确实设法让我的 sidekiq 启动并使用 redis 运行。 My problem was with one of the worker scripts which had an error in it... It was picking it up in a directory other than app/workers (I placed it in app/temp while I was debugging) - only saw it now in the stack trace: obviously missed it earlier due to looking at a screen too long (the classics).我的问题是其中一个工作脚本有错误......它是在 app/workers 以外的目录中提取的(我在调试时将它放在 app/temp 中) - 现在才看到它堆栈跟踪:由于看屏幕太久(经典),显然早些时候错过了它。 Still was weird that the error message was missing Type Error though.虽然错误消息缺少Type Error仍然很奇怪。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Ruby on Rails 4 - CSV导入 - 没有隐式转换为字符串 - Ruby on Rails 4 - CSV import - no implicit conversion into string 在 ruby​​ on rails 中没有将字符串隐式转换为整数错误 - no implicit conversion of String into Integer error in ruby on rails 没有将String隐式转换为Integer Ruby on Rails - no implicit conversion of String into Integer Ruby on Rails Ruby on Rails:TypeError(没有将字符串隐式转换为整数) - Ruby on Rails: TypeError (No implicit conversion of String into Integer) 在Rails 5上的TypeError(没有将nil隐式转换为String)ruby - TypeError (no implicit conversion of nil into String) ruby on rails 5 没有将 nil 隐式转换为 String Ruby on Rails - no implicit conversion of nil into String Ruby on Rails Ruby on Rails:不会将数组隐式转换为字符串(DEVISE) - Ruby on Rails: no implicit conversion of Array into String (DEVISE) 在轨道上的 ruby 上没有将字符串隐式转换为 integer - No implicit conversion of string into integer on ruby on rails Rails-升级到ruby 2.2.2-没有将数组隐式转换为String(TypeError) - Rails- upgrading to ruby 2.2.2 - no implicit conversion of Array into String (TypeError) TypeError-在Ruby on Rails数组中没有将String隐式转换为Integer - TypeError - no implicit conversion of String into Integer in array Ruby on Rails
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM