[英]resque-web: NoMethodError at /failed undefined method `to_yaml'
Resque-web is up and running but when trying to view the failed jobs I get the following error: Resque-web已启动并正在运行,但在尝试查看失败的作业时,我收到以下错误:
NoMethodError at /failed
undefined method `to_yaml' for 3:Fixnum
The stack trace points to a ' to_yaml
' call as mentioned in the error, it seems like resque-web is missing a requires. 堆栈跟踪指向错误中提到的' to_yaml
'调用,似乎resque-web缺少需求。 Has anyone else had this problem or know how to solve it? 有没有其他人有这个问题或知道如何解决它?
Note: I'm running this locally on a rails 4 app. 注意:我在rails 4 app上本地运行。
You can see the reason here: https://github.com/resque/resque/issues/1143 -- it boils down to a temporary bug that is fixed, but not released yet. 你可以在这里看到原因: https : //github.com/resque/resque/issues/1143 - 它归结为一个已修复但尚未发布的临时错误。 I fixed mine by adding 我通过添加来修复我的
require 'yaml'
at the top of the server.rb file 在server.rb文件的顶部
note that the server.rb file on my machine was located at: /usr/local/lib/ruby/gems/2.0.0/gems/resque-1.25.1/lib/resque/server.rb 请注意我的计算机上的server.rb文件位于:/usr/local/lib/ruby/gems/2.0.0/gems/resque-1.25.1/lib/resque/server.rb
your location may vary 你的位置可能有所不同
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.