FATAL: port 0 is out of range

Hey. Just wanna give you a hint on what to do with error "FATAL: port 0 is out of range" in case you use unix sockets for communicating with your Sphinx / Manticore instance.

Here's an example:

snikolaev@dev:~/dir$ ./searchd -c sphinx.conf
Manticore 2.7.1 458e9c6@180704 dev
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-2018, Manticore Software LTD (http://manticoresearch.com)

using config file 'sphinx.conf'...
FATAL: port 0 is out of range
shutdown complete

If you see this make sure the paths to your unix socket files are absolute in your Sphinx / Manticore config. The idea behind this is that if you say just

listen = searchd.sock


  1. impossible to distinguish this from not unix socket
  2. may be not secure

Good luck!

Leave a Reply


Personal and team training will maximize them performance. 

Custom development

Need cone custom or individual features?

Fill the form and don’t forget to make the description of what you need.

Free config review

There are often optimizations that can be made to a Sphinx / Manticore setup by changing some simple directives in the configuration or making quick changes to an index definition.

Some common mistakes and issues can include:

  • doing main+delta without kill-lists, even if the delta does include updated records found in the main
  • using wildcarding with very short prefix/infix which can hammer performance in some cases
  • disabled (unintentional) seamless rotates and getting stalls on index rotations
  • adding texts as string attributes even if they are not using for any kind of operation (filtering, grouping, sorting) or mandatory to be present in results
  • using deprecated settings¬†

Having a quick look on the configuration can show issues or potential issues, this is why we want to offer a gift to our growing community!

When uploading your configuration file, we recommend to remove any database credentials first.

We suggest also you give as many possible details about your setup: how big is the data you have, how typical queries look and what issues you experience.

Contact us