HTTP Error. when upload document in review and revision step on OJS 3.3.0.13

Hi Everybody,

I was successful in upgrading to the most recent version (OJS 3.3.0.13), and everything is running smoothly from quick submission to publish (without review step). but when we want to do the review step, in the upload document reviews section, an HTTP error occurs when uploading the document. Upon checking, this happens to all host journals, even when using the journal administrator account.


The following is an error log display indicating that there is a problem with permissions in certain php files when uploading files in the review process section of the review step but I haven’t managed to understand what’s going on…

[Sat Feb 04 07:09:10.912961 2023] [fcgid:warn] [pid 2381526:tid 139763713558272] [client 103.105.82.196:52674] mod_fcgid: stderr: PHP Warning: fopen(/home/ojs_data_/ojsdata/journals/8/articles/1536/63de0496dd130.docx): failed to open stream: Permission denied in /home/ejournal/public_html/lib/pkp/lib/vendor/league/flysystem/src/Adapter/Local.php on line 157, referer: https://ejournal.unsub.ac.id/index.php/FKIP/workflow/index/1536/3

[Sat Feb 04 07:09:10.913083 2023] [fcgid:warn] [pid 2381526:tid 139763713558272] [client 103.105.82.196:52674] mod_fcgid: stderr: PHP Fatal error: Uncaught Exception: Unable to write file at journals/8/articles/1536/63de0496dd130.docx. in /home/ejournal/public_html/lib/pkp/classes/services/PKPFileService.inc.php:83, referer: https://ejournal.unsub.ac.id/index.php/FKIP/workflow/index/1536/3

[Sat Feb 04 07:09:10.913110 2023] [fcgid:warn] [pid 2381526:tid 139763713558272] [client 103.105.82.196:52674] mod_fcgid: stderr: Stack trace:, referer: https://ejournal.unsub.ac.id/index.php/FKIP/workflow/index/1536/3

[Sat Feb 04 07:09:10.913135 2023] [fcgid:warn] [pid 2381526:tid 139763713558272] [client 103.105.82.196:52674] mod_fcgid: stderr: #0 /home/ejournal/public_html/lib/pkp/controllers/wizard/fileUpload/form/SubmissionFilesUploadForm.inc.php(148): PKP\Services\PKPFileService->add(), referer: https://ejournal.unsub.ac.id/index.php/FKIP/workflow/index/1536/3

[Sat Feb 04 07:09:10.913158 2023] [fcgid:warn] [pid 2381526:tid 139763713558272] [client 103.105.82.196:52674] mod_fcgid: stderr: #1 /home/ejournal/public_html/lib/pkp/controllers/wizard/fileUpload/FileUploadWizardHandler.inc.php(370): SubmissionFilesUploadForm->execute(), referer: https://ejournal.unsub.ac.id/index.php/FKIP/workflow/index/1536/3

[Sat Feb 04 07:09:10.913181 2023] [fcgid:warn] [pid 2381526:tid 139763713558272] [client 103.105.82.196:52674] mod_fcgid: stderr: #2 /home/ejournal/public_html/lib/pkp/classes/core/PKPRouter.inc.php(395): FileUploadWizardHandler->uploadFile(), referer: https://ejournal.unsub.ac.id/index.php/FKIP/workflow/index/1536/3

[Sat Feb 04 07:09:10.913205 2023] [fcgid:warn] [pid 2381526:tid 139763713558272] [client 103.105.82.196:52674] mod_fcgid: stderr: #3 /home/ejournal/public_html/lib/pkp/classes/core/PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest(), referer: https://ejournal.unsub.ac.id/index.php/FKIP/workflow/index/1536/3

[Sat Feb 04 07:09:10.913228 2023] [fcgid:warn] [pid 2381526:tid 139763713558272] [client 103.105.82.196:52674] mod_fcgid: stderr: #4 /home/ejournal/public_html/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPComponentRouter->route(), referer: https://ejournal.unsub.ac.id/index.php/FKIP/workflow/index/1536/3

[Sat Feb 04 07:09:10.913274 2023] [fcgid:warn] [pid 2381526:tid 139763713558272] [client 103.105.82.196:52674] mod_fcgid: stderr: #5 /home/ejournal/public_html/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch(), referer: https://ejournal.unsub.ac.id/index.php/FKIP/workflow/index/1536/3

[Sat Feb 04 07:09:10.913289 2023] [fcgid:warn] [pid 2381526:tid 139763713558272] [client 103.105.82.196:52674] mod_fcgid: stderr: #6 /home/ejournal/public_html/index.php(68): PKPApplication->execute(), referer: https://ejournal.unsub.ac.id/index.php/FKIP/workflow/index/1536/3

[Sat Feb 04 07:09:10.913301 2023] [fcgid:warn] [pid 2381526:tid 139763713558272] [client 103.105.82.196:52674] mod_fcgid: stderr: #7 {main}, referer: https://ejournal.unsub.ac.id/index.php/FKIP/workflow/index/1536/3

[Sat Feb 04 07:09:10.913313 2023] [fcgid:warn] [pid 2381526:tid 139763713558272] [client 103.105.82.196:52674] mod_fcgid: stderr: thrown in /home/ejournal/public_html/lib/pkp/classes/services/PKPFileService.inc.php on line 83, referer: https://ejournal.unsub.ac.id/index.php/FKIP/workflow/index/1536/3

We really need the success of uploading files at this stage so that authors, reviewers, and editors can communicate directly within the journal system for accreditation purposes. Hopefully the description above can provide a hint for anyone in the know about how to fix it.

Thanks!

Kind regards,
Fajar

Hi!
The key is at this point:

This mean that directory “(/home/ojs_data_/ojsdata/” does not have the correct permissions to write it.

Fix this and try again. And tell us what happened!

Hello, I appreciate the tip, and I think I’ve solved the issue. The files folder still belongs to a different account because we moved the OJS server before upgrading to the most recent version. The solution is as easy as updating the files folder’s owner and groups to match those of the ojs folder, then setting it recursively to ensure that all of the files folder’s contents have the same ownership.

Thank You

1 Like