Error in UI While uploading Manuscript or any supporting files

Hello @ryan.dix ,
We are facing an issue while uploading documents/ Manuscript in the test server, could you please assist us with how to proceed? We’ve attached screenshots that show the error details.


Steps:-

  1. Login as an Administrator
  2. Clicked on New Submission button
  3. Tried to upload a Manuscript which is a pdf Document.
  4. Not able to upload, and this error was shown (Please refer Screenshot) with the details of the error in the page.
    Please let me know if you need any further details.
    Thanks,
    Beth

Thanks @ElizabethShajiPhilip - @yannis can help with this I think. I’ll also let the team know to look at this post.

Hi @ElizabethShajiPhilip. Is this happening for a specific pdf or all pdfs? Any chance you can share the file you’re trying to upload?

Thank you, @adam

@yannis, Yes, it is happening for all the files. I will upload the test file which I tried to upload.

Not able to upload any files. This is a sample test file which is a pdf and the contents is provided below:
“Test scenario”

I tried locally and on our staging site with a simple pdf and it seems to work fine. Can you send me the file to yannis@coko.foundation?

Sure, Thank you

I tried this file and it seems to convert fine. Which likely points to an issue with the deployment.

Do you have server logs that you can share here? What happens at the moment of failure is of interest.

Also a sanity check: Have you set up an S3 bucket or equivalent? I’m checking the code and the first thing it does is upload the file in the bucket. If you haven’t set this up, please do and try again. If you have, can you check if the file has been uploaded to the bucket?

Let me know if you need more detailed guidance.

Thank you, @yannis . I have reached out to the team and let you know the details ASAP.

Hi @yannis
The link used by the team for installation is :- (kotahi / Kotahi · GitLab)
Is this the full guide? Or do you have any other step by step guide for initial setup please?

Yes, that’s out of date unfortunately.

To run the app in production you’ll need some things running beforehand.

The 3 microservices

  • Pagedjs: responsible for creating pdf files
  • Xsweet: responsible for conversion of docx files to html (so that it can be editable in the in-app word processor)
  • Anystyle: responsible for citation parsing

Each of these microservices will needs its own postgres database running.

These services are connected to the server via environment variable files that start with SERVICE_. The environment variables tell kotahi server where the service is located (ie. its url) and the credentials that should be used. If you don’t have credentials for a service, you need to generate them from the service itself, then copy paste them into your variables. See the creating credentials section here for more details: cokoapps / pagedjs · GitLab. The process is the same for each service.

Once those are up and running, you’ll need to connect kotahi server to object storage for uploading files to the cloud. This is usually done with an out-of-the-box solution like AWS S3, Google Cloud Storage or any S3-compatible solution. You could also roll out self-hosted storage with something like minio like we do for development. The connection between the server and storage is handled by the S3_ environment variable files.

Finally, you’ll need a database for kotahi server itself (handled by the POSTGRES_ variables).

Can we start by checking that the above is done and working correctly? If it does, and you’re still encountering an error, do you have any server side error logs from (a) when the server starts or (b) from when you’re uploading the pdf?

I’ll work on getting new docs up in the near future.

I’m pasting an image of the architecture to make it more clear.