Flying Sphinx is failing to index and start

Michael Del Borrello's Avatar

Michael Del Borrello

11 Jul, 2012 06:23 AM

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:inopen' /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:intimeout' /usr/local/lib/ruby/1.9.1/timeout.rb:89:in timeout' /usr/local/lib/ruby/1.9.1/net/http.rb:644:inconnect' /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:instart' /usr/local/lib/ruby/1.9.1/net/http.rb:1168:in request' /usr/local/lib/ruby/1.9.1/net/http.rb:888:inget' /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:incall' /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:incall' /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:inget' /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:incall' /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:inget' /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:inrequest_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:inindex' /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:inblock (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:inblock 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:inexecute' /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:inmon_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:ininvoke' /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:inblock (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:inblock 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:intop_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:instandard_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

  1. Support Staff 1 Posted by Pat Allan on 11 Jul, 2012 06:41 AM

    Pat Allan's Avatar

    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

  2. Support Staff 2 Posted by Pat Allan on 11 Jul, 2012 09:03 AM

    Pat Allan's Avatar

    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

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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