This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Extensions » eztika problem
expandshrink

eztika problem

eztika problem

Sunday 06 November 2011 10:47:15 am - 5 replies

Hello,

I would use eztika but I can't. I install it without change the path. This is a part of eztika.log:

[ Nov 06 2011 10:32:06 ] [START] eZMultiParser for File: 9.74 KByte var/ezflow_site/storage/original/application/3a2646d05806b50f5862e58cdcbe5f5e.docx[ Nov 06 2011 10:32:06 ] exec: ./extension/eztika/bin/eztika var/ezflow_site/storage/original/application/3a2646d05806b50f5862e58cdcbe5f5e.docx > var/ezflow_site/cache/eztika_9cc8750ef56d1c8a3c6e29bcd178ba9e.txt[ Nov 06 2011 10:32:06 ] exec returnCode: 126[ Nov 06 2011 10:32:06 ] keep tempfile for debugging extracted metadata: var/ezflow_site/cache/eztika_9cc8750ef56d1c8a3c6e29bcd178ba9e.txt[ Nov 06 2011 10:32:06 ] [ERROR] no metadata was extracted! Check if eztika is working correctly[ Nov 06 2011 10:32:06 ] [END] after 0 s

I don't understand where is the problem.

Thank you.

Nicolas MATHIEU.

Monday 07 November 2011 3:32:07 pm

Hi Nicolas,

to index your document, the extension executes the following command:

./extension/eztika/bin/eztika var/ezflow_site/storage/original/application/3a2646d05806b50f5862e58cdcbe5f5e.docx

and it seems like something went wrong doing so. So, you should try to execute this command while being logged in with the user that would normally execute this script on your server.

Cheers

Monday 07 November 2011 8:26:29 pm

Sorry, I don't understand your reply. When I run the file http://www.monsite.fr/ROez/extension/eztika/bin/eztika (I put "rewrite rule..." to run this file in the htacess - my folder Ezpublish is called "ROez"blunk.gif Emoticon, the browser displays this:

#!/bin/shJAVA=./extension/eztika/bin/tika.jar$JAVA -jar $TIKA_JAR --text  --encoding=utf8 $

Thank you in advance.

Nicolas.

Monday 07 November 2011 9:41:38 pm

@Nicolas: you should be running that script from the web, but from the command line. If users where able to do that via the web, you would have serious security problems.

So you need to get to a command prompt, position yourself at the root of ZP install, and run

./extension/eztika/bin/eztika var/ezflow_site/storage/original/application/3a2646d05806b50f5862e58cdcbe5f5e.docx > var/ezflow_site/cache

and see what error message you get.

You can also see what happens if you run

/extension/eztika/bin/eztika var/ezflow_site/storage/original/application/3a2646d05806b50f5862e58cdcbe5f5e.docx

If all goes well when running via cli but not when running via php, it might be a permissions problem: either the apache user (www-data, or whichevere used is used to run your webserver) does not have enough rights to invoke the eztika shell script, or maybe php has been configured not to allow usage of "exec" calls. Or there might be some PATH problems in the eztika shell script

Tuesday 08 November 2011 12:41:30 am

My host is OVH. I must put my scripts in "cgi-bin" folder and chmod 705.

I put the script eztika and let tika.jar in the folder "extension/eztika/bin".

I have always an error:

[ Nov 08 2011 00:32:22 ] [START] eZMultiParser for File: 1880.02 KByte var/ezflow_site/storage/original/application/6a65be6f1d9cc4c11d1b8abe9962ba31.pdf[ Nov 08 2011 00:32:22 ] exec: /home/monlogin/cgi-bin/eztika var/ezflow_site/storage/original/application/6a65be6f1d9cc4c11d1b8abe9962ba31.pdf > var/ezflow_site/cache/eztika_686ce91858f43bba1bc94fd1b5d35113.txt[ Nov 08 2011 00:32:23 ] exec returnCode: 127[ Nov 08 2011 00:32:23 ] keep tempfile for debugging extracted metadata: var/ezflow_site/cache/eztika_686ce91858f43bba1bc94fd1b5d35113.txt[ Nov 08 2011 00:32:23 ] [ERROR] no metadata was extracted! Check if eztika is working correctly[ Nov 08 2011 00:32:23 ] [END] after 1 s

I believe files in this cgi-bin folder must be *.cgi or *.php.

I don't know how to execute a command with this host.

Thank you.

Tuesday 08 November 2011 10:37:36 pm

Sorry, I suspected this... I think you should find a better provider (or upgrade to a more costly plan with shell access). With eZ, not only you have to run shell scripts for eztika, but also for starting ezfind, and for standard maintenance cronjobs...

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from