Do not forget to reindex all indexes by running: indexer --all
Job for sphinxsearch.service failed because a timeout was exceeded.
See "systemctl status sphinxsearch.service" and "journalctl -xe" for details.
invoke-rc.d: initscript sphinxsearch, action "start" failed.
● sphinxsearch.service - SphinxSearch Search Engine
Loaded: loaded (/lib/systemd/system/sphinxsearch.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Sat 2018-10-13 08:53:09 EDT; 6ms ago
Process: 17708 ExecStart=/usr/bin/searchd --config /etc/sphinxsearch/sphinx.conf (code=exited, status=0/SUCCESS)
Process: 17706 ExecStartPre=/bin/chown sphinxsearch.sphinxsearch /var/run/sphinxsearch (code=exited, status=0/SUCCESS)
Process: 17704 ExecStartPre=/bin/mkdir -p /var/run/sphinxsearch (code=exited, status=0/SUCCESS)
Tasks: 8 (limit: 4915)
CGroup: /system.slice/sphinxsearch.service
├─905 /usr/bin/searchd --config /etc/sphinxsearch/sphinx.conf
└─908 /usr/bin/searchd --config /etc/sphinxsearch/sphinx.conf
Oct 13 08:51:39 wiki searchd[17708]: Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Oct 13 08:51:39 wiki searchd[17708]: FATAL: failed to lock pid file '/var/log/sphinx/searchd.pid': Resource temporarily unavai…running?)
Oct 13 08:51:39 wiki searchd[17708]: Sphinx 2.2.11-id64-release (95ae9a6)
Oct 13 08:51:39 wiki searchd[17708]: Copyright (c) 2001-2016, Andrew Aksyonoff
Oct 13 08:51:39 wiki searchd[17708]: Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Oct 13 08:51:39 wiki systemd[1]: sphinxsearch.service: PID file /var/run/sphinxsearch/searchd.pid not readable (yet?) after s… directory
Oct 13 08:53:09 wiki systemd[1]: sphinxsearch.service: Start operation timed out. Terminating.
Oct 13 08:53:09 wiki systemd[1]: Failed to start SphinxSearch Search Engine.
Oct 13 08:53:09 wiki systemd[1]: sphinxsearch.service: Unit entered failed state.
Oct 13 08:53:09 wiki systemd[1]: sphinxsearch.service: Failed with result 'timeout'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package sphinxsearch (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
sphinxsearch
E: Sub-process /usr/bin/dpkg returned an error code (1)
chmod 777 /var/run/sphinxsearch/
- did not fix.
updatedb
- locate searchd.pid
/var/log/sphinx/searchd.pid
- So ....
vi /lib/systemd/system/sphinxsearch.service
- change this:
PIDFile=/var/log/sphinx/searchd.pid
- rebooted then
# systemctl status sphinxsearch
● sphinxsearch.service - SphinxSearch Search Engine
Loaded: loaded (/lib/systemd/system/sphinxsearch.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-10-13 09:20:30 EDT; 1min 31s ago
Process: 828 ExecStart=/usr/bin/searchd --config /etc/sphinxsearch/sphinx.conf (code=exited, status=0/SUCCESS)
Process: 824 ExecStartPre=/bin/chown sphinxsearch.sphinxsearch /var/run/sphinxsearch (code=exited, status=0/SUCCESS)
Process: 819 ExecStartPre=/bin/mkdir -p /var/run/sphinxsearch (code=exited, status=0/SUCCESS)
Main PID: 855 (searchd)
Tasks: 8 (limit: 4915)
CGroup: /system.slice/sphinxsearch.service
├─854 /usr/bin/searchd --config /etc/sphinxsearch/sphinx.conf
└─855 /usr/bin/searchd --config /etc/sphinxsearch/sphinx.conf
Oct 13 09:20:30 wiki searchd[828]: Copyright (c) 2001-2016, Andrew Aksyonoff
Oct 13 09:20:30 wiki searchd[828]: Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Oct 13 09:20:30 wiki searchd[828]: listening on all interfaces, port=9312
Oct 13 09:20:30 wiki searchd[828]: Sphinx 2.2.11-id64-release (95ae9a6)
Oct 13 09:20:30 wiki searchd[828]: Copyright (c) 2001-2016, Andrew Aksyonoff
Oct 13 09:20:30 wiki searchd[828]: Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Oct 13 09:20:30 wiki searchd[828]: precaching index 'wiki_main'
Oct 13 09:20:30 wiki searchd[828]: [249B blob data]
Oct 13 09:20:30 wiki systemd[1]: sphinxsearch.service: Supervising process 855 which is not our child. We'll most likely not notice when
Oct 13 09:20:30 wiki systemd[1]: Started SphinxSearch Search Engine.