Git Product home page Git Product logo

Comments (9)

fughur avatar fughur commented on September 28, 2024 3

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.

vladholubiev avatar vladholubiev commented on September 28, 2024

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.

Rudigern avatar Rudigern commented on September 28, 2024

@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.

tpiske avatar tpiske commented on September 28, 2024

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.

Rudigern avatar Rudigern commented on September 28, 2024

Looks like someone else has come across this issue too.

from serverless-libreoffice.

fughur avatar fughur commented on September 28, 2024

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.

Rudigern avatar Rudigern commented on September 28, 2024

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.

curtiseinsmann avatar curtiseinsmann commented on September 28, 2024

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.

lanlin avatar lanlin commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.