Flying Sphinx is failing to index and start
Hi Flying Sphinx support,
Here is the trace when I try to index. Any thoughts on what could be going wrong?
heroku run rake fs:index --trace
Running rake fs:index --trace
attached to terminal...
up, run.1
Invoke fs:index (first_time) Invoke environment
(first_time) Execute environment Execute fs:index
Starting Index Request
rake aborted!
getaddrinfo: Name or service not known
/usr/local/lib/ruby/1.9.1/net/http.rb:644:in initialize'
/usr/local/lib/ruby/1.9.1/net/http.rb:644:in
open'
/usr/local/lib/ruby/1.9.1/net/http.rb:644:in block in
connect' /usr/local/lib/ruby/1.9.1/timeout.rb:44:in
timeout'
/usr/local/lib/ruby/1.9.1/timeout.rb:89:in timeout'
/usr/local/lib/ruby/1.9.1/net/http.rb:644:in
connect'
/usr/local/lib/ruby/1.9.1/net/http.rb:637:in do_start'
/usr/local/lib/ruby/1.9.1/net/http.rb:626:in
start'
/usr/local/lib/ruby/1.9.1/net/http.rb:1168:in request'
/usr/local/lib/ruby/1.9.1/net/http.rb:888:in
get'
/app/vendor/bundle/ruby/1.9.1/gems/faraday-0.7.6/lib/faraday/adapter/net_http.rb:59:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/faraday-0.7.6/lib/faraday/response.rb:8:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/faraday-0.7.6/lib/faraday/response.rb:8:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/faraday-0.7.6/lib/faraday/request/url_encoded.rb:14:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/faraday-0.7.6/lib/faraday/connection.rb:210:in
run_request'
/app/vendor/bundle/ruby/1.9.1/gems/faraday-0.7.6/lib/faraday/connection.rb:93:in
get'
/app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.6.4/lib/flying_sphinx/api.rb:20:in
block in get'
/app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.6.4/lib/flying_sphinx/api.rb:68:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.6.4/lib/flying_sphinx/api.rb:68:in
log'
/app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.6.4/lib/flying_sphinx/api.rb:19:in
get'
/app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.6.4/lib/flying_sphinx/index_request.rb:140:in
request_status'
/app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.6.4/lib/flying_sphinx/index_request.rb:129:in
request_complete?'
/app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.6.4/lib/flying_sphinx/index_request.rb:110:in
direct_index'
/app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.6.4/lib/flying_sphinx/index_request.rb:90:in
index'
/app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.6.4/lib/flying_sphinx/index_request.rb:34:in
update_and_index'
/app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.6.4/lib/flying_sphinx/tasks.rb:6:in
block
(2 levels) in '
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in
block
in execute'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in
each'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in
execute'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in
block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:201:in
mon_synchronize'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in
invoke_with_call_chain'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in
invoke'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116:in
invoke_task'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
block
(2 levels) in top_level'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
each'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
block
in top_level'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
standard_exception_handling'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in
top_level'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in
block in run'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
standard_exception_handling'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in
run'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in
'
/app/vendor/bundle/ruby/1.9.1/bin/rake:19:in load'
/app/vendor/bundle/ruby/1.9.1/bin/rake:19:in
' Tasks: TOP
=> fs:index
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Pat Allan on Jul 11, 2012 @ 06:41 AM
Hi Michael
Can you add the following config variable, run the task with trace again and let me know the new output?
heroku config:add VERBOSE_LOGGING=true
Also, what version of the flying-sphinx gem are you using, and what's the name of your app?
--
Pat
Support Staff 2 Posted by Pat Allan on Jul 11, 2012 @ 09:03 AM
Hi Michael
I found this occurring on one of my apps using FS - but not all. When I added that config var to debug further, indexing started working again. Are you still seeing the issue? I wonder if the DNS side of things got itself sorted out.
Cheers
Pat