简体   繁体   中英

AWS Elastic Beanstalk deploy not working

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.

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.

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 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM