shelfio / libreoffice-lambda-base-image

MIT License
30 stars 19 forks source link

Getting "Error: Please verify input parameters..." #11

Open dallanmc opened 2 years ago

dallanmc commented 2 years ago

Using the handler.js code from the readme, I get the following error in the cloudwatch logs when I run it

Error: Please verify input parameters... (SfxBaseModel::impl_store <file:///tmp/hello.pdf> failed: 0xc10(Error Area:Io Class:Write Code:16) at /home/buildslave/source/libo-core/sfx2/source/doc/sfxbasemodel.cxx:3207 at /home/buildslave/source/libo-core/sfx2/source/doc/sfxbasemodel.cxx:1783)

I have set the environment variable HOME to /tmp as advised in the readme

vladholubiev commented 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?

dallanmc commented 2 years ago

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
  `);
};
doronneumann commented 2 years ago

Same here...

vladyslav-semenets commented 1 year ago

@dallanmc any luck here?