Questions Tagged With elasticsearchhttps://answers.axonivy.com/tags/elasticsearch/?type=rss&user=SupportIvyTeamquestions tagged <span class="tag">elasticsearch</span>enTue, 01 Oct 2019 04:05:17 -0400ElasticsearchException index read-only if updating/storing BusinessDatahttps://answers.axonivy.com/questions/4038/elasticsearchexception-index-read-only-if-updating-storing-businessdata<p>I can not update and store my Business data and get the following exception if I do it e.g. <code>ivy.repo.save(in.myDossier)</code>:</p> <pre><code>ElasticsearchException: Elasticsearch update index of document failed because of: { "root_cause":[ { "type":"cluster_block_exception", "reason":"index [ivy.businessdata-abc] blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];" } ], "type":"cluster_block_exception", "reason":"index [ivy.businessdata-abc] blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];" } </code></pre> <p>It seems that it is now forbidden to write to the Elasiticsearch index because it is read-only. Why is my index read-only? I did not do anything. It suddenly stopped working.</p>SupportIvyTeamTue, 01 Oct 2019 04:05:17 -0400https://answers.axonivy.com/questions/4038/elasticsearchexception-index-read-only-if-updating-storing-businessdatabusiness-dataelasticsearchSolve read timeout issue while storing BusinessData in repositoryhttps://answers.axonivy.com/questions/3826/solve-read-timeout-issue-while-storing-businessdata-in-repository<p>I have deployed my cool wf-app into production several weeks ago. Now users are complaining about errors occuring on the screen. A first investigation into the logs revealed that there seems to be a connection problem with the elastic search server. I'm using the bundled elastic search server as it is shipped with the Axon.ivy Engine (7.3). Whats the issue here?</p> <p><code>Caused by: java.net.SocketTimeoutException: Read timed out</code></p> <pre><code>[errorId=16AE46D591AAA1BE, request=HTTP POST Start Processes/DepartmentHead.mod/163BB87520D405CF-f3(493708.480005.45511.1), session=524 (a.f@m.ch), task=480005, application=301, requestId=34869, executionContext=524 (a.f@m.ch), pmv=GMAA$hr_pbm_0001_pf$1, client=10.208.68.15, hd=com.axonivy.hrwf.pbm0001.components.ZurueckweisenKommentar, processElement=163BB87520D405CF-f17] Caused by: ch.ivyteam.ivy.business.data.store.search.internal.elasticsearch.ElasticsearchException: Cannot reach Elasticsearch server at ch.ivyteam.ivy.business.data.store.search.internal.elasticsearch.JestOperation.tryToExecute(JestOperation.java:51) at ch.ivyteam.ivy.business.data.store.search.internal.elasticsearch.JestOperation.execute(JestOperation.java:36) at ch.ivyteam.ivy.business.data.store.search.internal.elasticsearch.JestIndexSynchronizer.execute(JestIndexSynchronizer.java:151) at ch.ivyteam.ivy.business.data.store.search.internal.elasticsearch.JestIndexSynchronizer.updateDocument(JestIndexSynchronizer.java:50) at ch.ivyteam.ivy.business.data.store.search.internal.ElasticBusinessDataSearchIndex.update(ElasticBusinessDataSearchIndex.java:33) at ch.ivyteam.ivy.business.data.store.internal.ElasticSystemDbPersistence.lambda$2(ElasticSystemDbPersistence.java:140) ... 174 more Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream.read(SocketInputStream.java:171) at java.net.SocketInputStream.read(SocketInputStream.java:141) at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137) ... at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56) at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259) at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163) at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:165) at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)... at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108) at io.searchbox.client.http.JestHttpClient.executeRequest(JestHttpClient.java:133) ... at ch.ivyteam.ivy.business.data.store.search.internal.elasticsearch.JestOperation.tryToExecute(JestOperation.java:45) ... 183 more </code></pre>SupportIvyTeamMon, 27 May 2019 03:17:31 -0400https://answers.axonivy.com/questions/3826/solve-read-timeout-issue-while-storing-businessdata-in-repositorybusiness-dataelasticsearchElasticSearch fails to recreate index due to data Field type changehttps://answers.axonivy.com/questions/3791/elasticsearch-fails-to-recreate-index-due-to-data-field-type-change<p>We converted a field of a BusinessData object from <code>long</code> to <code>String</code>. Now we face index recreation problems after upgrading the ivy engine to a new version.</p> <pre><code>2019-05-06 15:36:36.038 ERROR [ch.ivyteam.ivy.business.data.store.search.internal.BusinessDataSearchIndecesRecreator] [ivy immediate job pool-thread-1] [executionContext=SYSTEM] Recreation of business data search index failed [errorId=16A8D5C46C63FD9B, executionContext=SYSTEM] ch.ivyteam.ivy.business.data.store.search.internal.elasticsearch.ElasticsearchException: Elasticsearch add documents to index failed because of: One or more of the items in the Bulk request failed, check BulkResult.getItems() for more information. bulk error: id=f08fe3d90a454be4b95a0b59785686ff, index=ivy.businessdata-com.axonivy.hrwf.vea.arbeitsvertragsaenderungencasemodel, error={"type":"illegal_argument_exception","reason":"mapper [antrag.lohnUndOderArbeitszeitaenderung.baseSalaryPtNew] cannot be changed from type [float] to [long]"} bulk error: id=b15b99eb022b4e1f95cd1b34ee03ae2f, index=ivy.businessdata-com.axonivy.hrwf.vea.arbeitsvertragsaenderungencasemodel, error={"type":"mapper_parsing_exception","reason":"failed to parse [antrag.lohnUndOderArbeitszeitaenderung.expensesPtCurrent]","caused_by":{"type":"number_format_exception","reason":"For input string: \"CHF500\""}} </code></pre> <p>How can we get a proper data store and make the index recreation running?</p>SupportIvyTeamTue, 07 May 2019 04:23:23 -0400https://answers.axonivy.com/questions/3791/elasticsearch-fails-to-recreate-index-due-to-data-field-type-changebusiness-dataelasticsearchHow to display the ElasticSearch schema of my BusinessDatahttps://answers.axonivy.com/questions/2769/how-to-display-the-elasticsearch-schema-of-my-businessdata<p>I'd like to analyze the BusinessData index created by ElasticSearch. How can I inspect the schema of my BusinessData within the Designer or Engine?</p>SupportIvyTeamTue, 18 Jul 2017 03:28:33 -0400https://answers.axonivy.com/questions/2769/how-to-display-the-elasticsearch-schema-of-my-businessdatabusiness-dataelasticsearch