Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2889

Tika Server keeps crashing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Bug
    • 1.18, 1.19, 1.19.1, 1.21
    • None
    • server
    • None
    • Both Ubuntu and Windows have the same bug/issue

    • Patch, Important

    Description

      I have a document processor which sends documents to the Tika Server over cUrl. However, the server crashes multiple times (not document specific). The response I get from cUrl if it happens is as follows:

      Connection error: Couldn't connect to server

       

      The Tika server is started when the script starts executing. For now, I fixed the issue by making a watcher which restarts the tika server when it crashes. It then processes a few other documents and crashes again (after a few minutes, let's say 5 minutes tops).

       

      Is there any possibility to catch the exception (if it throws any?)

       
      A log which shows the crash of the server:

      04-06-2019 15:49:25|Processing a file of: 52.3kB

      04-06-2019 15:49:24|Processing a file of: 255.5kB

      04-06-2019 15:49:24|Processing a file of: 241.6kB

      04-06-2019 15:49:23|Processing a file of: 37.7kB

      04-06-2019 15:49:22|Processing a file of: 1.27MB

      04-06-2019 15:49:21|Processing a file of: 55.8kB

      04-06-2019 15:49:17|Processing a file of: 114.5kB

      04-06-2019 15:49:08|Server is not running. Restarting Server. Connection error: Couldn't connect to server

      04-06-2019 15:49:03|Processing a file of: 41.0kB

      04-06-2019 15:49:00|Processing a file of: 38.0kB

      04-06-2019 15:48:59|ProcesPsing a file of: 37.1kB

      04-06-2019 15:48:59|Processing a file of: 60.2kB

      04-06-2019 15:48:59|Processing a file of: 280.7kB

      04-06-2019 15:48:59|Processing a file of: 3.30MB

      Attachments

        1. log4j.xml
          1.0 kB
          Tim Allison
        2. tika.log
          12 kB
          Thomas van Hesteren
        3. tika.log
          12 kB
          Thomas van Hesteren
        4. tika-2.log
          12 kB
          Thomas van Hesteren
        5. tika3.log
          37 kB
          Thomas van Hesteren
        6. tika-server-everything.log
          13.12 MB
          Thomas van Hesteren
        7. tika-server-everything.log
          7.84 MB
          Thomas van Hesteren
        8. tika-server-everything.log
          7.84 MB
          Thomas van Hesteren
        9. tika-server-everything.log
          7.84 MB
          Thomas van Hesteren
        10. tika-server-everything-2.log
          7.84 MB
          Thomas van Hesteren
        11. tika-server-everything3.log
          13.12 MB
          Thomas van Hesteren

        Activity

          People

            Unassigned Unassigned
            ThomasvH Thomas van Hesteren
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: