Closed patelanm closed 9 months ago
@patelanm
@pwinckles I initially upgraded to 1.6.0 but wasn't able to disable TIKA so we decided to upgrade to 1.5.5 Also I am not able to find any log files. The business owner is requesting to disable it and show the status "did not run". Is there a way to do that?
@patelanm Yes, but you haven't provided enough information in either of your tickets for us to help you. Please provide your config in https://github.com/harvard-lts/fits/issues/384.
Here is my fits config file content: fits_config.txt
@patelanm I would rather help you get 1.6.0 working than 1.5.5. Here's the relevant file in regards to Tika in your configuration:
<tool class="edu.harvard.hul.ois.fits.tools.tika.TikaTool" exclude-exts="jar,avi,mov,mpg,mpeg,mkv,mp4,mpeg4,m2ts,mxf,ogv,mj2,divx,dv,m4v,m2v,ismv,tif,tiff" classpath-dirs="lib/tika"/>
Now, which file extension were you attempting to exclude from Tika?
Below is the response I got from my product owner:
Our FITS is only pointing to the IMAGES folder to look for image files, i.e., there will be no txt, doc or video files shown in the folder at all. Do we still have to list all those file extensions for exclusion? Currently, we only have .tif or .tiff but we had .jpeg in the past. We may have .jp2 in the future.
If we have to list all of them regardless, then we will want them to provides us a complete file extension list Tika is programmed to look for.
@patelanm Okay, so you either need to add the .jpeg
and .jp2
extensions to the exclude-exts
lists on that config line, or, if you don't want Tika to run ever, remove the line entirely.
I can confirm this problem as well, at least on Debian bookworm. Installing the mediainfo OS package and removing tools/mediainfo from FITS makes no difference.
@dchandekstark are you using version 1.5.5? If so, why?
@pwinckles Yes, using 1.5.5. I had some issue with 1.6.0 but TBH can't remember now ... will give it a try.
@dchandekstark the latest version of MediaInfo does not work with pre-1.6.0 releases. I strongly recommend using 1.6.0. If you have issues with it, open a new ticket.
I am trying to run the FITS version 1.5.5. The MediaInfo configuration works completely fine for version 1.5.0, but when I upgraded the FITS version to 1.5.5 and tried to run the code I am seeing below error message.
<tool toolname="MediaInfo" toolversion="[could not launch tool]" status="failed"/>
It should show "did not run" instead of "failed" status.
I also compared all the files in both the versions 1.5.0 an 1.5.5 and everything looks identical.
Can someone please help me with this?