Hassan Abdul Rehman's Avatar

Hassan Abdul Rehman

01 Sep, 2014 12:11 PM


Since like 2 days everytime i try to :rebuild indexes on heroku, it gives me this error:

Running `rake thinking_sphinx:rebuild` attached to terminal... up, run.5304
Stopped search daemon (pid ).
rake aborted!
Error connecting to Redis on (ECONNREFUSED)

Tasks: TOP => thinking_sphinx:index => thinking_sphinx:lock_deltas
(See full trace by running task with --trace)

I searched around this as an issue of heroku, which apparently gets resolved if i install plugin redis to go and set the url in config. But we've been using this same version since forever. Why does sphinx suddenly need redis?


  1. Support Staff 1 Posted by Pat Allan on 01 Sep, 2014 01:46 PM

    Pat Allan's Avatar

    Hi Hassan

    Firstly: there’s nothing in Sphinx, Thinking Sphinx or Flying Sphinx that uses Redis. The ts-sidekiq-delta and ts-resque-delta gems do because of Sidekiq and Resque, but that means you would already be using Redis.

    Second: with Heroku, you want to use the fs tasks, not ts/thinking_sphinx tasks. So, try `heroku run rake fs:rebuild` instead?

    If the problem still persists beyond that, can you run the task with the —trace argument and let me know what the stack-trace is?



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


? 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