Nikita Noark5 Core 0.7 med ElasticSearch 8.1.3
Ole Aamot
ole at aamotsoftware.no
Sat Apr 30 20:18:52 CEST 2022
[ole at fedora ~]$ cat /etc/yum.repos.d/elasticsearch.repo
[elasticsearch]
name=Elasticsearch repository for 8.x packages
baseurl=https://artifacts.elastic.co/packages/8.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=0
autorefresh=1
type=rpm-md
sudo dnf install --enablerepo=elasticsearch elasticsearch
[ole at fedora ~]$ sudo service elasticsearch stop
Redirecting to /bin/systemctl stop elasticsearch.service
[ole at fedora ~]$ sudo service elasticsearch start
Redirecting to /bin/systemctl start elasticsearch.service
[ole at fedora ~]$ git clone
https://gitlab.com/OsloMet-ABI/nikita-noark5-core
[ole at fedora ~]$ cd nikita-noark5-core/
[ole at fedora ~]$ make run
[...]
Error starting ApplicationContext. To display the conditions report
re-run your application with 'debug' enabled.
2022-04-30 20:16:16.164 ERROR 33206 --- [ main]
o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'entityManagerFactory' defined in class path resource
[org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]:
Invocation of init method failed; nested exception is
javax.persistence.PersistenceException: [PersistenceUnit: default]
Unable to build Hibernate SessionFactory; nested exception is
org.hibernate.search.util.common.SearchException: HSEARCH000520:
Hibernate Search encountered failures during bootstrap. Failures:
default backend:
failures:
- HSEARCH400080: Unable to detect the Elasticsearch version
running on the cluster: HSEARCH400007: Elasticsearch request failed:
Connection refused
Request: GET with parameters {}
Response: (no response)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804)
~[spring-beans-5.3.13.jar:5.3.13]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
~[spring-beans-5.3.13.jar:5.3.13]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
~[spring-beans-5.3.13.jar:5.3.13]
at
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
~[spring-beans-5.3.13.jar:5.3.13]
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
~[spring-beans-5.3.13.jar:5.3.13]
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
~[spring-beans-5.3.13.jar:5.3.13]
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
~[spring-beans-5.3.13.jar:5.3.13]
at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154)
~[spring-context-5.3.13.jar:5.3.13]
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908)
~[spring-context-5.3.13.jar:5.3.13]
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
~[spring-context-5.3.13.jar:5.3.13]
at
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
~[spring-boot-2.6.1.jar:2.6.1]
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:730)
~[spring-boot-2.6.1.jar:2.6.1]
at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412)
~[spring-boot-2.6.1.jar:2.6.1]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:302)
~[spring-boot-2.6.1.jar:2.6.1]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1301)
~[spring-boot-2.6.1.jar:2.6.1]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1290)
~[spring-boot-2.6.1.jar:2.6.1]
at nikita.N5CoreApp.main(N5CoreApp.java:39) ~[classes/:na]
Caused by: javax.persistence.PersistenceException: [PersistenceUnit:
default] Unable to build Hibernate SessionFactory; nested exception is
org.hibernate.search.util.common.SearchException: HSEARCH000520:
Hibernate Search encountered failures during bootstrap. Failures:
default backend:
failures:
- HSEARCH400080: Unable to detect the Elasticsearch version
running on the cluster: HSEARCH400007: Elasticsearch request failed:
Connection refused
Request: GET with parameters {}
Response: (no response)
at
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:421)
~[spring-orm-5.3.13.jar:5.3.13]
at
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396)
~[spring-orm-5.3.13.jar:5.3.13]
at
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341)
~[spring-orm-5.3.13.jar:5.3.13]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863)
~[spring-beans-5.3.13.jar:5.3.13]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800)
~[spring-beans-5.3.13.jar:5.3.13]
... 16 common frames omitted
Caused by: org.hibernate.search.util.common.SearchException:
HSEARCH000520: Hibernate Search encountered failures during bootstrap.
Failures:
default backend:
failures:
- HSEARCH400080: Unable to detect the Elasticsearch version
running on the cluster: HSEARCH400007: Elasticsearch request failed:
Connection refused
Request: GET with parameters {}
Response: (no response)
at
org.hibernate.search.engine.reporting.spi.RootFailureCollector.checkNoFailure(RootFailureCollector.java:50)
~[hibernate-search-engine-6.0.6.Final.jar:6.0.6.Final]
at
org.hibernate.search.engine.common.impl.SearchIntegrationBuilderImpl.prepareBuild(SearchIntegrationBuilderImpl.java:243)
~[hibernate-search-engine-6.0.6.Final.jar:6.0.6.Final]
at
org.hibernate.search.mapper.orm.bootstrap.impl.HibernateOrmIntegrationBooterImpl.doBootFirstPhase(HibernateOrmIntegrationBooterImpl.java:259)
~[hibernate-search-mapper-orm-6.0.6.Final.jar:6.0.6.Final]
at
org.hibernate.search.mapper.orm.bootstrap.spi.HibernateOrmIntegrationBooterBehavior.bootFirstPhase(HibernateOrmIntegrationBooterBehavior.java:17)
~[hibernate-search-mapper-orm-6.0.6.Final.jar:6.0.6.Final]
at
org.hibernate.search.mapper.orm.bootstrap.impl.HibernateOrmIntegrationBooterImpl.lambda$bootNow$7(HibernateOrmIntegrationBooterImpl.java:218)
~[hibernate-search-mapper-orm-6.0.6.Final.jar:6.0.6.Final]
at java.base/java.util.Optional.orElseGet(Optional.java:364) ~[na:na]
at
org.hibernate.search.mapper.orm.bootstrap.impl.HibernateOrmIntegrationBooterImpl.bootNow(HibernateOrmIntegrationBooterImpl.java:218)
~[hibernate-search-mapper-orm-6.0.6.Final.jar:6.0.6.Final]
at
java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
~[na:na]
at
java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
~[na:na]
at
java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2147)
~[na:na]
at
org.hibernate.search.mapper.orm.bootstrap.impl.HibernateSearchSessionFactoryObserver.sessionFactoryCreated(HibernateSearchSessionFactoryObserver.java:41)
~[hibernate-search-mapper-orm-6.0.6.Final.jar:6.0.6.Final]
at
org.hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated(SessionFactoryObserverChain.java:35)
~[hibernate-core-5.6.1.Final.jar:5.6.1.Final]
at
org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:394)
~[hibernate-core-5.6.1.Final.jar:5.6.1.Final]
at
org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:471)
~[hibernate-core-5.6.1.Final.jar:5.6.1.Final]
at
org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1498)
~[hibernate-core-5.6.1.Final.jar:5.6.1.Final]
at
org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58)
~[spring-orm-5.3.13.jar:5.3.13]
at
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365)
~[spring-orm-5.3.13.jar:5.3.13]
at
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409)
~[spring-orm-5.3.13.jar:5.3.13]
... 20 common frames omitted
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 50.146 s
[INFO] Finished at: 2022-04-30T20:16:16+02:00
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.springframework.boot:spring-boot-maven-plugin:2.6.1:run
(default-cli) on project nikita-noark5-core: Application finished with
exit code: 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
make: *** [Makefile:11: run] Error 1
--
Mvh,
Ole Aamot
ole at aamotsoftware.no
Aamot Software - en NHO-registrert IT-bedrift
www.aamotsoftware.no
More information about the nikita-noark
mailing list