AWS Elastic Beanstalk deploy not working

2019-07-25 12:30发布

问题:

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.

回答1:

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.



回答2:

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

The message I get when it's working