我已经很开心地使用resque wit redis了一段时间了,一切都很棒。除了在代码中进行了一些无关的更改后,它几天前停止工作。
尝试启动工作程序时出现以下错误:
web_1 | Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
我尝试恢复到git历史记录中的较早时间点,但这不能解决问题... 我还多次检查了配置。
但是,我对Redis的内部工作方法并不太熟悉。知道发生了什么事吗?我如何获取有关我的问题的更多信息?
这是完整的踪迹:
web_1 | rake aborted!
web_1 | Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis/connection/ruby.rb:39:in `initialize'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis/connection/ruby.rb:39:in `initialize'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis/connection/ruby.rb:195:in `new'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis/connection/ruby.rb:195:in `connect_addrinfo'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis/connection/ruby.rb:239:in `block in connect'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis/connection/ruby.rb:237:in `each'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis/connection/ruby.rb:237:in `each_with_index'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis/connection/ruby.rb:237:in `connect'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis/connection/ruby.rb:313:in `connect'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis/client.rb:336:in `establish_connection'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis/client.rb:101:in `block in connect'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis/client.rb:293:in `with_reconnect'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis/client.rb:100:in `connect'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis/client.rb:364:in `ensure_connected'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis/client.rb:221:in `block in process'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis/client.rb:306:in `logging'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis/client.rb:220:in `process'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis/client.rb:120:in `call'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis.rb:504:in `block in exists'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis.rb:58:in `block in synchronize'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis.rb:58:in `synchronize'
web_1 | /usr/local/bundle/gems/redis-3.3.5/lib/redis.rb:503:in `exists'
web_1 | /usr/local/bundle/gems/redis-namespace-1.6.0/lib/redis/namespace.rb:442:in `call_with_namespace'
web_1 | /usr/local/bundle/gems/redis-namespace-1.6.0/lib/redis/namespace.rb:328:in `method_missing'
web_1 | /usr/local/bundle/gems/resque-scheduler-3.1.0/lib/resque/scheduler/scheduling_extensions.rb:55:in `schedule='
web_1 | /app/lib/tasks/resque.rake:28:in `block (2 levels) in <top (required)>'
web_1 | /usr/local/bundle/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
web_1 | Tasks: TOP => resque:scheduler => resque:setup_schedule
web_1 | (See full trace by running task with --trace)
在此先感谢您的帮助!