-
Notifications
You must be signed in to change notification settings - Fork 388
libbz2.so.1 issue #138
Comments
I could fix the issues by adding few more dependencies: Download libraries we need to run in lambdaWORKDIR /tmp Copy over the binaries and librariesRUN cp /tmp/usr/bin/clamscan /tmp/usr/bin/freshclam /tmp/usr/lib64/* /opt/app/bin/ |
FYI, if you're getting this error, you're probably running in python 3.8 instead of 3.7 as listed in the docs :) |
Any ideas how to update python to 3.9 in this function? |
After creating project when running the lamda function I'm getting the following error:
Starting clamscan of /tmp/bucket-file-upload/file_example_JPG_1MB copy.jpg
clamscan output:
./bin/clamscan: error while loading shared libraries: libbz2.so.1: cannot open shared object file: No such file or directory
Unexpected exit code from clamscan: 127
[ERROR] Exception: Unexpected exit code from clamscan: 127.
Traceback (most recent call last):
File "/var/task/scan.py", line 236, in lambda_handler
scan_result, scan_signature = clamav.scan_file(file_path)
File "/var/task/clamav.py", line 210, in scan_file
raise Exception(msg)
Did anybody face this issue recently ? Please suggest.
The text was updated successfully, but these errors were encountered: