Thinking-sphinx 3.0.5 broke Heroku Mysql connection

While running bundle install trying to update some other gem, Thinking Sphinx was updated to version 3.0.5 from 3.0.3.

I now get the following error on Heroku:

Mysql2::Error: Can't connect to MySQL server on '127.0.0.1' (111)

Sphinx works fine locally, but any searches on Heroku result in this error. Of course, on Heroku it should not be attempting to connect to localhot but rather to the Sphinx add-on.

What changed in version 3.0.5 and how can I fix it?

Also, how can I protect my app against these kinds of things without staing forever in version 3.0.3?

  1. Hi Alex

    This is certainly surprising - what's the name of your app? And when you run `heroku config`, what are the values of the FLYING_SPHINX_* instance variables?

    Pat

Reply to this discussion Internal reply only staff will see it

Markdown

Attaching KB article:

» »

Read more…

Attach files

Up to 10MB each.

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

Recent Discussions