shelfio / libreoffice-lambda-layer

MIT License
113 stars 22 forks source link

/bin/sh: /tmp/instdir/program/soffice.bin: No such file or directory #35

Open onhate opened 3 years ago

onhate commented 3 years ago

I'm using the layer arn:aws:lambda:sa-east-1:764866452798:layer:libreoffice-brotli:1 and after unpacking it I cannot see the soffice.bin binary.

This is the output of ls -lahR /tmp on my lambda after unpacking.

/tmp/:
total 1.4M
drwx------  3 sbx_user1051  990 4.0K Mar 16 21:30 .
dr-xr-xr-x 17 root         root 4.0K Jan 19 12:51 ..
-rw-rw-r--  1 sbx_user1051  990 1.4M Mar 16 21:30 file.docx
drwxr-xr-x  4 sbx_user1051  990 4.0K Mar 16 21:30 instdir

/tmp/instdir:
total 32K
drwxr-xr-x 4 sbx_user1051 990 4.0K Mar 16 21:30 .
drwx------ 3 sbx_user1051 990 4.0K Mar 16 21:30 ..
-rw-r--r-- 1 sbx_user1051 990  15K Jan  5  2020 .DS_Store
drwxr-xr-x 2 sbx_user1051 990 4.0K Jan 10  2020 program
drwxr-xr-x 4 sbx_user1051 990 4.0K Mar 16 21:30 sdk
-rwxr-xr-x 1 sbx_user1051 990    0 Jan  1  1970 .wh..wh..opq

/tmp/instdir/program:
total 5.9M
drwxr-xr-x 2 sbx_user1051 990 4.0K Jan 10  2020 .
drwxr-xr-x 4 sbx_user1051 990 4.0K Mar 16 21:30 ..
-rw-r--r-- 1 sbx_user1051 990 2.3K Jan  5  2020 fundamentalrc
-rwxr-xr-x 1 sbx_user1051 990 1.9M Jan  5  2020 libclucene.so
-rwxr-xr-x 1 sbx_user1051 990 321K Jan  5  2020 libgielo.so
-rwxr-xr-x 1 sbx_user1051 990 569K Jan  5  2020 libGL.so.1
-rwxr-xr-x 1 sbx_user1051 990  80K Jan  5  2020 libhyphenlo.so
-rwxr-xr-x 1 sbx_user1051 990 2.3M Jan  5  2020 liblocaledata_euro.so
-rwxr-xr-x 1 sbx_user1051 990  39K Jan  5  2020 libodfflatxmllo.so
-rwxr-xr-x 1 sbx_user1051 990  27K Jan  5  2020 libsmdlo.so
-rwxr-xr-x 1 sbx_user1051 990 521K Jan  5  2020 libucbhelper.so
-rwxr-xr-x 1 sbx_user1051 990 236K Jan  5  2020 libucpftp1.so
-rw-r--r-- 1 sbx_user1051 990   24 Jan  5  2020 pagein-writer
-rwxr-xr-x 1 sbx_user1051 990  11K Jan  5  2020 regview

/tmp/instdir/sdk:
total 24K
drwxr-xr-x 4 sbx_user1051 990 4.0K Mar 16 21:30 .
drwxr-xr-x 4 sbx_user1051 990 4.0K Mar 16 21:30 ..
drwxr-xr-x 2 sbx_user1051 990 4.0K Jan  5  2020 bin
-rw-r--r-- 1 sbx_user1051 990 6.1K Jan  5  2020 .DS_Store
drwxr-xr-x 2 sbx_user1051 990 4.0K Jan  5  2020 lib

/tmp/instdir/sdk/bin:
total 840K
drwxr-xr-x 2 sbx_user1051 990 4.0K Jan  5  2020 .
drwxr-xr-x 4 sbx_user1051 990 4.0K Mar 16 21:30 ..
-rwxr-xr-x 1 sbx_user1051 990 239K Jan  5  2020 cppumaker
-rwxr-xr-x 1 sbx_user1051 990 237K Jan  5  2020 idlc
-rwxr-xr-x 1 sbx_user1051 990 198K Jan  5  2020 javamaker
-rwxr-xr-x 1 sbx_user1051 990  96K Jan  5  2020 ucpp
-rwxr-xr-x 1 sbx_user1051 990  54K Jan  5  2020 unoidl-check

/tmp/instdir/sdk/lib:
total 8.0K
drwxr-xr-x 2 sbx_user1051 990 4.0K Jan  5  2020 .
drwxr-xr-x 4 sbx_user1051 990 4.0K Mar 16 21:30 ..
lrwxrwxrwx 1 sbx_user1051 990   40 Mar 16 21:30 libuno_cppuhelpergcc3.so -> ../../program/libuno_cppuhelpergcc3.so.3
lrwxrwxrwx 1 sbx_user1051 990   30 Mar 16 21:30 libuno_cppu.so -> ../../program/libuno_cppu.so.3
lrwxrwxrwx 1 sbx_user1051 990   43 Mar 16 21:30 libuno_purpenvhelpergcc3.so -> ../../program/libuno_purpenvhelpergcc3.so.3
lrwxrwxrwx 1 sbx_user1051 990   39 Mar 16 21:30 libuno_salhelpergcc3.so -> ../../program/libuno_salhelpergcc3.so.3
lrwxrwxrwx 1 sbx_user1051 990   29 Mar 16 21:30 libuno_sal.so -> ../../program/libuno_sal.so.3
AlessandroAnnini commented 3 years ago

Hi @onhate, did you solve this?

mo-amnesia commented 2 years ago

This error has started happening with me as well. Any solution for this?

yisacc commented 2 years ago

Am facing this issue @onhate did you find a work around

vladholubiev commented 2 years ago

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.