脚步
- 右键单击项目,“发布到 AWS”
- 使用模板部署新应用程序:“AWS Elastic Beanstalk”
- 名称:“mysite”,描述“mysite”,勾选“增量部署应用程序”,下一步
- 环境名称:“mysite”,描述“mysite”,默认 URL,Next
- Container 64-bit Server 2012 w/IIS 8,实例类型 Small,Next
- 勾选“启用 32 位应用程序”,输入有效的通知电子邮件地址,部署
结果
输出窗口显示:
Commencing deployment for project 0x10c-cloud
...building deployment package obj\Debug\Package\Archive...
...deployment package created at E:\dev\path-to-my-stuff\project-here\obj\Debug\Package\Archive
...build of project archive completed succesfully
...starting deployment to AWS Elastic Beanstalk environment 'mysite'
...starting incremental deployment to environment 'mysite'
5-10 分钟后收到错误弹窗:
Error deploying new application: Unhandled error during deployment: Deployment Failed: Deployment to AWS Elastic Beanstalk failed with exception: processing .
Deployment to AWS Elastic Beanstalk environment 'mytest' did not complete successfully
日志文件"C:\Users\Kieren\appdata\local\AWSToolkit\logs\vs2010\log.txt"
包含:
2012-12-04 20:04:21,957 [29] DEBUG Amazon.AWSToolkit.VisualStudio.VS2010Package - Output to AWS output window pane: ...deployment package created at E:\dev\0x10c\Dev\mytest\mytest\obj\Debug\Package\Archive
2012-12-04 20:04:21,957 [7] DEBUG Amazon.AWSToolkit.VisualStudio.VS2010Package - Output to AWS output window pane: ...build of project archive completed succesfully
2012-12-04 20:04:21,957 [7] INFO Amazon.AWSToolkit.VisualStudio.VS2010Package - ...build of project archive completed succesfully
2012-12-04 20:04:21,970 [88] DEBUG Amazon.AWSToolkit.VisualStudio.VS2010Package - Output to AWS output window pane: ...starting deployment to AWS Elastic Beanstalk environment 'mytest'
2012-12-04 20:04:21,971 [88] INFO Amazon.AWSToolkit.ElasticBeanstalk.Commands.DeployNewApplicationCommand - Deploy to AWS Elastic Beanstalk: ...starting deployment to AWS Elastic Beanstalk environment 'mytest'
2012-12-04 20:04:21,974 [88] DEBUG Amazon.AWSToolkit.VisualStudio.VS2010Package - Output to AWS output window pane: ...starting incremental deployment to environment 'mytest'
2012-12-04 20:04:21,974 [88] INFO Amazon.AWSToolkit.ElasticBeanstalk.Commands.DeployNewApplicationCommand - Deploy to AWS Elastic Beanstalk: ...starting incremental deployment to environment 'mytest'
2012-12-04 20:04:21,975 [88] INFO Amazon.AWSToolkit.ElasticBeanstalk.Commands.DeployNewApplicationCommand - ...staging deployment from work folder E:\dev\0x10c\Dev\0x10c-cloud\0x10c-cloud\obj\Debug\Package\Archive
2012-12-04 20:04:21,975 [88] INFO Amazon.AWSToolkit.ElasticBeanstalk.Commands.DeployNewApplicationCommand - ...commit repository root set at C:\Users\Kieren\AppData\Local\AWSDeploy\4e72fcb2\
2012-12-04 20:14:21,416 [88] DEBUG Amazon.AWSToolkit.VisualStudio.VS2010Package - Output to AWS output window pane: Deployment to AWS Elastic Beanstalk failed with exception: processing .
2012-12-04 20:14:21,417 [88] INFO Amazon.AWSToolkit.ElasticBeanstalk.Commands.DeployNewApplicationCommand - Deploy to AWS Elastic Beanstalk: Deployment to AWS Elastic Beanstalk failed with exception: processing .
2012-12-04 20:14:21,417 [88] ERROR Amazon.AWSToolkit.ElasticBeanstalk.Commands.DeployNewApplicationCommand - Deployment to AWS Elastic Beanstalk failed with exception: processing .
2012-12-04 20:14:21,417 [88] DEBUG Amazon.AWSToolkit.VisualStudio.VS2010Package - Output to AWS output window pane: Error deploying new application: Unhandled error during deployment: Deployment Failed: Deployment to AWS Elastic Beanstalk failed with exception: processing .
2012-12-04 20:14:21,417 [88] INFO Amazon.AWSToolkit.ElasticBeanstalk.Commands.DeployNewApplicationCommand - Deploy to AWS Elastic Beanstalk: Error deploying new application: Unhandled error during deployment: Deployment Failed: Deployment to AWS Elastic Beanstalk failed with exception: processing .
2012-12-04 20:14:21,417 [88] ERROR Amazon.AWSToolkit.ElasticBeanstalk.Commands.DeployNewApplicationCommand - Error deploying new application: Unhandled error during deployment: Deployment Failed: Deployment to AWS Elastic Beanstalk failed with exception: processing .
2012-12-04 20:15:07,811 [88] DEBUG Amazon.AWSToolkit.VisualStudio.VS2010Package - Output to AWS output window pane: Deployment to AWS Elastic Beanstalk environment 'mytest' did not complete successfully
2012-12-04 20:15:07,814 [88] INFO Amazon.AWSToolkit.ElasticBeanstalk.Commands.DeployNewApplicationCommand - Deploy to AWS Elastic Beanstalk: Deployment to AWS Elastic Beanstalk environment 'mytest' did not complete successfully
笔记!失败发生在部署开始后几乎正好 10 分钟......然后超时,我想。但是,要修复它吗?...我已经订购了光纤宽带,但它一周后才到货;)另外,如果我重新部署到同一个应用程序,它会更快地失败:仅超过 1 分钟,而不是 10 分钟。
应用程序“存在”在我的 AWS 资源管理器中,但它下面没有环境。
尝试过的事情
- 我已经卸载并重新安装了 SDK
- 我删除了 AppData\Local\AWSDeploy 文件夹(似乎是本地 git repo)
- 多次部署到同一个 EB 应用程序或新的 EB 应用程序