inveniosoftware / invenio-app-rdm

Turn-key research data management platform.
https://inveniordm.docs.cern.ch
MIT License
108 stars 148 forks source link

Error received when searching for records (May release) #200

Closed carsonicator closed 4 years ago

carsonicator commented 4 years ago

I've installed the May release using the following procedure:

$ pipenv install invenio-cli
$ pipenv run invenio-cli --version  # returns invenio-cli, version 0.14.1
$ pipenv shell
$ invenio-cli init rdm
$ cd my-site
$ invenio-cli containerize --pre

Everything seems to have been installed correctly and completed successfully...

...
...
...
Creating may-release-2_es_1    ... done
Creating may-release-2_cache_1 ... done
Creating may-release-2_mq_1    ... done
Creating may-release-2_db_1    ... done
Creating may-release-2_web-ui_1  ... done
Creating may-release-2_web-api_1 ... done
Creating may-release-2_worker_1  ... done
Creating may-release-2_frontend_1 ... done
Creating database...
Creating files location...
Creating admin role...
Assigning superuser access to admin role...
Creating indices...
Collecting statics and assets...
Installing js dependencies...
Copying project statics and assets...
Building assets...
Instance running!
Visit https://127.0.0.1

$ invenio-cli demo --containers
$

...but when I looked at the running containers, I saw that Elasticsearch was unhealthy:

$ docker ps
CONTAINER ID        IMAGE                                                     COMMAND                  CREATED             STATUS                      PORTS                                                                                        NAMES
a5b28f4215df        may-release-2-frontend                                    "nginx -g 'daemon of…"   18 minutes ago      Up 18 minutes               0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:32793->80/tcp, 0.0.0.0:32792->443/tcp      may-release-2_frontend_1
693b7b546d4a        may-release-2                                             "bash -c 'uwsgi /opt…"   18 minutes ago      Up 18 minutes               0.0.0.0:32791->5000/tcp                                                                      may-release-2_web-api_1
a653dfb28fca        may-release-2                                             "bash -c 'celery wor…"   18 minutes ago      Up 18 minutes                                                                                                            may-release-2_worker_1
34cd7e0ce491        may-release-2                                             "bash -c 'uwsgi /opt…"   18 minutes ago      Up 18 minutes               0.0.0.0:32790->5000/tcp                                                                      may-release-2_web-ui_1
e70d2f703327        rabbitmq:3-management                                     "docker-entrypoint.s…"   18 minutes ago      Up 18 minutes               4369/tcp, 5671/tcp, 0.0.0.0:5672->5672/tcp, 15671/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp   may-release-2_mq_1
0c3b9d446c9d        postgres:9.6                                              "docker-entrypoint.s…"   18 minutes ago      Up 18 minutes               0.0.0.0:5432->5432/tcp                                                                       may-release-2_db_1
37ef25a56179        redis                                                     "docker-entrypoint.s…"   18 minutes ago      Up 18 minutes               0.0.0.0:6379->6379/tcp                                                                       may-release-2_cache_1
a5fdaa00ca62        docker.elastic.co/elasticsearch/elasticsearch-oss:7.2.0   "/usr/local/bin/dock…"   18 minutes ago      Up 18 minutes (unhealthy)   0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp                                               may-release-2_es_1

I loaded https://127.0.0.1/ in the browser and was able to successfully search the demo data:

Screen Shot 2020-06-16 at 4 28 40 PM

I ran several other searches of the demo data and didn't notice any errors or unexpected behavior. I then created my own record:

Screen Shot 2020-06-16 at 5 15 40 PM

When I tried to search for this, I got an error:

Screen Shot 2020-06-16 at 6 12 57 PM

There seemed to be a search indexing problem with Elasticsearch, because while I couldn't find the record with the text "Datalab" (shown above) or with my last name:

Screen Shot 2020-06-16 at 4 27 20 PM

...I was able to find it with my first name:

Screen Shot 2020-06-16 at 4 30 33 PM

As a side note, I ran through the install process a couple of times and while the search errors were similar in both cases, the specific search terms that worked vs. the ones that generated an error differed between the two tries.

carsonicator commented 4 years ago

Here are my Docker details...

Screen Shot 2020-06-17 at 4 01 07 PM

and preferences...

Screen Shot 2020-06-17 at 3 52 41 PM

and top screenshot:

Screen Shot 2020-06-17 at 4 02 52 PM
carsonicator commented 4 years ago

This issue seems to have been resolved in the last release.