pkp/ots

Starting jobs fails with nothing logged on PHP 7.1

Opened this issue · 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.

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...

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 #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

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

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

Yes, it's fine with me.

@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.

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

no. currently stuck at bibtexreferences stage.

@axfelix : When you get a chance please try this (c7bc811) and let me know know if you can see the logs.