Thanks a lot Karl.

 

To overwrite the connector with your patch, have I to download the trunk and recompile, isn’t it?

 

Excuse me for my questions but I am not expert on programming, compiling, etc.

 

 

 

 

Da: Karl Wright <daddywri@gmail.com>
Inviato: giovedì 15 novembre 2018 09:48
A: user@manifoldcf.apache.org
Oggetto: Re: Error Job stop after repeatidly interruption

 

(1) I increased the retries to go at least 10 minutes.

(2) I handled the 503 response explicitly, with the same logic.

See: https://issues.apache.org/jira/browse/CONNECTORS-1556

 

Karl

 

 

On Thu, Nov 15, 2018 at 3:35 AM Bisonti Mario <Mario.Bisonti@vimar.com> wrote:

Yes, Karl.

 

Is it possible to apply the same your concept , wait 10 sec and retry three times , to the 503 error , too?

 

So, I would like to try, if, with the modification, I obtain that job end correctly instead of failure.

 

 

Thanks a lot

Mario

 

Da: Karl Wright <daddywri@gmail.com>
Inviato: giovedì 15 novembre 2018 09:17
A: user@manifoldcf.apache.org
Oggetto: Re: Error Job stop after repeatidly interruption

 

Hi Mario,

 

Here's the code:

 

>>>>>> 

            try {

              //System.out.println("About to do a content PUT");

              response = this.httpClient.execute(tikaHost, httpPut);

              //System.out.println("... content PUT succeeded");

            } catch (IOException e) {

              // Retry 3 times, 10000 ms between retries, and abort if doesn't work

              final long currentTime = System.currentTimeMillis();

              throw new ServiceInterruption("Tika down, retrying: "+e.getMessage(),e,currentTime + 10000L,

                -1L,3,true);

            }

 

            responseCode = response.getStatusLine().getStatusCode();

            if (response.getStatusLine().getStatusCode() == 200 || response.getStatusLine().getStatusCode() == 204) {

              tikaServerIs = response.getEntity().getContent();

              try {

                responseDs = new FileDestinationStorage();

                final OutputStream os2 = responseDs.getOutputStream();

                try {

                  IOUtils.copyLarge(tikaServerIs, os2, 0L, sp.writeLimit);

                } finally {

                  os2.close();

                }

                length = new Long(responseDs.getBinaryLength());

              } finally {

                tikaServerIs.close();

              }

            } else {

              activities.noDocument();

              if (responseCode == 422) {

                resultCode = "TIKASERVERREJECTS";

                description = "Tika Server rejected document with the following reason: "

                    + response.getStatusLine().getReasonPhrase();

                return handleTikaServerRejects(description);

              } else {

                resultCode = "TIKASERVERERROR";

                description = "Tika Server failed to parse document with the following error: "

                    + response.getStatusLine().getReasonPhrase();

                return handleTikaServerError(description);

              }

            }

 

          } catch (IOException | ParseException e) {

            resultCode = "TIKASERVERRESPONSEISSUE";

            description = e.getMessage();

            int rval;

            if (e instanceof IOException) {

              rval = handleTikaServerException((IOException) e);

            } else {

              rval = handleTikaServerException((ParseException) e);

            }

            if (rval == DOCUMENTSTATUS_REJECTED) {

              activities.noDocument();

            }

            return rval;

          }

<<<<<< 

and

>>>>>> 

  protected static int handleTikaServerError(String description)

      throws IOException, ManifoldCFException, ServiceInterruption {

    // MHL - what does Tika throw if it gets an IOException reading the stream??

    Logging.ingest.warn("Tika Server: Tika Server error: " + description);

    return DOCUMENTSTATUS_REJECTED;

  }

<<<<<< 

 

The summary:

(1) If ManifoldCF cannot connect at all, or gets an IO error, it will wait at least 10 seconds and then retry -- up to three times.

(2) When Manifold sees a 503 error it immediately just rejects the document.

So you are requesting different handling for 503 errors?

 

Karl

 

 

On Thu, Nov 15, 2018 at 2:42 AM Bisonti Mario <Mario.Bisonti@vimar.com> wrote:

Hallo Karl.

I opened an issue on Tika here:

https://issues.apache.org/jira/browse/TIKA-2776

 

The person that develops tika, suggests me to put a waiting on the client (in my case manifoldcf)

https://issues.apache.org/jira/browse/TIKA-2776?focusedCommentId=16686620&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16686620

 

I am not able to do this…

Is it possible to implement on the MCF source?

 


Thanks a lot

 

Mario

 

Da: Karl Wright <daddywri@gmail.com>
Inviato: giovedì 8 novembre 2018 21:03
A: user@manifoldcf.apache.org
Oggetto: Re: Error Job stop after repeatidly interruption

 

Hi Mario,

 

The Tika external connector retries for a while before it gives up and aborts the job.  If you can get the Tika server back up within a reasonable period of time all should be well.  But if one specific document *always* brings down the Tika server, it will be hard to recover from that.

 

Karl

 

 

On Thu, Nov 8, 2018 at 2:56 PM Bisonti Mario <Mario.Bisonti@vimar.com> wrote:

Hallo.

 

I am trying to index more than 5000000 documents in a Windows Share.

 

It happens that job is interrupted due to repeatidly interruption.

This is the manifold.log:

.
.
WARN 2018-11-07T21:53:25,296 (Worker thread '59') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:53:25,476 (Worker thread '89') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:53:33,814 (Worker thread '15') - JCIFS: Possibly transient exception detected on attempt 1 while getting share security: All pipe instances are busy.

jcifs.smb.SmbException: All pipe instances are busy.

        at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:569) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.SmbTransport.send(SmbTransport.java:669) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.SmbSession.send(SmbSession.java:238) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.SmbTree.send(SmbTree.java:119) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.SmbFile.send(SmbFile.java:776) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.SmbFile.open0(SmbFile.java:993) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.SmbFile.open(SmbFile.java:1010) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:142) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.TransactNamedPipeOutputStream.<init>(TransactNamedPipeOutputStream.java:32) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.SmbNamedPipe.getNamedPipeOutputStream(SmbNamedPipe.java:187) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.dcerpc.DcerpcPipeHandle.doSendFragment(DcerpcPipeHandle.java:68) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.dcerpc.DcerpcHandle.sendrecv(DcerpcHandle.java:190) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.dcerpc.DcerpcHandle.bind(DcerpcHandle.java:126) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.dcerpc.DcerpcHandle.sendrecv(DcerpcHandle.java:140) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.SmbFile.getShareSecurity(SmbFile.java:2951) ~[jcifs-1.3.18.3.jar:?]

        at org.apache.manifoldcf.crawler.connectors.sharedrive.SharedDriveConnector.getFileShareSecurity(SharedDriveConnector.java:2438) [mcf-jcifs-connector.jar:?]

        at org.apache.manifoldcf.crawler.connectors.sharedrive.SharedDriveConnector.getFileShareSecuritySet(SharedDriveConnector.java:1221) [mcf-jcifs-connector.jar:?]

        at org.apache.manifoldcf.crawler.connectors.sharedrive.SharedDriveConnector.processDocuments(SharedDriveConnector.java:627) [mcf-jcifs-connector.jar:?]

        at org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:399) [mcf-pull-agent.jar:?]

WARN 2018-11-07T21:53:57,861 (Worker thread '12') - JCIFS: Possibly transient exception detected on attempt 1 while getting share security: All pipe instances are busy.

jcifs.smb.SmbException: All pipe instances are busy.

        at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:569) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.SmbTransport.send(SmbTransport.java:669) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.SmbSession.send(SmbSession.java:238) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.SmbTree.send(SmbTree.java:119) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.SmbFile.send(SmbFile.java:776) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.SmbFile.open0(SmbFile.java:993) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.SmbFile.open(SmbFile.java:1010) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:142) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.TransactNamedPipeOutputStream.<init>(TransactNamedPipeOutputStream.java:32) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.SmbNamedPipe.getNamedPipeOutputStream(SmbNamedPipe.java:187) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.dcerpc.DcerpcPipeHandle.doSendFragment(DcerpcPipeHandle.java:68) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.dcerpc.DcerpcHandle.sendrecv(DcerpcHandle.java:190) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.dcerpc.DcerpcHandle.bind(DcerpcHandle.java:126) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.dcerpc.DcerpcHandle.sendrecv(DcerpcHandle.java:140) ~[jcifs-1.3.18.3.jar:?]

        at jcifs.smb.SmbFile.getShareSecurity(SmbFile.java:2951) ~[jcifs-1.3.18.3.jar:?]

        at org.apache.manifoldcf.crawler.connectors.sharedrive.SharedDriveConnector.getFileShareSecurity(SharedDriveConnector.java:2438) [mcf-jcifs-connector.jar:?]

        at org.apache.manifoldcf.crawler.connectors.sharedrive.SharedDriveConnector.getFileShareSecuritySet(SharedDriveConnector.java:1221) [mcf-jcifs-connector.jar:?]

        at org.apache.manifoldcf.crawler.connectors.sharedrive.SharedDriveConnector.processDocuments(SharedDriveConnector.java:627) [mcf-jcifs-connector.jar:?]

        at org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:399) [mcf-pull-agent.jar:?]

WARN 2018-11-07T21:56:04,765 (Worker thread '24') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: The target server failed to respond

WARN 2018-11-07T21:56:04,770 (Worker thread '4') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: The target server failed to respond

WARN 2018-11-07T21:56:04,775 (Worker thread '95') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: The target server failed to respond

WARN 2018-11-07T21:56:04,793 (Worker thread '54') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: The target server failed to respond

ERROR 2018-11-07T21:56:04,802 (Worker thread '24') - Exception tossed: Repeated service interruptions - failure processing document: The target server failed to respond

org.apache.manifoldcf.core.interfaces.ManifoldCFException: Repeated service interruptions - failure processing document: The target server failed to respond

        at org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:489) [mcf-pull-agent.jar:?]

Caused by: org.apache.http.NoHttpResponseException: The target server failed to respond

        at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:141) ~[httpclient-4.5.6.jar:4.5.6]

        at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56) ~[httpclient-4.5.6.jar:4.5.6]

        at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259) ~[httpcore-4.4.10.jar:4.4.10]

        at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163) ~[httpcore-4.4.10.jar:4.4.10]

        at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:165) ~[httpclient-4.5.6.jar:4.5.6]

        at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273) ~[httpcore-4.4.10.jar:4.4.10]

        at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125) ~[httpcore-4.4.10.jar:4.4.10]

        at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272) ~[httpclient-4.5.6.jar:4.5.6]

        at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) ~[httpclient-4.5.6.jar:4.5.6]

        at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[httpclient-4.5.6.jar:4.5.6]

        at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[httpclient-4.5.6.jar:4.5.6]

        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118) ~[httpclient-4.5.6.jar:4.5.6]

        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) ~[httpclient-4.5.6.jar:4.5.6]

        at org.apache.manifoldcf.agents.transformation.tikaservice.TikaExtractor.addOrReplaceDocumentWithException(TikaExtractor.java:608) ~[?:?]

        at org.apache.manifoldcf.agents.incrementalingest.IncrementalIngester$PipelineAddEntryPoint.addOrReplaceDocumentWithException(IncrementalIngester.java:3226) ~[mcf-agents.jar:?]

        at org.apache.manifoldcf.agents.incrementalingest.IncrementalIngester$PipelineAddFanout.sendDocument(IncrementalIngester.java:3077) ~[mcf-agents.jar:?]

        at org.apache.manifoldcf.agents.incrementalingest.IncrementalIngester$MonitoredAddActivityWrapper.sendDocument(IncrementalIngester.java:3471) ~[mcf-agents.jar:?]

        at org.apache.manifoldcf.agents.transformation.documentfilter.DocumentFilter.addOrReplaceDocumentWithException(DocumentFilter.java:208) ~[?:?]

        at org.apache.manifoldcf.agents.incrementalingest.IncrementalIngester$PipelineAddEntryPoint.addOrReplaceDocumentWithException(IncrementalIngester.java:3226) ~[mcf-agents.jar:?]

        at org.apache.manifoldcf.agents.incrementalingest.IncrementalIngester$PipelineAddFanout.sendDocument(IncrementalIngester.java:3077) ~[mcf-agents.jar:?]

        at org.apache.manifoldcf.agents.incrementalingest.IncrementalIngester$PipelineObjectWithVersions.addOrReplaceDocumentWithException(IncrementalIngester.java:2708) ~[mcf-agents.jar:?]

        at org.apache.manifoldcf.agents.incrementalingest.IncrementalIngester.documentIngest(IncrementalIngester.java:756) ~[mcf-agents.jar:?]

        at org.apache.manifoldcf.crawler.system.WorkerThread$ProcessActivity.ingestDocumentWithException(WorkerThread.java:1583) ~[mcf-pull-agent.jar:?]

        at org.apache.manifoldcf.crawler.system.WorkerThread$ProcessActivity.ingestDocumentWithException(WorkerThread.java:1548) ~[mcf-pull-agent.jar:?]

        at org.apache.manifoldcf.crawler.connectors.sharedrive.SharedDriveConnector.processDocuments(SharedDriveConnector.java:939) ~[?:?]

        at org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:399) ~[mcf-pull-agent.jar:?]

WARN 2018-11-07T21:56:04,866 (Worker thread '33') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:04,866 (Worker thread '22') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:04,872 (Worker thread '92') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:04,883 (Worker thread '37') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:04,883 (Worker thread '82') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:04,952 (Worker thread '13') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:04,953 (Worker thread '0') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:04,976 (Worker thread '47') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:04,976 (Worker thread '97') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:04,976 (Worker thread '84') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,004 (Worker thread '19') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,053 (Worker thread '16') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,079 (Worker thread '20') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,080 (Worker thread '76') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,114 (Worker thread '63') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,117 (Worker thread '93') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,143 (Worker thread '43') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,191 (Worker thread '9') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,191 (Worker thread '44') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,262 (Worker thread '99') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,276 (Worker thread '11') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,327 (Worker thread '48') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,353 (Worker thread '5') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,389 (Worker thread '31') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,414 (Worker thread '96') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,511 (Worker thread '65') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,514 (Worker thread '52') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,545 (Worker thread '39') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,561 (Worker thread '88') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,569 (Worker thread '72') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,640 (Worker thread '27') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,661 (Worker thread '51') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,765 (Worker thread '81') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,769 (Worker thread '2') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,787 (Worker thread '1') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,859 (Worker thread '83') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,886 (Worker thread '55') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,892 (Worker thread '3') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,910 (Worker thread '77') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,910 (Worker thread '40') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

WARN 2018-11-07T21:56:05,910 (Worker thread '32') - Service interruption reported for job 1533797717712 connection 'WinShare': Tika down, retrying: Connect to localhost:9998 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

 

 

 

 

My Tika server is standalone and started with the option “-spawnChild”

Java -jar /opt/tika/tika-server-1.19.jar -spawnChild

This option, permits to Tika to restart a process f it crash for some cause as reported here:

As of Tika 1.19, users can make tika-server more robust by running it with the -spawnChild option. This starts tika-server in a child process, and if there's an OOM, a timeout or other catastrophic problem with the child process, the parent process will kill and/or restart the child process.

 

(https://wiki.apache.org/tika/TikaJAXRS)

 

I suppose, that manifold, when many times Tika server restart a child, it collects an interruption, and after many interruption the job stop.

 

After that, I need to start again the job.

 

Is there any way to workaround this?

 

Thanks a lot

 

Mario