2015-12-10 7 views
2

J'ai des problèmes pour lancer la recherche de sphinx sur mon serveur Debian Wheezy.La recherche Sphinx ne s'arrête pas et ne se met pas correctement à jour

Actuellement, il y a 2 ports searchd en cours d'exécution

[email protected]:~# netstat -tlpn | grep search 
tcp  0  0 0.0.0.0:9306   0.0.0.0:*    LISTEN  11266/searchd 
tcp  0  0 0.0.0.0:9312   0.0.0.0:*    LISTEN  11266/searchd 

premier problème Quand je veux exécuter cette

sudo /usr/bin/indexer -c /etc/sphinxsearch/sphinx.conf beta_jobs --rotate 

Il me donne ceci:

Sphinx 2.2.10-id64-release (2c212e0) 
Copyright (c) 2001-2015, Andrew Aksyonoff 
Copyright (c) 2008-2015, Sphinx Technologies Inc (http://sphinxsearch.com) 

using config file '/etc/sphinxsearch/sphinx.conf'... 
indexing index 'beta_jobs'... 
collected 6 docs, 0.0 MB 
collected 0 attr values 
sorted 0.0 Mvalues, 100.0% done 
sorted 0.0 Mhits, 100.0% done 
total 6 docs, 867 bytes 
total 0.046 sec, 18747 bytes/sec, 129.73 docs/sec 
total 6 reads, 0.000 sec, 0.4 kb/call avg, 0.0 msec/call avg 
total 12 writes, 0.000 sec, 0.9 kb/call avg, 0.0 msec/call avg 
WARNING: failed to scanf pid from pid_file '/usr/local/sphinx/var/log/searchd/searchd.pid'. 
WARNING: indices NOT rotated. 

2 avertissements que je ne peux pas retirer ...

Deuxième problème: Et quand je veux arrêter mon searchd avec searchd --stop, il me dit ceci:

Sphinx 2.2.10-id64-release (2c212e0) 
Copyright (c) 2001-2015, Andrew Aksyonoff 
Copyright (c) 2008-2015, Sphinx Technologies Inc (http://sphinxsearch.com) 

using config file '/etc/sphinxsearch/sphinx.conf'... 
FATAL: stop: failed to read valid pid from '/usr/local/sphinx/var/log/searchd/searchd.pid' 

Je mise chmod 755 à essayé tout à l'intérieur /usr/local/sphinx/var/log/searchd/, ne fonctionne toujours pas.

Mon sphinx.conf est ici Sphinx.conf on gist

EDIT (réponse à @aeryaguzov commentaire)

[email protected]:~# sudo cat /usr/local/sphinx/var/log/searchd/searchd.pid 
[email protected]:~# ps aux | grep searchd 
root  11265 0.0 0.0 79692 1228 ?  S Nov30 0:00 /usr/bin/searchd 
root  11266 0.1 0.0 91404 4696 ?  Sl Nov30 26:54 /usr/bin/searchd 
root  22783 0.0 0.0 8292 632 pts/1 S+ 15:32 0:00 grep searchd 
+0

Le problème est avec votre fichier pid, donc ** cat /usr/local/sphinx/var/log/searchd/searchd.pid** et vérifiez le vrai pid de ** ps aux | grep searchd ** – aeryaguzov

+0

@aeryaguzov Je viens d'éditer ma question. J'ai vérifié le searchd.pid avec sudo nano aussi, il est vide. – Kalzem

Répondre

2

D'accord, il semble que, pour certaines raisons inconnues la searchd.pid a été mal créé par searchd (qui est en cours d'exécution). J'ai donc décidé de supprimer le search.pid et de kill searchd. Puis j'ai réindexé et j'ai commencé à chercher sans problème.

+0

tuer searchd et reindex travaillé – MontrealDevOne