OK, ElasticSearch back online :
root@vps766554:/apps/fabmanager# docker-compose ps
Name Command State Ports
----------------------------------------------------------------------------------------------------------------
fabmanager_elasticsearch_1 /docker-entrypoint.sh elas ... Up 9200/tcp, 9300/tcp
fabmanager_fabmanager_1 /usr/bin/supervisord -c /e ... Up 3000/tcp
fabmanager_nginx_1 nginx -g daemon off; Up 0.0.0.0:444->443/tcp, 0.0.0.0:8000->80/tcp
fabmanager_postgres_1 docker-entrypoint.sh postgres Up 5432/tcp
fabmanager_redis_1 docker-entrypoint.sh redis ... Up 6379/tcp
root@vps766554:/apps/fabmanager#
Cela dit sur la page « Galerie de projets », toujours aucun projet visible et une erreur 500 dans les devtools :
application-b5fa11097fe38cde7dd49d80f2c74a90.js:40 Possibly unhandled rejection: {"data":{"status":"500","error":"Internal Server Error"},"status":500,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"/api/projects/search","params":{"search":{"q":""},"page":1,"per_page":16},"headers":{"Accept":"application/json, text/plain, */*","X-XSRF-TOKEN":"Rwl2zB9DV/vlBfPZ8i3DaaDwh5Coj8+0i9r4MtmCwVHwLCiTTYgbuCxa99tIGs/0cAeNh/46N+VOKzGodM525w=="},"cached":false},"statusText":"Internal Server Error","xhrStatus":"complete","resource":{}}
Possiblement quelque chose à relancer au niveau elasticsearch étant donné qu’il semble avoir été offline pendant un moment ?
Dans les logs fabmanager (/apps/fabmanager/log/app-stdout.log) :
Project Search (28.0ms) {index: "fablab", type: "projects", body: {query: {bool: {must: [], should: [{term: {state: "published"}}, {term: {author_id: 2}}, {term: {user_ids: 2}}], filter: []}}, sort: {created_at: {order: :desc}}}, size: 16, from: 0}
Completed 500 Internal Server Error in 41ms (ActiveRecord: 5.3ms | Elasticsearch: 28.0ms)
Elasticsearch::Transport::Transport::Errors::NotFound ([404] {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"fablab","index_uuid":"_na_","index":"fablab"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"fablab","index_uuid":"_na_","index":"fablab"},"status":404}):
app/controllers/api/projects_controller.rb:58:in `search'
Merci pour votre aide.
Cédric.