No server start error checking
See original GitHub issueIf attempted on a system without java, or if the server failed to start for whatever reason, no error is raised until an action is attempted (checkTikaServer
does not fail if the server fails to start).
Also, there is a sleep in startServer
. Should make some actual calls to the server to check that its running correctly, i.e. spin-loop a request until it succeeds, or time/max-retry out.
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Unable to Start the Server Service - Microsoft Support
When you attempt to start the Server service from a command prompt, you may receive the following error message: System error 1058 has...
Read more >How to Resolve 'Server Service Won't Start' Error in Pro-Watch
This video provides step by step instructions for how to resolve a common 'Windows could not start the Pro-Watch Server service on the...
Read more >Error Checking Server Process Execution Privilege when ...
The container starts and I am able to access the GUI. What you expected to happen: Not getting the error. Not sure what...
Read more >Error handling - Apollo GraphQL Docs
A client sent the hash of a query string to execute via automatic persisted queries, but the query was not in the APQ...
Read more >How To Fix the “Server IP Address Could Not Be Found” Error
Check your internet connection and router. Restart your computer. Use an Incognito or private browsing window to navigate to the site. Set the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just PR’d
On Sat, Jun 30, 2018, 10:27 Chris Mattmann notifications@github.com wrote:
happy saturday, @Purg and @chrismattmann!
i took a stab at this, adding:
TIKA_JAVA
env)TIKA_STARTUP_SLEEP
env)TIKA_STARTUP_MAX_RETRY
env)tika-server.log
(sometimes clients wouldtouch/chmod
to createtika.log
but had not done so fortika-server.log
)TIKA_JAVA
can be executed withsubprocess.Popen
"INFO Started Apache Tika server at..."
is present in log beforereturn True
you can find it in my feature branch here: https://github.com/mjbommar/tika-python/tree/feature-check-java-exists
commits here: https://github.com/mjbommar/tika-python/commit/3ca6c2b144a54fa4531b9e048fcf8041ab2f4fb8
apologies for pycharm’s aggressive reformatting, but the real changes should be apparent in the constants,
startServer
, andcheckTikaServer
if one of you would like to review and test, i can fix the cosmits and PR with just the relevant lines.