Islandora / Crayfish

A collection of Islandora microservices, lovingly known as Crayfish.
MIT License
9 stars 29 forks source link

[BUG] Hypercube broken pipe error with PHP deprecation error on PHP 8.1+ISLE #176

Open alxp opened 1 year ago

alxp commented 1 year ago

What steps does it take to reproduce the issue?

Create a site with the ISLE Site Template, which runs on PHP 8.1.

With Islandora Text Extraction enabled, verify that a media derivative context is configured with a reaction that carries out a text extraction action.

This is configured in the starter site by default.

Create a Repository Item node of type Paged Content, then add one or more members with model Page.

Add media to those pages of type File and upload a TIFF with embedded text.

No Extracted Text media is created.

The Hypercube logs show the following errors:


isle-site-template-hypercube-dev-1  | 172.19.0.15 - - [25/Sep/2023:20:23:09 +0000] "GET / HTTP/1.1" 500 84265 "-" "Apache-HttpClient/4.5.13 (Java/17.0.8)" "-"
isle-site-template-hypercube-dev-1  | [2023-09-25 20:23:10] request.INFO: Matched route "hypercube_convert". {"route":"hypercube_convert","route_parameters":{"_route":"hypercube_convert","_controller":"App\\Islandora\\Hypercube\\Controller\\HypercubeController::ocr"},"request_uri":"http://hypercube:8000/","method":"GET"} []
isle-site-template-hypercube-dev-1  | [2023-09-25 20:23:10] security.INFO: Guard authentication successful! {"token":"[object] (Symfony\\Component\\Security\\Guard\\Token\\PostAuthenticationGuardToken: PostAuthenticationGuardToken(user=\"admin\", authenticated=true, roles=\"authenticated, fedoraadmin\"))","authenticator":"Islandora\\Crayfish\\Commons\\Syn\\JwtAuthenticator"} []
isle-site-template-hypercube-dev-1  | [2023-09-25 20:23:10] php.INFO: Deprecated: fopen(): Passing null to parameter #3 ($use_include_path) of type bool is deprecated {"exception":"[object] (ErrorException(code: 0): Deprecated: fopen(): Passing null to parameter #3 ($use_include_path) of type bool is deprecated at /var/www/crayfish/Hypercube/vendor/guzzlehttp/psr7/src/StreamWrapper.php:45)"} []
isle-site-template-hypercube-dev-1  | [2023-09-25 20:23:10] request.CRITICAL: Uncaught PHP Exception ErrorException: "Notice: fwrite(): Write of 1024 bytes failed with errno=32 Broken pipe" at /var/www/crayfish/Hypercube/vendor/islandora/crayfish-commons/CmdExecuteService.php line 82 {"exception":"[object] (ErrorException(code: 0): Notice: fwrite(): Write of 1024 bytes failed with errno=32 Broken pipe at /var/www/crayfish/Hypercube/vendor/islandora/crayfish-commons/CmdExecuteService.php:82)"} []
isle-site-template-hypercube-dev-1  | 172.19.0.15 - - [25/Sep/2023:20:23:10 +0000] "GET / HTTP/1.1" 500 84265 "-" "Apache-HttpClient/4.5.13 (Java/17.0.8)" "-"
   ^[^[

Editor,, Administrator

Text extractions are successfully executed.

Which version of Islandora are you using?

ISLE Site Template run via automatic setup script on ~ Sept 21, 2023.

Crayfish container version: "Image": "sha256:399ac4c2df9f71f0609b0a115b34072e964bbbda2f947a4a442c52bddbc71da2", "ResolvConfPath": "/var/lib/docker/containers/6dfe5dd791d1d89d14e32fbc2722a253f2381b9779708051a490dc7de21b1c29/resolv.con

Any related open or closed issues to this bug report?

Screenshots:

joecorall commented 1 year ago

This seems to be a php 8.1 issue or perhaps something else with the docker build in isle-buildkit 2.x...

Editing docker-compose to use hypercube:1.0.10 resolves the issue for me for the time being.

rosiel commented 1 year ago

This may be completed in 2.0.4 - needs testing/verification.