Please describe the issue you're having
If you accept the answer, please mark the topic as [SOLVED] by clicking the tick.

Moderators: RussH, cptr13

Forum rules: Just please remember to play nicely once you walk through the door. You can disagree with us, or any other commenters in this forum, but respect our space and keep your comments directed to the topic at hand.
By agus
#457
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
By agus
#459
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 :)
By agus
#466
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
User avatar
By RussH
#467
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.
User avatar
By RussH
#735
Okay, I've finally gotten around to installing it myself... any questions?

It's essential to keep these synchronized to ensur[…]

Export part in Job Order order search

Same problem as mine. Maybe you're right, I'll che[…]

The error message you're encountering indicates th[…]

Errors restoring mysqldump backup

doesnot work for me