listen variable not properly honored

Bug #753559 reported by m00dawg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sphinxsearch (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: sphinxsearch

Using 'address = ..' in sphinx.conf throws the following warnings on restart:

root@Blog:/usr/share/doc/sphinxsearch# /etc/init.d/sphinxsearch restart
Restarting sphinxsearch: Sphinx 0.9.9-release (r2117)
Copyright (c) 2001-2009, Andrew Aksyonoff

using config file '/etc/sphinxsearch/sphinx.conf'...
WARNING: key 'address' is deprecated in /etc/sphinxsearch/sphinx.conf line 221; use 'listen' instead.
listening on 127.0.0.1:9312
sphinxsearch.

However, replacing 'address' with 'listen' causes the variable to be evaluated, but then Sphinx tries to listen on all interfaces:

root@Blog:/usr/share/doc/sphinxsearch# /etc/init.d/sphinxsearch restart
Restarting sphinxsearch: Sphinx 0.9.9-release (r2117)
Copyright (c) 2001-2009, Andrew Aksyonoff

using config file '/etc/sphinxsearch/sphinx.conf'...
listening on 127.0.0.1:9312
listening on all interfaces, port=9312
[Thu Apr 7 13:48:37.660 2011] [19224] FATAL: listen() failed: Address already in use

Revision history for this message
m00dawg (tim-moocowproductions) wrote :

Here is the before and after of the relevant parts of /etc/sphinxsearch/searchd.conf:

Works (but gives warning at startup):

searchd
{
 port = 9312
 address = 127.0.0.1
 read_timeout = 5
 max_children = 30
 pid_file = /var/run/searchd.pid
 max_matches = 10000
 log = /var/log/sphinxsearch/searchd.log
 query_log = /var/log/sphinxsearch/query.log
}

Busted:

searchd
{
 port = 9312
 listen = 127.0.0.1
 read_timeout = 5
 max_children = 30
 pid_file = /var/run/searchd.pid
 max_matches = 10000
 log = /var/log/sphinxsearch/searchd.log
 query_log = /var/log/sphinxsearch/query.log
}

This is on Ubuntu 10.04:

root@Blog:/usr/share/doc/sphinxsearch# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.2 LTS
Release: 10.04
Codename: lucid

However, I am using the Maverick SphinxSearch since I needed 0.9.9:

root@Blog:/usr/share/doc/sphinxsearch# dpkg -s sphinxsearch
Package: sphinxsearch
Status: install ok installed
Priority: optional
Section: misc
Installed-Size: 6816
Maintainer: Ubuntu Developers <email address hidden>
Architecture: amd64
Version: 0.9.9-6
Depends: libc6 (>= 2.7), libexpat1 (>= 1.95.8), libgcc1 (>= 1:4.1.1), libmysqlclient16 (>= 5.1.21-1), libpq5 (>= 8.4~0cvs20090328), libstdc++6 (>= 4.1.1), zlib1g (>= 1:1.1.4)
Conffiles:
 /etc/sphinxsearch/sphinx.conf 9a2730c97ce6df9a0e1e50c1a5cc6794
 /etc/cron.d/sphinxsearch 777783052b8d2b7feb65ba3a871bb404
 /etc/default/sphinxsearch 7b316964383c0655d108d15b7873e18a
 /etc/init.d/sphinxsearch b771297f2cdc919ebdcc4ba53b2e793e
 /etc/sphinxsearch/sphinx.conf.dist 74f1e28b826675ebff2d9bda71d04169 obsolete
 /etc/sphinxsearch/sphinx-min.conf.dist 7fdfccc7ce0a4f83db420487b9aed837 obsolete
Description: Fast standalone full-text SQL search engine
 Sphinx is a standalone full text search engine, meant to provide fast,
 size-efficient and relevant fulltext search functions to other applications.
 Sphinx was specially designed to integrate well with SQL databases and
 scripting languages. Currently built-in data sources support fetching data
 either via direct connection to MySQL or PostgreSQL, or using XML pipe
 mechanism (a pipe to indexer in special XML-based format which Sphinx
 recognizes).
 .
 Sphinx is an acronym which is officially decoded as SQL Phrase Index.
Original-Maintainer: Radu Spineanu <email address hidden>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.