Hi there guys,

I have some problem in configuring so that searchd and indexer are in
one box and rails app is on another. The following is my

configuration is as following:

dev_sphinx: sphinx server where searchd and indexer are running:

sphinx.yml development section:
  port: 9312
  mem_limit: 64M

  # enable wildcard searching
  allow_star: 1
  min_infix_len: 2

  bin_path: "/usr/local/bin"
  pid_file: "/workspace/my_app/tmp/pids/searchd.development.pid"
  searchd_file_path: "/workspace/index/my_app/development"


rake thinking_sphinx:configure RAILS_ENV=development
rake thinking_sphinx:index RAILS_ENV=development
rake thinking_sphinx:start RAILS_ENV=development


dev_rails: Rails Server

sphinx.yml development section:
  address: dev_sphinx
  port: 9312


But when I search, I got the following error:

Riddle::ConnectionError (Connection to dev_sphinx on 9312 failed.
Connection refused - connect(2)):
  vendor/plugins/thinking-sphinx/rails/./vendor/riddle/lib/riddle/
client.rb:516:in `initialise_socket'
  vendor/plugins/thinking-sphinx/rails/./vendor/riddle/lib/riddle/
0.9.9/client.rb:8:in `initialise_connection'
  vendor/plugins/thinking-sphinx/rails/./vendor/riddle/lib/riddle/
client.rb:452:in `open_socket'
  vendor/plugins/thinking-sphinx/rails/./vendor/riddle/lib/riddle/
client.rb:479:in `connect'
  vendor/plugins/thinking-sphinx/rails/./vendor/riddle/lib/riddle/
client.rb:535:in `request'
  vendor/plugins/thinking-sphinx/rails/./vendor/riddle/lib/riddle/
client.rb:203:in `run'
  vendor/plugins/thinking-sphinx/rails/./vendor/riddle/lib/riddle/
client.rb:310:in `query'
  app/controllers/file_list_controller.rb:408:in `get_project_files'
  -e:2:in `load'
  -e:2

I checked /etc/hosts.allow and /etc/hosts.deny on dev_sphinx and both
file are empty. I am running out of ideas. Please help. Thank you very
much.


Best wishes,

Canvas

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to