AWS Elastic Beanstalk deploy not working

2019-07-25 12:23发布

I'm new to AWS Eleastic Beanstalk. I'm trying to deploy a new application through awsebcli and I'm getting the following error: "Error: OSError :: [WinError 145] The directory is not empty '.elasticbeanstalk\app_versions'

I was able to init the eb application. I am running the command line under administrator privileges.

Please Help.

2条回答
一纸荒年 Trace。
2楼-- · 2019-07-25 12:52

I've just ran into the same issue.

"eb deploy" temporarily creates a subfolder "app_versions" in the ".elasticbeanstalk" folder at the root of the project that contains the zip file to be uploaded to S3. Once done, the folder gets deleted. Check whether any software on your computer might be responsible for preventing this.

The cause for me was a files-syncing software (Dropbox-like) that was watching the entire project for file/folder changes.

查看更多
forever°为你锁心
3楼-- · 2019-07-25 12:54

I'm developing a Django Application and I get this message -

Uploading app to S3. This may take a while. Upload Complete.

How to fix every time it happens

  1. Disable/Pause file syncing applications, such as: Google Drive Sync/OneDrive/DropBox

  2. Delete the (If exists) mysite.elasticbeanstalk\app_versions , don't worry, it's created each time you type "eb deploy"

  3. Open Command prompt in the folder mysite\ and run the command

    pip freeze > requirements.txt

Navigate mysite\ and run again eb deploy should work

The message I get when it's not working enter image description here

The message I get when it's working enter image description here

查看更多
登录 后发表回答