listen variable not properly honored
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:
Restarting sphinxsearch: Sphinx 0.9.9-release (r2117)
Copyright (c) 2001-2009, Andrew Aksyonoff
using config file '/etc/sphinxsea
WARNING: key 'address' is deprecated in /etc/sphinxsear
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:
Restarting sphinxsearch: Sphinx 0.9.9-release (r2117)
Copyright (c) 2001-2009, Andrew Aksyonoff
using config file '/etc/sphinxsea
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
Here is the before and after of the relevant parts of /etc/sphinxsear ch/searchd. conf:
Works (but gives warning at startup):
searchd searchd. pid sphinxsearch/ searchd. log sphinxsearch/ query.log
{
port = 9312
address = 127.0.0.1
read_timeout = 5
max_children = 30
pid_file = /var/run/
max_matches = 10000
log = /var/log/
query_log = /var/log/
}
Busted:
searchd searchd. pid sphinxsearch/ searchd. log sphinxsearch/ query.log
{
port = 9312
listen = 127.0.0.1
read_timeout = 5
max_children = 30
pid_file = /var/run/
max_matches = 10000
log = /var/log/
query_log = /var/log/
}
This is on Ubuntu 10.04:
root@Blog: /usr/share/ doc/sphinxsearc h# 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/sphinxsearc h# dpkg -s sphinxsearch rch/sphinx. conf 9a2730c97ce6df9 a0e1e50c1a5cc67 94 d/sphinxsearch 777783052b8d2b7 feb65ba3a871bb4 04 sphinxsearch 7b316964383c065 5d108d15b7873e1 8a d/sphinxsearch b771297f2cdc919 ebdcc4ba53b2e79 3e rch/sphinx. conf.dist 74f1e28b826675e bff2d9bda71d041 69 obsolete rch/sphinx- min.conf. dist 7fdfccc7ce0a4f8 3db420487b9aed8 37 obsolete Maintainer: Radu Spineanu <email address hidden>
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/sphinxsea
/etc/cron.
/etc/default/
/etc/init.
/etc/sphinxsea
/etc/sphinxsea
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-