ots icon indicating copy to clipboard operation
ots copied to clipboard

Starting jobs fails with nothing logged on PHP 7.1

Open axfelix opened this issue 7 years ago • 10 comments

Tried installing the stack in a PHP 7.1 environment on a lark -- uploading a job works as far as actually putting a document into var/documents/user/job/upload, but the webpage then throws "An error occurred during execution; please try again later." and the job status is listed as pending.

Might be a problem with the Pathfinder module, might be something else, and an up-port to PHP 7 isn't a huge priority.

axfelix avatar Feb 09 '18 03:02 axfelix

(FYI on drop-dead dates: http://php.net/supported-versions.php)

asmecher avatar Feb 09 '18 05:02 asmecher

This is now happening on upstream PHP5.6 without any output, which is pretty dire.

@kaschioudi , do you have capacity to troubleshoot this anytime soon? There's nothing useful being logged and it's way over my head as far as my PHP experience...

axfelix avatar May 17 '18 19:05 axfelix

Actually, nevermind, was able to get something by turning up the log level on newest 5.6, unlike 7.x. It looks like it's the CERMINE output not being written to a file properly?

These logs are in reverse chronological order, I can verify that output file doesn't exist.

2018/05/17 19:41:15 |   | DEBUG | Couldn't load command output xml. LIBXML error:failed to load external entity "/var/www/html/var/documents/1/5/document_from_pdf.xml"
2018/05/17 19:41:15 |   | DEBUG | CERMINE output:
2018/05/17 19:41:15 |   | DEBUG | CERMINE is executing:java -cp 'vendor/CeON/CERMINE/cermine-impl-1.12-jar-with-dependencies.jar' 'pl.edu.icm.cermine.ContentExtractor' -path 'var/documents/1/5/cermine' 2> /dev/null

This is timely because I was just talking in https://github.com/pkp/ots/issues/142 about how our CLI output redirection seems really overcomplicated and I was hesitant to develop against it...

The code is in here, not sure if anything immediately jumps out as deprecated.

https://github.com/pkp/ots/blob/master/module/Cermine/src/Cermine/Model/Converter/Cermine.php

axfelix avatar May 17 '18 19:05 axfelix

@kaschioudi, let me know when you have the bandwidth for this -- it'll be a big issue pretty soon...

axfelix avatar Jun 07 '18 18:06 axfelix

I could look at this next week if it's fine with @asmecher.

kaschioudi avatar Jun 08 '18 16:06 kaschioudi

Yes, it's fine with me.

asmecher avatar Jun 08 '18 17:06 asmecher

@axfelix : regarding your install failling on Cermine job, could you check if 'vendor/CeON/CERMINE/cermine-impl-1.12-jar-with-dependencies.jar' file was downloaded?

My install was failing on Cermine job and I just realized that the jar file was missing even though I had downloaded the dependencies using composer. Running composer again downloaded the file. After that I passed cermine's stage.

kaschioudi avatar Jun 21 '18 16:06 kaschioudi

oh, good to know! did you make it the whole way through?

axfelix avatar Jun 21 '18 16:06 axfelix

no. currently stuck at bibtexreferences stage.

kaschioudi avatar Jun 21 '18 17:06 kaschioudi

@axfelix : When you get a chance please try this (https://github.com/pkp/ots/commit/c7bc8112e884f142274cf80aa63f221c5329cc00) and let me know know if you can see the logs.

kaschioudi avatar Jun 21 '18 17:06 kaschioudi