I am migrating an app from engineyard and am attempting to setup flying sphinx.
when i hit a url that uses the sphinx search i see:
Connection to ec2-184-72-209-147.compute-1.amazonaws.com on 9336 failed. Connection refused - connect(2)
And when i try to run any of the rake tasks on the heroku instance i see:
Running rake ts:conf --trace attached to terminal... up, run.1
** Invoke ts:conf (first_time)
** Invoke thinking_sphinx:configure (first_time)
** Invoke thinking_sphinx:app_env (first_time)
** Execute thinking_sphinx:app_env
** Invoke environment (first_time)
** Execute environment
rake aborted!
production database is not configured
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:62:in `establish_connection'
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:55:in `establish_connection'
/app/vendor/bundle/ruby/1.9.1/gems/rails-2.3.14/lib/initializer.rb:438:in `initialize_database'
/app/vendor/bundle/ruby/1.9.1/gems/rails-2.3.14/lib/initializer.rb:141:in `process'
/app/vendor/bundle/ruby/1.9.1/gems/rails-2.3.14/lib/initializer.rb:113:in `run'
/app/config/environment.rb:9:in `<top (required)>'
#1 Posted by jerrod on 28 Aug, 2012 02:58 PM
thats "cleardb" - autocorrect fail.
#2 Posted by jerrod on 28 Aug, 2012 02:59 PM
note the same error when running the FS index task
#3 Posted by Pat Allan Support staff on 28 Aug, 2012 03:02 PM
Hi Jerrod
You'll definitely need to stick with the fs tasks. Is your DATABASE_URL environment variable set to your cleardb database connection?
Pat
#4 Posted by jerrod on 28 Aug, 2012 03:27 PM
yep sure is:
#5 Posted by jerrod on 28 Aug, 2012 04:41 PM
trying the CLI commands from the docs:
and from the app log:
What other info would be helpful in troubleshooting this?
#6 Posted by jerrod on 28 Aug, 2012 04:43 PM
#7 Posted by jerrod on 28 Aug, 2012 05:01 PM
i turned on verbose logging and now i see this:
#8 Posted by jerrod on 28 Aug, 2012 05:02 PM
oh - app name is "signmeto-roadrunner"
#9 Posted by Pat Allan Support staff on 28 Aug, 2012 05:20 PM
I've just released flying-sphinx 0.8.2 which should handle the zone method not existing. I'm not convinced that's the cause of the original error though… I'm at a bit of a loss for that. Still, give this a shot, see how you go. Let me know what the verbose output of the fs:rebuild task is.
Thanks
Pat
#10 Posted by jerrod on 28 Aug, 2012 06:24 PM
tracked it down to what appears to be a poorly written rake task.
testing all my indices now.
Much appreciated, Pat!
#11 Posted by Pat Allan Support staff on 28 Aug, 2012 06:27 PM
Ah, great to hear. If you hit any further issues, just let me know.
#12 Posted by Pat Allan Support staff on 28 Aug, 2012 10:40 PM
The app works fine otherwise, though? There's nothing in the stack trace that's suggesting it's a bug from Flying Sphinx's perspective, but it's odd that the database isn't set up in this situation…
Pat
#13 Posted by jerrod on 28 Aug, 2012 10:43 PM
yeah - nothing that i consider to be flying sphinx or thinking sphinx's issue. I think i just got "lucky" in that i didn't have any other rake tasks that needed to run on heroku.
Really appreciate your help, regardless!
Pat Allan closed this discussion on 13 Jan, 2014 11:26 PM.