简体   繁体   English

AWS Elastic Beanstalk部署无法正常工作

[英]AWS Elastic Beanstalk deploy not working

I'm new to AWS Eleastic Beanstalk. 我是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' 我正在尝试通过awsebcli部署新应用程序,并且出现以下错误:“错误:OSError :: [WinError 145]目录不为空'.elasticbeanstalk \\ app_versions'

I was able to init the eb application. 我能够初始化eb应用程序。 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. “ eb deploy”在项目根目录的“ .elasticbeanstalk”文件夹中临时创建一个子文件夹“ app_versions”,其中包含要上载到S3的zip文件。 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. 对我来说,原因是文件同步软件(类似于Dropbox)正在监视整个项目中的文件/文件夹更改。

I'm developing a Django Application and I get this message - 我正在开发Django应用程序,并且收到以下消息-

Uploading app to S3. 正在将应用上传到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 禁用/暂停文件同步应用程序,例如: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" 删除(如果存在)mysite.elasticbeanstalk \\ app_versions,不用担心,每次键入“ eb deploy”都会创建它

  3. Open Command prompt in the folder mysite\\ and run the command 在文件夹mysite \\中打开命令提示符,然后运行命令

    pip freeze > requirements.txt

Navigate mysite\\ and run again eb deploy should work 导航mysite \\并再次运行eb deploy应该可以工作

The message I get when it's not working 当我不工作时收到的消息 在此处输入图片说明

The message I get when it's working 工作时收到的消息 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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