Back

Function failing with Internal Server Error without information

  • 0
  • Self Hosted
  • Functions
virusbear
13 Jul, 2024, 14:34

I am currently trying to build a function with the kotlin runtime, which is notified if a PDF file is added to a bucket and convert this PDF into individual images (per page) to place inside another bucket. I got everything working for small PDFs right now. Just as a test I tried everything with a 156 page PDF. As expected I had to increase the timeout of the function (for testing purposes I used the maximum of 900 seconds).

Unfortunately, I am not able to execute this function successfully. After 3min, the function is flagged as failed with Status Code 500. No information is available in the execution, the openruntime-executor logs are empty and even the kotlin-1.9 runtime container logs are empty. After being flagged as failed, the function is rescheduled multiple times, which results in a large amount of generated images in the target bucket.

All this is currently tested on a self hosted fresh installation. (compose file and .env attached).

Is there any way for me to get some insights into what is going wrong?

TL;DR
Function to convert PDFs to images is failing with Internal Server Error 500 after 3 min, even with increased timeout. Logs show no info. Solution: Look into increasing memory allocation or checking for any limits in settings.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more