Cuando hago click en "index now" aparece este error: Couldn't index items. Check the logs for details.
Versiones instaladas:
Search API 8.x-1.3
Elasticsearch-connector 8.x-5.0-alpha1
Elasticsearch 2.4.0
Seleccioné la opción "Make this cluster default connection" como sugiere el issue #2713227 y sigue dando error
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | elasticsearch_connector-could_not_index_items-2906783-6-D8.patch | 593 bytes | skek |
| #3 | recent-log.png | 230.52 KB | mariana.romaldi@unc.edu.ar |
| index-elasticsearch.png | 114.47 KB | mariana.romaldi@unc.edu.ar | |
| index_now.png | 163.16 KB | mariana.romaldi@unc.edu.ar | |
| search_api.png | 150.01 KB | mariana.romaldi@unc.edu.ar |
Comments
Comment #2
juampynr commented@mariana.romaldi@unc.edu.ar: did you actually check the logs? Unless you have disabled dblog module, there should be further info of what is going on at Admin > Reports > Recent log messages.
Comment #3
mariana.romaldi@unc.edu.ar commentedthanks for answering @juampynr
attachment screenshot of recent log
Comment #4
zulljin commentedI had a similar problem, when I clicked 'Clear all indexed data' on page search index, I got this error:
My DB name - ID_site, when i changed to id_site, everything worked fine. If you have capital letters in your database name, simply change the name using lowercase letters.
Comment #5
zulljin commentedComment #6
skek commented@Zulljin,
Thank you for the input.
Can you please apply the attached patch and check again?
It seems we need to lower case the index name because of Elasticsearch server requirement.
Comment #7
zulljin commentedskek
Yes, patch has fixed this issue, thanks.
Comment #8
skek commented@Zulljin,
We should mark the issues to RTBC when checked and confirm it is working.
We are marking it with Fixed, when it has been committed to the dev version.
@mariana.romaldi@unc.edu.ar
Most probably your problem is connected with Elasticsearch server version.
This module has been designed to work with 5.x for Elasticsearch server but you are running 2.
Can you please check it with 5.x?
Comment #10
skek commented@mariana.romaldi@unc.edu.ar please fill free to reopen it but I think the problem here is tightly connected with your Elasticsearch version.
Comment #11
zulljin commentedskek,
Maybe necessary added logs in watchdog when happening this or similar errors? Because it is very difficult debugging without logs.
The logic is: get errors from ElasticSearch and add them to watchdog Drupal.
Comment #13
andrezstar commentedNot working for me after applying the patch