question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RuntimeError: Unable to start Tika server.

See original GitHub issue

I get the following error:

2019-07-31 00:54:21,492 [MainThread  ] [INFO ]  Retrieving http://search.maven.org/remotecontent?filepath=org/apache/tika/tika-server/1.19/tika-server-1.19.jar to /var/folders/l0/v73fdsmn7zq8kdq1xp7wbppw0000gn/T/tika-server.jar.
2019-07-31 00:55:14,176 [MainThread  ] [INFO ]  Retrieving http://search.maven.org/remotecontent?filepath=org/apache/tika/tika-server/1.19/tika-server-1.19.jar.md5 to /var/folders/l0/v73fdsmn7zq8kdq1xp7wbppw0000gn/T/tika-server.jar.md5.
2019-07-31 00:55:14,633 [MainThread  ] [WARNI]  Failed to see startup log message; retrying...
2019-07-31 00:55:19,638 [MainThread  ] [WARNI]  Failed to see startup log message; retrying...
2019-07-31 00:55:24,641 [MainThread  ] [WARNI]  Failed to see startup log message; retrying...
2019-07-31 00:55:29,642 [MainThread  ] [ERROR]  Tika startup log message not received after 3 tries.
2019-07-31 00:55:29,644 [MainThread  ] [ERROR]  Failed to receive startup confirmation from startServer.

Not sure what causes this. I checked and I have Java 8 update 221 on Mac OS X El Capitan v10.11.06 installed. Does anyone know how I can solve this problem?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
james-seecommented, Sep 17, 2019

To get this working in a disconnected environment, I had to download a tika server file and set the TIKA_SERVER_JAR to TIKA_SERVER_JAR="file:///home/user/tika-server.jar" which successfully tricked python-tika to “download” this file and move it to /tmp/tika-server.jar and run as background process. This was the only way I could get this to work without the internet. @ErfPy hope this helps.

2reactions
Harshitg10commented, Sep 3, 2019

I get the following error:

2019-07-31 00:54:21,492 [MainThread  ] [INFO ]  Retrieving http://search.maven.org/remotecontent?filepath=org/apache/tika/tika-server/1.19/tika-server-1.19.jar to /var/folders/l0/v73fdsmn7zq8kdq1xp7wbppw0000gn/T/tika-server.jar.
2019-07-31 00:55:14,176 [MainThread  ] [INFO ]  Retrieving http://search.maven.org/remotecontent?filepath=org/apache/tika/tika-server/1.19/tika-server-1.19.jar.md5 to /var/folders/l0/v73fdsmn7zq8kdq1xp7wbppw0000gn/T/tika-server.jar.md5.
2019-07-31 00:55:14,633 [MainThread  ] [WARNI]  Failed to see startup log message; retrying...
2019-07-31 00:55:19,638 [MainThread  ] [WARNI]  Failed to see startup log message; retrying...
2019-07-31 00:55:24,641 [MainThread  ] [WARNI]  Failed to see startup log message; retrying...
2019-07-31 00:55:29,642 [MainThread  ] [ERROR]  Tika startup log message not received after 3 tries.
2019-07-31 00:55:29,644 [MainThread  ] [ERROR]  Failed to receive startup confirmation from startServer.

Not sure what causes this. I checked and I have Java 8 update 221 on Mac OS X El Capitan v10.11.06 installed. Does anyone know how I can solve this problem?

  • Did you check whether you have connected with the internet or not? if yes and still it’s not working then try download manually and run using java -jar <<tika-server.jar>> and if it works then you can set ENV variable TIKA_SERVER_JAR with the path of that jar file.

P.S. make sure you set env variable before you import tika package

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use tika with python, runtimeerror: unable to start tika server
I gave up using TIKA Server, instead, I used TikaApp to solve the problem. "tika_client = TikaApp(file_jar = ''(where i have stored the...
Read more >
RuntimeError: Unable to start Tika server. · Issue #353 - GitHub
I created a function that parses a PDF file using TIKA in a service and when I tried to dockerize it, it displays...
Read more >
tika · PyPI
A Python port of the Apache Tika library that makes Tika available using the Tika REST Server. This makes Apache Tika available as...
Read more >
Tika PDF to text, Unable to start tika server, Extract text Python ...
") raise RuntimeError ("Unable to start Tika server."). The issue is that when testing the application in the terminal everything works correctly, but...
Read more >
How to Extract Text from PDF - Towards Data Science
Apache Tika has a python library which apparently lets you extract text ... hence I remained at: “RuntimeError: Unable to start Tika server....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found