2

I have sphinx setup to run in config files on port 3312. I can use the indexer, and create the index. I can search.

I can't run searchd to return queries. I tried telnet 127.0.0.1 3312. My connection is refused.

Whats my next step? I am not very good with Iptables.

2

You should start searchd first, something like /usr/local/bin/searchd (you should use actual path to searchd, try locate searchd to get it)

Okay, it looks like you have two listen directives in your config:

listen = {port}
listen = {sql_host}:{sql_port}:mysql41

and the second one is obviously not right

  • I have tried. My result is this: using config file '/usr/local/etc/sphinx.conf'... WARNING: compat_sphinxql_magics=1 is deprecated; please update your application and config listening on all interfaces, port=3306 bind() failed on 0.0.0.0, retrying... bind() failed on 0.0.0.0, retrying... – Brandon Ellis Sep 1 '11 at 20:05
  • Please double check your configuration file, it tries to bind to port 3306 which is not right, 3306 is a MySQL port. – Alex Sep 1 '11 at 20:07
  • Sorry I forgot to specify the config file. This is my result: listening on all interfaces, port=3312 listening on 127.0.0.1:3306 bind() failed on 127.0.0.1, retrying... bind() failed on 127.0.0.1, retrying... bind() failed on 127.0.0.1, retrying... bind() failed on 127.0.0.1, retrying... bind() failed on 127.0.0.1, retrying... – Brandon Ellis Sep 1 '11 at 20:07
  • You should set listen = 3312 in the searchd section of your Sphinx config file. – Alex Sep 1 '11 at 20:10
  • Yes it was previously set as that. but as you can see from the previous post something else is causing issues. – Brandon Ellis Sep 1 '11 at 20:15
0

It may be because the port is already hold by some else daemon. If the '127.0.0.1:3306' is failed - it is nothing surprising, since 3306 is the port for mysqld. You can try the 9312 (sphinx api) and 9306 (sphinxql) as official IANA assigned ports for sphinx.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.