И та же ошибка
Fatal error: Uncaught exception 'Exception' with message 'searchd error: client version is higher than daemon version (client is v.1.29,
daemon is v.1.25)' in ...
Возможно результат итот же из-за того что при выполнении команд был вопрос:
Configuration file '/etc/sphinxsearch/sphinx.conf'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** sphinx.conf (Y/I/N/O/D/Z) [default=N] ?
Я жал Enter по умолчанию ... А что мне нужно было выбрать?
Пользователь решил продолжить мысль 28 Сентября 2014, 11:45:45:
Бонька,
Спасибо, я еще раз выполнил команды и эта ошибка ушла. Но после того как я убрал ряд ошибок из файла конфигурации
то выполняю без ошибок, но с варнингами:
# su sphinxsearch -c 'indexer --all'
Sphinx 2.2.4-id64-release (r4806)
Copyright (c) 2001-2014, Andrew Aksyonoff
Copyright (c) 2008-2014, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/etc/sphinxsearch/sphinx.conf'...
indexing index 'tour_description'...
WARNING: index 'tour_description': dict=keywords and prefixes and morphology enabled, forcing index_exact_words=1
WARNING: attribute 'id' not found - IGNORING
WARNING: Attribute count is 0: switching to none docinfo
collected 39 docs, 0.0 MB
sorted 0.0 Mhits, 100.0% done
total 39 docs, 46 bytes
total 0.009 sec, 5052 bytes/sec, 4283.83 docs/sec
total 3 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
total 9 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
Не очень понятные варнинги особенно этот
WARNING: attribute 'id' not found - IGNORING
Но вроде это не критично?
Но дальше выскакивает ошибка :
Fatal error: Uncaught exception 'Exception' with message 'connection to localhost:3312 failed (errno=111, msg=Connection refused)' in /mnt/diskD_Work/wwwroot/ci22/application/models/mcms_item.php on line 68
Не очень понятно откуда в ошибке
localhost:3312
параметрв подключения описаны в /etc/sphinxsearch/sphinx.conf как :
# Источник-родитель для всех остальных источников. Здесь указываются параметры доступа
# к базе данных сайта
source lsParentSource
{
type = mysql
sql_host = localhost
sql_user = root
sql_pass = 1
sql_port = 3306
sql_db = ci22