Неправильно работает Sphinx
Настроил Sphinx по инструкции, теперь при searchd выдается
при searchd --stop
при indexer --all
Как можно это исправить?
Sphinx 2.0.7-id64-release (r3759) Copyright © 2001-2012, Andrew Aksyonoff Copyright © 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com) using config file '/etc/sphinxsearch/sphinx.conf'... listening on UNIX socket /var/run/sphinx.socket precaching index 'entityprefixtopicsIndex' WARNING: index 'entityprefixtopicsIndex': preload: failed to open /var/lib/sphinxsearch/data/entityprefix/topicsIndex.sph: No such file or directory; NOT SERVING precaching index 'entityprefixcommentsIndex' WARNING: index 'entityprefixcommentsIndex': preload: failed to open /var/lib/sphinxsearch/data/entityprefix/commentsIndex.sph: No such file or directory; NOT SERVING FATAL: no valid indexes to serve
при searchd --stop
Sphinx 2.0.7-id64-release (r3759) Copyright © 2001-2012, Andrew Aksyonoff Copyright © 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com) using config file '/etc/sphinxsearch/sphinx.conf'... FATAL: stop: failed to read valid pid from '/var/run/searchd.pid'
при indexer --all
Sphinx 2.0.7-id64-release (r3759) Copyright © 2001-2012, Andrew Aksyonoff Copyright © 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com) using config file '/etc/sphinxsearch/sphinx.conf'... indexing index 'entityprefixtopicsIndex'... ERROR: index 'entityprefixtopicsIndex': sql_connect: Access denied for user 'test'@'localhost' (using password: YES) (DSN=mysql://test:***@localhost:3306/testbase). total 0 docs, 0 bytes total 0.114 sec, 0 bytes/sec, 0.00 docs/sec indexing index 'entityprefixcommentsIndex'... ERROR: index 'entityprefixcommentsIndex': sql_connect: Access denied for user 'test'@'localhost' (using password: YES) (DSN=mysql://test:***@localhost:3306/testbase). total 0 docs, 0 bytes total 0.000 sec, 0 bytes/sec, 0.00 docs/sec total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg total 0 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
Как можно это исправить?
14 комментариев
в настройках
оставить то конечно можно, но лучше еще раз посмотреть и глянуть на права юзера под которым хотите заходить.
В Идеале — можно сделать отдельного юзера и дать ему доступ к базе