Closed JeroenAdam closed 1 year ago
Workaround: launch your Jhipster v7.9.2 application with Elastisearch v7.x in order to get the indexes correctly created, then launch v8.0 beta1 with your Elastisearch v7.x still running and save some entitties, the search box will work fine.
Not an ES expert but sounds more like a Elastic issue. @JeroenAdam if you believe this is something we can fix in JHipster side, let us know and we can reopen this
I am having the same issue on v8.0.0. Unfortunately, it does not help to launch Elastisearch v7.x generated with Jhipster v7.9.2.
Same issue here, also with Jhipster 8.0.0.
Forget about the below. I was mislead. Sorry for the confusion. My issue is now documented in https://github.com/jhipster/generator-jhipster/issues/24206
What I diagnosed so far:
I'm givin my JDL as a reference:
application { config { jhipsterVersion "8.0.0" creationTimestamp 1699883023373 baseName espaginationconflict packageName com.mycompany.myapp applicationType monolith authenticationType jwt buildTool maven cacheProvider ehcache enableHibernateCache true withAdminUi true websocket spring-websocket messageBroker false serviceDiscoveryType false microfrontends [] reactive false searchEngine elasticsearch databaseType sql devDatabaseType h2Disk prodDatabaseType mariadb clientFramework angular clientTheme journal clientThemeVariant primary enableTranslation true nativeLanguage en languages [en, de] enableSwaggerCodegen true testFrameworks [gatling, cucumber] } entities * } entity A { firstName String lastName String } entity B { shortName String longName String } service all with serviceImpl dto all with mapstruct filter all paginate all with pagination except B search all with elasticsearch
@user-0209 please open a new issue.
@user-0209 Thank you very much for your reply!
Your JDL still contains pagination, but you said that everything works only without pagination. So basically it should contain no pagination at all, like the config below, yes?
service all with serviceImpl dto all with mapstruct filter all //paginate all with pagination except B <--- removed this search all with elasticsearch
As requested I submitted a new issue: https://github.com/jhipster/generator-jhipster/issues/24206 During preparation of the report it turned out, that pagination was not the issue. Instead, repeating the generatin/building/testing steps I found, that cleaning up in between is a bit difficult. I deleted the entire application folder (including hidden files), removed the ES container and its volume and restarted the browser (to empty the cache). Hence, I have to withdraw my comment above. The new issue has the details.
The issue seems to be with new elasticsearch. As a workaround I've used elasticsearch version from Jhipster 7 and it works very good. Version 7.17.4 –> OK, version 8.7.1 -> NOT OK.
Error still persistent on jHipster v8.4. It does not help to change to use ElasticSearch 7.x, 8.x also.
I created a new v8.0-beta app and try to get the search box working, for any entity. It worked fine on v7.9.2. I tried Elasticsearch v8.5.3 on a local single-node cluster and I tried with the JHipster provided docker container. Both result in the exact same error: "all shards failed" in the Jhipster logs. Even though I assured the shards being assigned and running (in the case of my local running single-node cluster), the docker container should be pre-configured.
Complete error
Kibana calls to get the shards assigned and started
.yo-rc.json file
my .jdl
OS & other:: Windows 11, node v18.13.0, npm: 8.19.3, OpenJDK 17.0.2, Docker v20.10.17