Tika could not be reached and executed

Created on 4 November 2019, about 5 years ago
Updated 28 February 2024, 9 months ago

Hi,

I have successfully installed Search API on a Windows server (Drupal 8) but failing to use Search API Attachments module to add-on.

My server is installed with Java RE and I have placed a copy of tika-app-1.22.jar in a specific folder. However when I specify the location of the tika-app-1.22.jar, it says "Tika could not be reached and executed". Please see the attached screenshot.

Thanks

🐛 Bug report
Status

Active

Component

User interface

Created by

🇦🇺Australia crystalgrafix

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Hi,
    I am also getting the same issue .
    I have the jar file inside the web folder - web/tika/tika-app-2.0.1.jar. when i am trying to run tika from the terminal i am able to execute it and extract the file so tike is working but when i am trying to give the path in the setting it is giving me Tika could not be reached and executed error. i am not able to understand where i am going wrong . i have my site in local (wampserver).

    For your reference I am attaching a screenshot please let know what needs to be changed .

  • Status changed to Active 9 months ago
  • 🇫🇷France izus

    try a relative path depending on your folder structure?
    i would say sth like ./tika//tika-app-2.9.1.jar or ../tika//tika-app-2.9.1.jar
    for debug, you can also try with a full path starting by /

  • Hi Izus,

    below is my folder structure

    C:/wamp64/www/[project_name]/web/tika/tika-app-2.9.1.jar

    i have tried adding ../tika/tika-app-2.9.1.jar , ./tika/tika-app-2.9.1.jar and C:/wamp64/www/[project_name]/web/tika/tika-app-2.9.1.jar
    but nothing is working i am still getting the same issue

  • 🇫🇷France izus

    ok,
    never tested it in Windows.
    Maybe the path to Java should be adapted too : default is 'java' Please try adapting it too in tika extractor configuration

    For more debug :
    the file concerned is https://git.drupalcode.org/project/search_api_attachments/-/blob/8.x-1.0...

    The error occurse when the following command is run:

    tika_executable -jar tika_executable

    to here the patch to tika and the path to java should be correcte and executable

Production build 0.71.5 2024