LoginSignup
1
1

More than 5 years have passed since last update.

eb deploy 時に Source bundle is empty or exceeds maximum allowed size エラーになる

Posted at

問題

eb deploy を実行したら、以下のようなエラーメッセージに遭遇し、何度再試行しても解決しない問題に遭遇した. なお、該当のリリースは 10MB 以下であり、ここでいう最大サイズ制限には引っかかっていない模様.

$ eb deploy
Creating application version archive "cf4c".
ERROR: Source bundle is empty or exceeds maximum allowed size: 524288000.

調査

--verbose オプションを付けて実行したところ、 S3 Object already exists. Skipping upload. なる一文を発見.

$ eb deploy staging --verbose
INFO: Deploying code to staging in region ap-northeast-1
INFO: Getting version label from git with git-describe
INFO: S3 Object already exists. Skipping upload.
INFO: Creating AppVersion cf4c
ERROR: InvalidParameterValueError - Source bundle is empty or exceeds maximum allowed size: 524288000.

実際に S3 Bucket を確認したところ、該当のリリース(上記だと cf4c.zip)が 0Byte で書き込まれていた.

解決策

S3 Bucket 内の該当リリースを削除してから再度 eb deploy したところ、正しく deploy された.

原因

恐らく、最初の eb deploy 時に S3 への upload に失敗していたと思われるが、当時のログが残っておらず、時すでにおすしである.

参考

1
1
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
1
1