erreur 500 sur ajout de destinataire (autocomplete ES ?)

Bonjour,

Lorsque je veux écrire un mail depuis le webmail; j’ai une popup qui s’ouvre avec le formulaire de composition d’un nouveau mail. Dans cette popup, lorsque je veux ajouter un destinataire (champ “A”), j’obtiens une erreur 500 avec, dans les logs :

[30-Oct-2015 14:23:29 UTC] PHP Fatal error:  Uncaught exception 'BlueMind_Service_BlueMind_ResponseException' with message 'No node available' in /usr/share/bm-webmail/bm_libs/BlueMind/Service/BlueMind.php:290
Stack trace:
#0 /usr/share/bm-webmail/bm_libs/BlueMind/Service/BlueMind/Contact.php(110): BlueMind_Service_BlueMind->throwError(Object(SimpleXMLElement))
#1 /usr/share/bm-webmail/plugins/bm_addressbooks/bm_people_source.php(164): BlueMind_Service_BlueMind_Contact->searchContact(Object(BlueMind_Model_Contact_Query), 10)
#2 /usr/share/bm-webmail/plugins/bm_addressbooks/bm_people_source.php(157): bm_people_source->doSearchQuery(Object(BlueMind_Model_Contact_Query))
#3 /usr/share/bm-webmail/program/steps/mail/autocomplete.inc(70): bm_people_source->search(Array, 'test@test.com', 0, true, true, 'email')
#4 /usr/share/bm-webmail/index.php(286): include('/usr/share/bm-w...')
#5 {main}
  thrown in /usr/share/bm-webmail/bm_libs/BlueMind/Service/BlueMind.php on line 290

Ceci apparait donc lorsque l’autocomplete est sensé me proposer un contact. Je suppose que le “node” qui n’est pas disponible est celui d’ElasticSearch ?

Comment régler ce problème ?

Merci,

Vous utilisez quelle version de BlueMind ? Quelle distribution ?
Combien avez-vous d’utilisateurs et de de RAM ?

Que donne la commande:

$ ps auwx | grep bm-elasticsearch

Avant toute chose, merci :slight_smile:

Alors, la commande donne ceci :

root@mail:/var/log/bm-webmail# ps auwx | grep bm-elasticsearch
root     17288  0.0  0.0   7832   880 pts/0    S+   15:39   0:00 grep bm-elasticsearch

8 Go de RAM;
Debian Wheezy (4 cores)
11 utilisateurs (et 7 boites partagées)

De rien, avec plaisir !
Quelle version de BueMind utilisez-vous ?

Pouvez-vous exécuter:

# bmctl restart

Que donne ensuite:

ps auwx | grep bm-elasticsearch
root@mail:/var/log/bm-webmail# bmctl restart
Stop Blue Mind Services
Waiting for Blue Mind EAS Server shutdown...
Waiting for Blue Mind dav Server shutdown...
Waiting for Blue Mind tika Server shutdown..
Waiting for Blue Mind hps Server shutdown..
Waiting for Blue Mind ips Server shutdown..
Waiting for Blue Mind xmpp Server shutdown...
Waiting for Blue Mind Tomcat shutdown......
Waiting for Blue Mind core Server shutdown...
Waiting for Blue Mind locator Server shutdown...
Waiting for Blue Mind lmtpd server shutdown..
Blue Mind ElasticSearch Server not running.
Waiting for Blue Mind MQ Server shutdown..
Waiting for Blue Mind ysnp Server shutdown..
Start Blue Mind Services
Cleaning OSGi configuration area...
newrelic support is not enabled
2015-10-30 16:27:11,876 [main] n.b.p.PimpMyRam INFO - 2304MB is allocated for all heaps.
2015-10-30 16:27:11,879 [main] n.b.p.PimpMyRam INFO - 95% of spare memory will be allocated to java components
2015-10-30 16:27:11,896 [main] n.b.p.PimpMyRam INFO - Total from JMX: 8008MB
2015-10-30 16:27:11,896 [main] n.b.p.PimpMyRam INFO - 1956MB initial spare.
2015-10-30 16:27:11,896 [main] n.b.p.PimpMyRam INFO - Adding 353MB to spare because bm-milter is missing
2015-10-30 16:27:11,897 [main] n.b.p.PimpMyRam INFO - 353MB Reallocated because of missing components
2015-10-30 16:27:11,897 [main] n.b.p.PimpMyRam INFO - 2309MB will be distributed between JVMs
2015-10-30 16:27:11,897 [main] n.b.p.PimpMyRam INFO -   * bm-core gets +277MB for a total of 533MB
2015-10-30 16:27:11,965 [main] n.b.p.PimpMyRam INFO -   * bm-node gets +0MB for a total of 128MB
2015-10-30 16:27:11,966 [main] n.b.p.PimpMyRam INFO -   * bm-eas gets +346MB for a total of 474MB
2015-10-30 16:27:11,966 [main] n.b.p.PimpMyRam INFO -   * bm-ips gets +184MB for a total of 312MB
2015-10-30 16:27:11,967 [main] n.b.p.PimpMyRam INFO -   * bm-elasticsearch gets +923MB for a total of 1179MB
2015-10-30 16:27:11,967 [main] n.b.p.PimpMyRam INFO -   * bm-mq gets +115MB for a total of 243MB
2015-10-30 16:27:11,968 [main] n.b.p.PimpMyRam INFO -   * bm-tika gets +0MB for a total of 128MB
2015-10-30 16:27:11,968 [main] n.b.p.PimpMyRam INFO -   * bm-xmpp gets +0MB for a total of 128MB
2015-10-30 16:27:11,968 [main] n.b.p.PimpMyRam INFO -   * ysnp gets +0MB for a total of 128MB
2015-10-30 16:27:11,969 [main] n.b.p.PimpMyRam INFO -   * bm-lmtpd gets +115MB for a total of 371MB
2015-10-30 16:27:11,969 [main] n.b.p.PimpMyRam INFO - bm-milter is not installed, not configuring.
2015-10-30 16:27:11,969 [main] n.b.p.PimpMyRam INFO -   * bm-dav gets +0MB for a total of 128MB
2015-10-30 16:27:11,970 [main] n.b.p.PimpMyRam INFO -   * bm-locator gets +0MB for a total of 128MB
2015-10-30 16:27:11,970 [main] n.b.p.PimpMyRam INFO -   * bm-hps gets +115MB for a total of 243MB
Blue Mind MQ Server started: 19359
Blue Mind locator Server started: 19409
Starting server Blue Mind core (PID: 19465): done
Blue Mind ysnp started: 19549
Blue Mind ElasticSearch Server started: 19582
Blue Mind lmtpd server started: 19913
Blue Mind hps Server started: 19966
Blue Mind EAS Server started: 19973
Blue Mind tika Server started: 19980
newrelic support is not enabled
Using CATALINA_BASE:   /usr/share/tomcat
Using CATALINA_HOME:   /usr/share/tomcat
Using CATALINA_TMPDIR: /tmp
Using JRE_HOME:       /usr/lib/jvm/bm-jdk
Starting server Blue Mind Tomcat: ps auwx | grep bm-elasticsearch
done
Blue Mind xmpp Server started: 20195
Blue Mind ips Server started: 20243
Blue Mind dav Server started: 20251
root@mail:/var/log/bm-webmail# ps auwx | grep bm-elasticsearch
root     19582 74.2  2.4 1777332 203796 pts/0  Sl   16:27   0:11 /usr/lib/jvm/bm-jdk/bin/java -Xloggc:/var/log/garbage-collector/bm-elasticsearch/gc.pause.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=4 -XX:GCLogFileSize=4M -XX:+PrintGCApplicationStoppedTime -server -Xms1179m -Xmx1179m -XX:MaxPermSize=128m -Xss256k -XX:MaxDirectMemorySize=1051m -XX:+UseCompressedOops -XX:+UseG1GC -XX:MaxGCPauseMillis=500 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log -Djava.net.preferIPv4Stack=true -Delasticsearch -Des.pidfile=/var/run/bm-elasticsearch.pid -Des.path.home=/usr/share/bm-elasticsearch -cp :/usr/share/bm-elasticsearch/lib/elasticsearch-1.0.3.jar:/usr/share/bm-elasticsearch/lib/*:/usr/share/bm-elasticsearch/lib/sigar/* org.elasticsearch.bootstrap.Elasticsearch
root     20256  0.0  0.0   7836   880 pts/0    S+   16:27   0:00 grep bm-elasticsearch

… Et en effet, c’est réglé !

Merci de l’aide (et bon we…)

Votre service ElasticSearch s’était stoppé. Ce n’est pas censé arriver, si ça se reproduit n’hésitez pas à revenir vers nous pour un diagnostic plus poussé.