[英]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.