2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AWS LambdaでParamikoを使う際にエラー

Posted at

デプロイパッケージ作成環境

デプロイ

以下を1つのzipにまとめる

  • lib/python2.7/site-packages
  • lib64/python2.7/site-packages
  • その他実行に必要なファイル

発生したエラー

libffi-ce7fcc27.so.6.0.4が存在しないと言われる。

START RequestId: 41c696bf-d590-11e7-9db7-39e26d6c6a84 Version: $LATEST
Unable to import module 'handler': libffi-ce7fcc27.so.6.0.4: cannot open shared object file: No such file or directory

END RequestId: 41c696bf-d590-11e7-9db7-39e26d6c6a84
REPORT RequestId: 41c696bf-d590-11e7-9db7-39e26d6c6a84	Duration: 0.46 ms	Billed Duration: 100 ms 	Memory Size: 128 MB	Max Memory Used: 27 MB	

対処

該当のファイルは

lib64/python2.7/site-packages/.libs_cffi_backend/libffi-ce7fcc27.so.6.0.4

に存在している。このファイルをプロジェクトのルートに配置してデプロイ用zipを作成すればいい。

Lambdaの環境変数 LD_LIBRARY_PATH でデプロイパッケージ内のpathを追加する方法がわからなかった…

2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?