shelfio / libreoffice-lambda-layer

MIT License
108 stars 21 forks source link

Library dependency fail, libreoffice #29

Open cruzortiz99 opened 4 years ago

cruzortiz99 commented 4 years ago

hi i'm getting this error:

/tmp/instdir/program/soffice.bin: error while loading shared libraries: libmergedlo.so: cannot open shared object file: No such file or directory

the comand is:

/tmp/instdir/program/soffice.bin --headless --norestore --invisible --nodefault --nofirststartwizard --nolockcheck --nologo --convert-to "pdf:writer_pdf_Export" --outdir /tmp /tmp/test.doc

the aws layer is:

arn:aws:lambda:eu-west-1:764866452798:layer:libreoffice-brotli:1

How can i solve this?

randomhash commented 3 years ago

try to check our test, there is example with correct path ;) Also, to catch out what is happening try to list folders inside runtime, it will help you to undestand structure

surgeloft commented 3 years ago

The issue for me was the lambda function was set at default timeout of 6.

This caused the LO unpack to stop halfway and subsequent uses of LO would be missing files.. The brotli unpack takes ~15s on my tests