Closed abdulbarik closed 6 years ago
I'm getting the same error, any solution?
I tried multiple way but no luck :(
@abdulbarik can you please paste the output of ls -al
in the local directory where lo.tar.gz
is downloaded?
And by the way, I recommend using https://github.com/vladgolubev/aws-lambda-libreoffice, it is much smaller and tested in production
@vladgolubev I ran the following via lambda to get the contents of the /tmp directory:
fs.readdirSync('/tmp').forEach(file => { console.log(file); })
It does show that lo.tar.gz is the only file in the directory.
I also ran chmod on it to give all users rwx permissions, just in case it was a permissions issue.
Additionally, I unpacked the tar file, then gzipped it myself and uploaded it. When I tried to use gzip to unpack in the lambda I get a 'not in gzip format' error.
Any ideas?
Thanks, @vladgolubev , your recommendation is working great & smoothly. @jonogan You can also use second approach. Closing the issue.
I had a similar problem, but I needed to adjust the permissions for the individual lo.tar.gz in the S3 bucket. oops
Hi, First of all thanks for sharing this awesome module. I am trying to use the complied file but getting the error added on subject. I have followed the doc step by step. I uploaded the lo.tar.gz on S3 bucket and created a lambda function with code which is added by you. I am getting following error:
tar: This does not look like a tar archive