DocSpring / libreconv

Ruby gem that converts office documents to PDF using LibreOffice / OpenOffice.
MIT License
198 stars 63 forks source link

Anybody running into can't find java error on heroku? #29

Open echan00 opened 4 years ago

echan00 commented 4 years ago

Conversion failed! Output: "", Error: "javaldx: Could not find a Java Runtime Environment!\nWarning: failed to read path from javaldx

I'm getting the above error intermittently. It usually isn't a problem, but sometimes I get the error above during conversion from DOCX to HTML.

echan00 commented 4 years ago

Okay, after more research on this issue. It appears the problem stems from more than one process trying to access LibreOffice within the same Heroku dyno (or worker).

I wonder if it is related to this: https://github.com/DocSpring/libreconv/pull/21

As a resolution for the time being, I am doing a simple rescue, wait and retry to wait for resources to open up before trying to convert a document again