Open dallanmc opened 2 years ago
Hm, not sure what is this. Never seen such error. What command do you run with the LibreOffice? Any specific unusual CLI argument?
I'm using the handler js from the readme so it's
const {execSync} = require('child_process');
const {writeFileSync} = require('fs');
module.exports.handler = () => {
writeFileSync('/tmp/hello.txt', Buffer.from('Hello World!'));
execSync(`
cd /tmp
libreoffice7.4 --headless --invisible --nodefault --view --nolockcheck --nologo --norestore --convert-to pdf --outdir /tmp ./hello.txt
`);
};
Same here...
@dallanmc any luck here?
Using the handler.js code from the readme, I get the following error in the cloudwatch logs when I run it
I have set the environment variable
HOME
to/tmp
as advised in the readme