Your message dated Fri, 02 Dec 2011 00:17:31 +0000
with message-id <e1rwgol-0002bl...@franck.debian.org>
and subject line Bug#645663: fixed in sphinxsearch 0.9.9+2.0.2beta-1
has caused the Debian Bug report #645663,
regarding /var/run/sphinxsearch not present after reboot, sphinxsearch fails to
start
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
645663: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=645663
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: sphinxsearch
Version: 0.9.9+2.0.1beta-1
Severity: grave
Justification: renders package unusable
Dear Maintainer,
The postinit script creates the /var/run/sphinxsearch directory and assigns
permissions, but after a reboot, /var/run is wiped. The initd script does
not check to make sure /var/run/sphinxsearch exists. Thus the initd script
fails to start searchd (with its pid_file set to
/var/run/sphinxsearch/sphinx.pid).
Observed behaviour after a reboot:
------
$ service sphinxsearch start
Starting sphinxsearch: Sphinx 2.0.1-beta (r2792)
Copyright (c) 2001-2011, Andrew Aksyonoff
Copyright (c) 2008-2011, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/etc/sphinxsearch/sphinx.conf'...
WARNING: compat_sphinxql_magics=1 is deprecated; please update your application
and config
FATAL: failed to create pid file '/var/run/sphinxsearch/searchd.pid': No such
file or directory
------
The package works as expected before the initial reboot, but fails after
all subsequent restarts.
The issue appears to have been introduced in 0.9.9-9. I have tested both
0.9.9-9 and
0.9.9+2.0.1beta1 packages, and verified the issue exists in both packages.
Below is a patch, which solves the issue by creating the /var/run/sphinxsearch
directory with the correct permissions in the init script. I have rebuilt the
package with this patch, and verified that it corrects the issue.
diff --git a/debian/init.d b/debian/init.d
index fc60e47..42013ed 100644
--- a/debian/init.d
+++ b/debian/init.d
@@ -47,6 +47,15 @@ fi
set -e
+# Make sure the pidfile directory exists with correct permissions
+piddir=`dirname "$PIDFILE"`
+if [ ! -d "$piddir" ]; then
+ mkdir -p "$piddir"
+ chown -R sphinxsearch "$piddir"
+ chgrp -R sphinxsearch "$piddir"
+fi
+
+
running_pid()
{
# Check if a given process pid's cmdline matches a given name
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages sphinxsearch depends on:
ii adduser 3.113
ii libc6 2.13-21
ii libexpat1 2.0.1-7
ii libgcc1 1:4.6.1-4
ii libmysqlclient16 5.1.58-1
ii libpq5 9.1.1-1
ii libstdc++6 4.6.1-4
ii libstemmer0d 0+svn546-2
ii zlib1g 1:1.2.3.4.dfsg-3
sphinxsearch recommends no packages.
sphinxsearch suggests no packages.
-- Configuration Files:
/etc/default/sphinxsearch changed [not included]
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: sphinxsearch
Source-Version: 0.9.9+2.0.2beta-1
We believe that the bug you reported is fixed in the latest version of
sphinxsearch, which is due to be installed in the Debian FTP archive:
sphinxsearch_0.9.9+2.0.2beta-1.diff.gz
to main/s/sphinxsearch/sphinxsearch_0.9.9+2.0.2beta-1.diff.gz
sphinxsearch_0.9.9+2.0.2beta-1.dsc
to main/s/sphinxsearch/sphinxsearch_0.9.9+2.0.2beta-1.dsc
sphinxsearch_0.9.9+2.0.2beta-1_i386.deb
to main/s/sphinxsearch/sphinxsearch_0.9.9+2.0.2beta-1_i386.deb
sphinxsearch_0.9.9+2.0.2beta.orig.tar.gz
to main/s/sphinxsearch/sphinxsearch_0.9.9+2.0.2beta.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 645...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Radu Spineanu <r...@debian.org> (supplier of updated sphinxsearch package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Thu, 01 Dec 2011 16:24:36 +0000
Source: sphinxsearch
Binary: sphinxsearch
Architecture: source i386
Version: 0.9.9+2.0.2beta-1
Distribution: unstable
Urgency: low
Maintainer: Radu Spineanu <r...@debian.org>
Changed-By: Radu Spineanu <r...@debian.org>
Description:
sphinxsearch - Fast standalone full-text SQL search engine
Closes: 645663 648260
Changes:
sphinxsearch (0.9.9+2.0.2beta-1) unstable; urgency=low
.
* New upstream release. (2.0.2beta)
* New upstream fixes FTBFS. (closes: #648260)
* Create /var/run/sphinxsearch in init.d if it doesn't exist.
Thanks to John Paulett <j...@paulett.org> for the patch.
(closes: #645663)
Checksums-Sha1:
7e443cb7ba448784fdc0d4d453ecab3280477516 1262
sphinxsearch_0.9.9+2.0.2beta-1.dsc
af0fcca27abbc3d73e04ce7265748350e6bb93b9 1916158
sphinxsearch_0.9.9+2.0.2beta.orig.tar.gz
fcff75d243f954a46d741075c78056ebd19577ab 36240
sphinxsearch_0.9.9+2.0.2beta-1.diff.gz
bd90670c85748b9a8945db9d1c06c8c97cd8fae6 4577842
sphinxsearch_0.9.9+2.0.2beta-1_i386.deb
Checksums-Sha256:
deb43cbad9e42bca825d56304efed5af2676ca657d4a3d9b8637e1fcd7cfcc45 1262
sphinxsearch_0.9.9+2.0.2beta-1.dsc
7023b394e1f8a11f10db53cffe37782c7e5aa5cb69cfcbb15ac246a74d7edeb8 1916158
sphinxsearch_0.9.9+2.0.2beta.orig.tar.gz
f79b819e2206f6b3498db100f0e1817e58539ababd28412a509f9e1c09f595dd 36240
sphinxsearch_0.9.9+2.0.2beta-1.diff.gz
67f23e335d03e158ddaedf6d6e8a115f43d702465a24be60a9b61c78c5e6ff39 4577842
sphinxsearch_0.9.9+2.0.2beta-1_i386.deb
Files:
01317667a3274540caa9516b273bd67d 1262 misc optional
sphinxsearch_0.9.9+2.0.2beta-1.dsc
fafe0f1a71d0ded32404c067eba7d0b3 1916158 misc optional
sphinxsearch_0.9.9+2.0.2beta.orig.tar.gz
e8bf2b0b80313d1504c893a898000c68 36240 misc optional
sphinxsearch_0.9.9+2.0.2beta-1.diff.gz
390cadd61c21884a1a84ea0d54cc3a75 4577842 misc optional
sphinxsearch_0.9.9+2.0.2beta-1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk7XvO0ACgkQJkMZOMmr+9MwKwCaAh67sSl40uLj+1KGYntFogIS
g+QAn3mNe4GjIcVd7u3E/FXlE2DXvehV
=ItVU
-----END PGP SIGNATURE-----
--- End Message ---