Page 1 of 1

install sphinx problem

Posted: 02 Sep 2008, 03:58
by agus
Hi all,

I have try to install sphinx for my cats 0.9.1, and i have a problem like this when i start searchd

[root@cats sphinx_for_cats]# /etc/rc.d/init.d/searchd start
Starting searchd
Sphinx 0.9.7
Copyright (c) 2001-2007, Andrew Aksyonoff

WARNING: failed to stat config file '/www/htdocs/cats/sphinx/bin//sphinx.conf', using default 'sphinx.conf'
using config file 'sphinx.conf'...
WARNING: index 'cats': failed to preload schema and docinfos - NOT SERVING
WARNING: index 'catsdelta': failed to preload schema and docinfos - NOT SERVING
FATAL: no valid indexes to serve
shutdown complete

i dont know whereis the problem because when the installation thereis no error appear and i have follow the instruction

OS: Centos 4.5
Cats : 0.9.1
Cats running well

Any suggestion for me or any url where i can read the manual first ?

Regards

Re: install sphinx problem

Posted: 02 Sep 2008, 09:27
by RussH
Hiya,

sorry should have been clearer earlier - see the sphinx for cats installation utility and installation instructions

http://www.opencats.org/downloads/

Re: install sphinx problem

Posted: 02 Sep 2008, 11:41
by agus
Hi RussH

Thanks for the reply, i have try your advice, now working very well, when i am searching on candidates the result take average 0,11s - 0,4s,

Regards to you :)

Re: install sphinx problem

Posted: 03 Sep 2008, 03:26
by agus
hi all,

now my sphinx have a problem with start up, when my server reboot, searchd program not running, so i turn on from ./install.sh again, and than searchd program running, i have follow the instruction on sphinx install, the error i got :

[root@cats bin]# cp searchd /etc/rc.d/init.d/
cp: overwrite `/etc/rc.d/init.d/searchd'? y
[root@cats bin]# /sbin/chkconfig --add searchd
service searchd does not support chkconfig
[root@cats bin]# /etc/rc.d/init.d/searchd start
Sphinx 0.9.7
Copyright (c) 2001-2007, Andrew Aksyonoff

ERROR: malformed or unknown option near 'start'.

usage: searchd [--config file.conf] [--console]
[root@cats bin]# /etc/rc.d/init.d/searchd --config
[root@cats bin]# cd ..
[root@cats sphinx]# cd etc/
[root@cats etc]# ls
example.sql sphinx.conf sphinx.conf.dist sphinx.conf.old
[root@cats etc]# vi sphinx.conf
[root@cats etc]# /etc/rc.d/init.d/searchd start
Sphinx 0.9.7
Copyright (c) 2001-2007, Andrew Aksyonoff

ERROR: malformed or unknown option near 'start'.

usage: searchd [--config file.conf] [--console]
[root@cats etc]# /etc/rc.d/init.d/searchd --config=/www/htdocs/cats/sphinx/etc/sphinx.conf
Sphinx 0.9.7
Copyright (c) 2001-2007, Andrew Aksyonoff

ERROR: malformed or unknown option near '--config=/www/htdocs/cats/sphinx/etc/sphinx.conf'.

usage: searchd [--config file.conf] [--console]
[root@cats etc]# /etc/rc.d/init.d/searchd --config /www/htdocs/cats/sphinx/etc/sphinx.conf
Sphinx 0.9.7
Copyright (c) 2001-2007, Andrew Aksyonoff

using config file '/www/htdocs/cats/sphinx/etc/sphinx.conf'...
- loaded 587 stopwords from '/www/htdocs/cats/lib/sphinx/STOPWORDS'
WARNING: index 'cats': lock file '/www/htdocs/cats/lib/sphinx/index/cats.spl' exists - NOT SERVING
- loaded 587 stopwords from '/www/htdocs/cats/lib/sphinx/STOPWORDS'
WARNING: index 'catsdelta': lock file '/www/htdocs/cats/lib/sphinx/index/cats_delta.spl' exists - NOT SERVING
FATAL: no valid indexes to serve
shutdown complete

any suggestion?

Thanks for advance

Re: install sphinx problem

Posted: 03 Sep 2008, 23:15
by RussH
Hiya,

I think you should simply have changed the runlevel of searchd so that it automatically starts when the server does.

However it appears as though it's just a problem with the locks - can you delete them and restart searchd?

WARNING: index 'cats': lock file '/www/htdocs/cats/lib/sphinx/index/cats.spl' exists - NOT SERVING
- loaded 587 stopwords from '/www/htdocs/cats/lib/sphinx/STOPWORDS'
WARNING: index 'catsdelta': lock file '/www/htdocs/cats/lib/sphinx/index/cats_delta.spl' exists - NOT SERVING


also you may want to diff sphinx.conf and sphinx.conf.old - as perhaps sphinx.conf.old was the config file created by your first install of sphinx.

Re: install sphinx problem

Posted: 18 Apr 2009, 01:19
by RussH
Okay, I've finally gotten around to installing it myself... any questions?