Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

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

share|improve this answer
    
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

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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