Comments (9)
Okay it seems that only layer.tar.gz.zip
is broken, layer.tar.br.zip
works well after applying twice call
hack.
They even have different size after unpacking - ~250mb for .gz (oh false hope) instead of ~350mb of .br.
from serverless-libreoffice.
Hey @Rudigern,
What Lambda runtime do you use? Could you please share the file you're trying to convert? What's the desired output file format?
Yeah, you noticed it right. Running the command twice is worth trying. Did it help you?
from serverless-libreoffice.
@vladgolubev Using NodeJS 12x. I've used two different files and run it against the old Lambda function and the old one works. I do run it twice but the exception still gets thrown and there is no output file however there is still that long string of numbers that occurs in the console.
2,32,40,99,111,114,101,32,100,117,109,112,101,100,41,32,46,47,105,110,115,116,100,105,114,47,112
…
Whats the error that occurs to need to run it twice?
Also I'm using the Lambda Layer at
arn:aws:lambda:ap-southeast-2:764866452798:layer:libreoffice-gzip:1
from serverless-libreoffice.
Hello,
I have this same error converting a docx file to pdf:
terminate called after throwing an instance of 'com::sun::star::container::NoSuchElementException'
sh: line 1: 15 Aborted (core dumped) instdir/program/soffice.bin --headless --norestore --invisible --nodefault --nofirststartwizard --nolockcheck --nologo --norestore --convert-to pdf --outdir /tmp test.docx
I'm using Python 3.8 (Amazon Linux 2)
Lambda Layer: arn:aws:lambda:us-east-1:764866452798:layer:libreoffice-gzip:1
from serverless-libreoffice.
Looks like someone else has come across this issue too.
from serverless-libreoffice.
Same here trying to run hello world test from https://github.com/shelfio/aws-lambda-libreoffice/blob/master/test.js on both lambci/lambda:nodejs10.x
and lambci/lambda:nodejs12.x
using new libreoffice build. Running command twice doesn't help.
Here is command i used (works well with previous libre build)
cd /tmp && \"/tmp/instdir/program/soffice.bin\" --headless --invisible --nodefault --view --nolockcheck --nologo --norestore --nofirststartwizard --convert-to pdf:impress_pdf_Export --outdir \"/tmp\" \"/tmp/test.txt\"
from serverless-libreoffice.
I've confirmed that as @fughur has said, the tar.gz
is broken. I've zipped up the compiled version of tar.br
and as a tar.gz
(I couldn't be bothered changing the function to accommodate yet) and it works. It's missing a whole bunch of fonts that I'll have to look to add but now it works.
from serverless-libreoffice.
Can confirm. Running this on an Amazon Linux 2 machine, the binary extracted from lo.tar.gz
in release 6.4.0.1 threw this error, even when running it from the command line. Binary extracted from lo.tar.br
(unpacked by referencing this code) works from the command line without calling it twice. Running the binary from lo.tar.br
in a node runtime works, but only after calling it twice.
from serverless-libreoffice.
same error here when running on AWS Lambda
/tmp/instdir/program/soffice.bin --headless --invisible --nodefault --nofirststartwizard --nolockcheck --nologo --norestore --convert-to odt --outdir /tmp /tmp/target.txt
from serverless-libreoffice.
Related Issues (20)
- Formatting differences in docx-->pdf conversion vs locally run libreoffice HOT 1
- Convert excel file to pdf HOT 2
- Can't start lambda HOT 2
- Can I use it to convert files to docx instead of PDF?
- Azure functions: error while loading shared libraries: libssl3.so HOT 7
- /tmp/instdir/program/oosplash: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory HOT 1
- Can't compile against Amazon Linux 2 HOT 5
- /tmp/instdir/program/soffice.bin: error while loading shared libraries: libmergedlo.so: cannot open shared object file: No such file or directory HOT 1
- Fontconfig error: Cannot load default config file HOT 3
- Error: Please verify input parameters... on conversion from docx with Table of Contents HOT 9
- Incorrect result of .msg files conversion HOT 2
- Python Example HOT 3
- Conversion html to pdf with mistakes
- compile.sh for 6.4.0.1
- How to compile libreoffice to make it support other languages like CJK etc?
- Docker deamon exits on tar -xf lo.tar.gz with (duplicates of file paths not supported):
- Unable to convert doc file to pdf file
- Issue converting to pdf, getting NoSuchElementException
- AWS Lambda Python 3.9 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-libreoffice.