Comments (4)
Yes, this looks like a bug in the Libreoffice itself. I've seen problems with larger documents as well
from aws-lambda-libreoffice.
ok, maybe the newer version would work.
btw, when that happens, aws-lambda-libreoffice/lib/convert.js would throw an error as it fails to rm the input file.
Error: Command failed: rm /tmp/RealPropertyCasebook_text.docx rm: cannot remove
‘/tmp/RealPropertyCasebook_text.docx’: No such file or directory at checkExecSyncError (child_process.js:635:11)
at execSync (child_process.js:671:15)
at convertTo (/var/task/node_modules/@shelf/aws-lambda-libreoffice/lib/convert.js:58:31)
at runMicrotasks (<anonymous>) at processTicksAndRejections
(internal/process/task_queues.js:97:5) at async LibreOfficeService.convertToPdf (/var/task/services/libreoffice-service.js:173:7)
at async Runtime.exports.handler (/var/task/app.js:102:15) { status: 1, signal: null, output: ...
from aws-lambda-libreoffice.
I get this error as well, even with smaller files. I put the file 'document.docx' in the tmp folder right in the function environment, and it gives me
"errorType": "Error", "errorMessage": "Command failed: rm /tmp/tmp/document.docx\nrm: cannot remove ‘/tmp/tmp/document.docx’: No such file or directory\n"
And logs Error: source file could not be loaded
as well. Any solutions?
from aws-lambda-libreoffice.
We've released a major version of this package that works with the latest LibreOffice 7.3!
Check out the docs for a new package here.
We're not going to support the previous version of a package that worked with a Lambda Layer and an old 6.4 version of LibreOffice.
Feel free to (re)-open a new issue in regards to the recent package version.
from aws-lambda-libreoffice.
Related Issues (20)
- We should fork this for Google Cloud Functions too.
- Failed to convert if instance of lambda if re-used HOT 6
- LibreOffice 7.0.6.2 HOT 8
- convertTo docx generates blank document HOT 3
- Suggestion: increase memory recommendation HOT 1
- default input / output path HOT 1
- Dependency Dashboard
- errors if filename doesn't have an extension HOT 2
- Cannot destructure property `inputPath` of 'undefined' or 'null' HOT 1
- Hyperlinks Missing in PDF HOT 1
- javaldx: Could not find a Java Runtime Environment! HOT 6
- Converting docx (downloaded from s3) to pdf (uploaded to s3) HOT 2
- Getting Error While Building Docker Image HOT 4
- Breaks intermittently due to Thread::create failed error
- Question about unpack() HOT 1
- Error 403 while building docker image HOT 1
- ENOENT: no such file or directory, open '/opt/lo.tar.br' HOT 1
- AWS Lambda Layer Issues
- javaldx: Could not find a Java Runtime Environment!
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 aws-lambda-libreoffice.