IHTSDO / snowstorm

Scalable SNOMED CT Terminology Server using Elasticsearch
Other
204 stars 80 forks source link

Connection refuse using command line for Loading Release Snapshot #514

Closed MaryamRazavi closed 1 year ago

MaryamRazavi commented 1 year ago

Hi, I see that "connection refused: no further information" when I tried to load Release snapshot. How can I fix this problem. Thank you in advance :)

C:\Users\Administratör\Downloads>java -Xms2g -Xmx4g -jar snowstorm-8.1.0.jar import=C:\Users\Administratör\Downloads\SnomedCT_InternationalRF2_PRODUCTION_20230430T120000Z.zip


/_ / | _ __ | |_ _\/_/ _ | ' \ / \ \ /\ / / | / _ | '| ' ` \ //\\ ) | | | | () \ V V /\ \ || (_) | | | | | | | | \/ |/|| ||_/ _/_/ |/\\/|| || || ||

:: Snowstorm, SNOMED CT Terminology Server :: (v8.1.0)

2023-05-22 15:32:03.751 INFO 3196 --- [ main] o.snomed.snowstorm.SnowstormApplication : Starting SnowstormApplication v8.1.0 using Java 11.0.18 on B29221 with PID 3196 (C:\Users\Administrat÷r\Downloads\snowstorm-8.1.0.jar started by Administrat÷r in C:\Users\Administrat÷r\Downloads) 2023-05-22 15:32:03.767 INFO 3196 --- [ main] o.snomed.snowstorm.SnowstormApplication : No active profile set, falling back to 1 default profile: "default" 2023-05-22 15:32:09.819 INFO 3196 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode! 2023-05-22 15:32:09.819 INFO 3196 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode. 2023-05-22 15:32:10.303 INFO 3196 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 460 ms. Found 25 Elasticsearch repository interfaces. 2023-05-22 15:32:11.100 INFO 3196 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode! 2023-05-22 15:32:11.115 INFO 3196 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode. 2023-05-22 15:32:11.131 INFO 3196 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 19 ms. Found 0 Reactive Elasticsearch repository interfaces. 2023-05-22 15:32:11.932 INFO 3196 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=e9f6b9d0-8d6a-37a1-a60b-7fc787b540e6 2023-05-22 15:32:13.888 INFO 3196 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'permissionEvaluator' of type [org.snomed.snowstorm.config.MethodSecurityConfig$1] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2023-05-22 15:32:13.888 INFO 3196 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'methodSecurityConfig' of type [org.snomed.snowstorm.config.MethodSecurityConfig$$EnhancerBySpringCGLIB$$c0b58cbb] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2023-05-22 15:32:14.572 INFO 3196 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) 2023-05-22 15:32:14.603 INFO 3196 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2023-05-22 15:32:14.603 INFO 3196 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.63] 2023-05-22 15:32:14.759 INFO 3196 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2023-05-22 15:32:14.759 INFO 3196 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 10820 ms 2023-05-22 15:32:14.929 INFO 3196 --- [ main] ca.uhn.fhir.util.VersionUtil : HAPI FHIR version 5.6.3-si - Rev 996095adf0 2023-05-22 15:32:15.351 INFO 3196 --- [ main] ication$$EnhancerBySpringCGLIB$$4b8fe99e : Elasticsearch host: http://localhost:9200 2023-05-22 15:32:15.351 INFO 3196 --- [ main] ication$$EnhancerBySpringCGLIB$$4b8fe99e : Elasticsearch index prefix: 2023-05-22 15:32:15.695 INFO 3196 --- [ main] o.s.s.config.elasticsearch.IndexConfig : Index name prefix: '' 2023-05-22 15:32:16.023 INFO 3196 --- [ main] o.s.d.elasticsearch.support.VersionInfo : Version Spring Data Elasticsearch: 4.1.16 2023-05-22 15:32:16.023 INFO 3196 --- [ main] o.s.d.elasticsearch.support.VersionInfo : Version Elasticsearch Client in build: 7.10.0 2023-05-22 15:32:16.023 INFO 3196 --- [ main] o.s.d.elasticsearch.support.VersionInfo : Version Elasticsearch Client used: 7.10.0 2023-05-22 15:32:16.522 WARN 3196 --- [ main] .s.d.e.r.s.SimpleElasticsearchRepository : Cannot create index: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:16.679 WARN 3196 --- [ main] .s.d.e.r.s.SimpleElasticsearchRepository : Cannot create index: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:16.726 WARN 3196 --- [ main] .s.d.e.r.s.SimpleElasticsearchRepository : Cannot create index: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:16.788 WARN 3196 --- [ main] .s.d.e.r.s.SimpleElasticsearchRepository : Cannot create index: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:16.819 WARN 3196 --- [ main] .s.d.e.r.s.SimpleElasticsearchRepository : Cannot create index: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:16.866 WARN 3196 --- [ main] .s.d.e.r.s.SimpleElasticsearchRepository : Cannot create index: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:16.960 WARN 3196 --- [ main] .s.d.e.r.s.SimpleElasticsearchRepository : Cannot create index: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:17.944 INFO 3196 --- [heManagerDaemon] o.s.s.c.d.s.i.IdentifierCacheManager : Identifier cache manager polling commencing with 10 second period. 2023-05-22 15:32:17.975 WARN 3196 --- [ main] .s.d.e.r.s.SimpleElasticsearchRepository : Cannot create index: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:17.944 INFO 3196 --- [heManagerDaemon] o.s.s.c.d.s.i.IdentifierCacheManager : Topping up IdCache(0 - 02) by 4000 2023-05-22 15:32:18.069 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect en-ie - refset: 21000220103 2023-05-22 15:32:18.069 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect en-nhs-clinical - refset: 999001261000000100 2023-05-22 15:32:18.069 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect de - refset: 722130004 2023-05-22 15:32:18.069 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect nb-no - refset: 61000202103 2023-05-22 15:32:18.085 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect en-ca - refset: 19491000087109 2023-05-22 15:32:18.085 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect en-us - refset: 900000000000509007 2023-05-22 15:32:18.085 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect en-int-gmdn - refset: 608771002 2023-05-22 15:32:18.085 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect en-nhs-dmd - refset: 999000671000001103 2023-05-22 15:32:18.085 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect fr - refset: 722131000 2023-05-22 15:32:18.085 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect nl-be - refset: 31000172101 2023-05-22 15:32:18.085 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect nl-nl - refset: 31000146106 2023-05-22 15:32:18.085 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect en-uk-ext - refset: 999001251000000103 2023-05-22 15:32:18.085 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect en-nhs-pharmacy - refset: 999000691000001104 2023-05-22 15:32:18.085 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect en-au - refset: 32570271000036106 2023-05-22 15:32:18.085 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect es-uy - refset: 5641000179103 2023-05-22 15:32:18.085 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect es - refset: 450828004 2023-05-22 15:32:18.085 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect fr-ca - refset: 20581000087109 2023-05-22 15:32:18.085 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect nn-no - refset: 91000202106 2023-05-22 15:32:18.100 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect zh - refset: 722128001 2023-05-22 15:32:18.100 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect en-nz - refset: 271000210107 2023-05-22 15:32:18.100 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect es-ar - refset: 450828004 2023-05-22 15:32:18.100 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect fr-be - refset: 21000172104 2023-05-22 15:32:18.100 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect sv-se - refset: 46011000052107 2023-05-22 15:32:18.100 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect ja - refset: 722129009 2023-05-22 15:32:18.100 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect da-dk - refset: 554461000005103 2023-05-22 15:32:18.116 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect et-ee - refset: 71000181105 2023-05-22 15:32:18.116 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect en-uk-drug - refset: 999000681000001101 2023-05-22 15:32:18.116 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect en-nz-pat - refset: 281000210109 2023-05-22 15:32:18.116 INFO 3196 --- [ main] o.s.s.c.d.s.DialectConfigurationService : Known dialect en-gb - refset: 900000000000508004 2023-05-22 15:32:18.288 ERROR 3196 --- [heManagerDaemon] o.s.s.c.d.s.i.IdentifierCacheManager : Failed to top-up IdCache(0 - 02) with 4000 identifiers

org.springframework.dao.DataAccessResourceFailureException: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information at org.springframework.data.elasticsearch.core.ElasticsearchExceptionTranslator.translateExceptionIfPossible(ElasticsearchExceptionTranslator.java:75) at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.translateException(ElasticsearchRestTemplate.java:367) at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.execute(ElasticsearchRestTemplate.java:350) at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.search(ElasticsearchRestTemplate.java:261) at org.springframework.data.elasticsearch.core.AbstractElasticsearchTemplate.search(AbstractElasticsearchTemplate.java:446) at org.snomed.snowstorm.core.data.services.identifier.LocalRandomIdentifierSource.findExistingIdentifiersInAnyBranch(LocalRandomIdentifierSource.java:86) at org.snomed.snowstorm.core.data.services.identifier.LocalRandomIdentifierSource.reserveIds(LocalRandomIdentifierSource.java:65) at org.snomed.snowstorm.core.data.services.identifier.IdentifierCacheManager.topUp(IdentifierCacheManager.java:119) at org.snomed.snowstorm.core.data.services.identifier.IdentifierCacheManager.checkTopUpRequired(IdentifierCacheManager.java:102) at org.snomed.snowstorm.core.data.services.identifier.IdentifierCacheManager.run(IdentifierCacheManager.java:67) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: java.lang.RuntimeException: Connection refused: no further information at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.translateException(ElasticsearchRestTemplate.java:365) ... 9 common frames omitted Caused by: java.net.ConnectException: Connection refused: no further information at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:865) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:275) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:262) at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1628) at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1598) at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1568) at org.elasticsearch.client.RestHighLevelClient.search(RestHighLevelClient.java:1084) at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.lambda$search$10(ElasticsearchRestTemplate.java:261) at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.execute(ElasticsearchRestTemplate.java:348) ... 8 common frames omitted Caused by: java.net.ConnectException: Connection refused: no further information at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:174) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:148) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:351) at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221) at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64) ... 1 common frames omitted

2023-05-22 15:32:18.303 INFO 3196 --- [heManagerDaemon] o.s.s.c.d.s.i.IdentifierCacheManager : Topping up IdCache(0 - 00) by 1000 2023-05-22 15:32:18.303 ERROR 3196 --- [heManagerDaemon] o.s.s.c.d.s.i.IdentifierCacheManager : Failed to top-up IdCache(0 - 00) with 1000 identifiers

org.springframework.dao.DataAccessResourceFailureException: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information at org.springframework.data.elasticsearch.core.ElasticsearchExceptionTranslator.translateExceptionIfPossible(ElasticsearchExceptionTranslator.java:75) at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.translateException(ElasticsearchRestTemplate.java:367) at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.execute(ElasticsearchRestTemplate.java:350) at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.search(ElasticsearchRestTemplate.java:261) at org.springframework.data.elasticsearch.core.AbstractElasticsearchTemplate.search(AbstractElasticsearchTemplate.java:446) at org.snomed.snowstorm.core.data.services.identifier.LocalRandomIdentifierSource.findExistingIdentifiersInAnyBranch(LocalRandomIdentifierSource.java:86) at org.snomed.snowstorm.core.data.services.identifier.LocalRandomIdentifierSource.reserveIds(LocalRandomIdentifierSource.java:55) at org.snomed.snowstorm.core.data.services.identifier.IdentifierCacheManager.topUp(IdentifierCacheManager.java:119) at org.snomed.snowstorm.core.data.services.identifier.IdentifierCacheManager.checkTopUpRequired(IdentifierCacheManager.java:102) at org.snomed.snowstorm.core.data.services.identifier.IdentifierCacheManager.run(IdentifierCacheManager.java:67) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: java.lang.RuntimeException: Connection refused: no further information at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.translateException(ElasticsearchRestTemplate.java:365) ... 9 common frames omitted Caused by: java.net.ConnectException: Connection refused: no further information at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:865) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:275) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:262) at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1628) at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1598) at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1568) at org.elasticsearch.client.RestHighLevelClient.search(RestHighLevelClient.java:1084) at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.lambda$search$10(ElasticsearchRestTemplate.java:261) at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.execute(ElasticsearchRestTemplate.java:348) ... 8 common frames omitted Caused by: java.net.ConnectException: Connection refused: no further information at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:174) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:148) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:351) at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221) at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64) ... 1 common frames omitted

2023-05-22 15:32:18.319 INFO 3196 --- [heManagerDaemon] o.s.s.c.d.s.i.IdentifierCacheManager : Topping up IdCache(0 - 01) by 2000 2023-05-22 15:32:18.350 ERROR 3196 --- [heManagerDaemon] o.s.s.c.d.s.i.IdentifierCacheManager : Failed to top-up IdCache(0 - 01) with 2000 identifiers

org.springframework.dao.DataAccessResourceFailureException: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information at org.springframework.data.elasticsearch.core.ElasticsearchExceptionTranslator.translateExceptionIfPossible(ElasticsearchExceptionTranslator.java:75) at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.translateException(ElasticsearchRestTemplate.java:367) at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.execute(ElasticsearchRestTemplate.java:350) at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.search(ElasticsearchRestTemplate.java:261) at org.springframework.data.elasticsearch.core.AbstractElasticsearchTemplate.search(AbstractElasticsearchTemplate.java:446) at org.snomed.snowstorm.core.data.services.identifier.LocalRandomIdentifierSource.findExistingIdentifiersInAnyBranch(LocalRandomIdentifierSource.java:86) at org.snomed.snowstorm.core.data.services.identifier.LocalRandomIdentifierSource.reserveIds(LocalRandomIdentifierSource.java:60) at org.snomed.snowstorm.core.data.services.identifier.IdentifierCacheManager.topUp(IdentifierCacheManager.java:119) at org.snomed.snowstorm.core.data.services.identifier.IdentifierCacheManager.checkTopUpRequired(IdentifierCacheManager.java:102) at org.snomed.snowstorm.core.data.services.identifier.IdentifierCacheManager.run(IdentifierCacheManager.java:67) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: java.lang.RuntimeException: Connection refused: no further information at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.translateException(ElasticsearchRestTemplate.java:365) ... 9 common frames omitted Caused by: java.net.ConnectException: Connection refused: no further information at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:865) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:275) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:262) at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1628) at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1598) at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1568) at org.elasticsearch.client.RestHighLevelClient.search(RestHighLevelClient.java:1084) at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.lambda$search$10(ElasticsearchRestTemplate.java:261) at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.execute(ElasticsearchRestTemplate.java:348) ... 8 common frames omitted Caused by: java.net.ConnectException: Connection refused: no further information at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:174) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:148) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:351) at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221) at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64) ... 1 common frames omitted

2023-05-22 15:32:18.671 WARN 3196 --- [ main] .s.d.e.r.s.SimpleElasticsearchRepository : Cannot create index: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:18.745 WARN 3196 --- [ main] .s.d.e.r.s.SimpleElasticsearchRepository : Cannot create index: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:18.768 WARN 3196 --- [ main] .s.d.e.r.s.SimpleElasticsearchRepository : Cannot create index: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:18.852 WARN 3196 --- [ main] .s.d.e.r.s.SimpleElasticsearchRepository : Cannot create index: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:18.882 WARN 3196 --- [ main] .s.d.e.r.s.SimpleElasticsearchRepository : Cannot create index: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:19.263 WARN 3196 --- [ main] .s.d.e.r.s.SimpleElasticsearchRepository : Cannot create index: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:19.328 INFO 3196 --- [ main] o.s.s.c.d.s.s.CommitServiceHookClient : CommitServiceHookClient is muted as service url not configured. 2023-05-22 15:32:19.402 WARN 3196 --- [ main] .s.d.e.r.s.SimpleElasticsearchRepository : Cannot create index: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:19.511 WARN 3196 --- [ main] .s.d.e.r.s.SimpleElasticsearchRepository : Cannot create index: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:19.634 INFO 3196 --- [ main] .RestTemplateClassificationStatusService : Classification statuses will be retrieved via REST. 2023-05-22 15:32:19.712 WARN 3196 --- [ main] .s.d.e.r.s.SimpleElasticsearchRepository : Cannot create index: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:19.739 WARN 3196 --- [ main] .s.d.e.r.s.SimpleElasticsearchRepository : Cannot create index: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:19.752 WARN 3196 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'classificationService': Invocation of init method failed; nested exception is org.springframework.dao.DataAccessResourceFailureException: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information 2023-05-22 15:32:19.761 INFO 3196 --- [heManagerDaemon] o.s.s.c.d.s.i.IdentifierCacheManager : Identifier cache manager sleep interrupted. 2023-05-22 15:32:19.761 INFO 3196 --- [heManagerDaemon] o.s.s.c.d.s.i.IdentifierCacheManager : Identifier cache manager polling stopped. 2023-05-22 15:32:19.777 INFO 3196 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2023-05-22 15:32:19.808 INFO 3196 --- [ main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2023-05-22 15:32:19.886 ERROR 3196 --- [ main] o.s.boot.SpringApplication : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'classificationService': Invocation of init method failed; nested exception is org.springframework.dao.DataAccessResourceFailureException: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:160) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:440) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) at org.snomed.snowstorm.SnowstormApplication.main(SnowstormApplication.java:61) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65) Caused by: org.springframework.dao.DataAccessResourceFailureException: Connection refused: no further information; nested exception is java.lang.RuntimeException: Connection refused: no further information at org.springframework.data.elasticsearch.core.ElasticsearchExceptionTranslator.translateExceptionIfPossible(ElasticsearchExceptionTranslator.java:75) at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.translateException(ElasticsearchRestTemplate.java:367) at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.execute(ElasticsearchRestTemplate.java:350) at org.springframework.data.elasticsearch.core.DefaultIndexOperations.doExists(DefaultIndexOperations.java:104) at org.springframework.data.elasticsearch.core.AbstractDefaultIndexOperations.exists(AbstractDefaultIndexOperations.java:136) at org.snomed.snowstorm.core.data.services.classification.ClassificationService.init(ClassificationService.java:140) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157) ... 26 common frames omitted Caused by: java.lang.RuntimeException: Connection refused: no further information at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.translateException(ElasticsearchRestTemplate.java:365) ... 37 common frames omitted Caused by: java.net.ConnectException: Connection refused: no further information at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:865) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:275) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:262) at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1628) at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1613) at org.elasticsearch.client.IndicesClient.exists(IndicesClient.java:974) at org.springframework.data.elasticsearch.core.DefaultIndexOperations.lambda$doExists$2(DefaultIndexOperations.java:104) at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.execute(ElasticsearchRestTemplate.java:348) ... 36 common frames omitted Caused by: java.net.ConnectException: Connection refused: no further information at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:174) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:148) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:351) at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221) at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64) at java.base/java.lang.Thread.run(Thread.java:834)

kaicode commented 1 year ago

It looks like Snowstorm can not connect to Elasticsearch. Perhaps Elasticsearch has not been started or perhaps Snowstorm is not configured to use the correct URL. By default elasticsearch.urls is set to http://localhost:9200 because Elasticsearch should be available there when started on the same machine.

MaryamRazavi commented 1 year ago

Hi @kaicode You were right, Elasticsearch has not been started. But there is a problem for starting elasticsearch and I see the following mesage: "the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured" Is there any speciall configuration for [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] ? if yes what is that? Appriciate your help. Thank you in advance. :)

kaicode commented 1 year ago

Team: I am in communication with Maryam directly. No need to reply here for now.