“处理”错误消息将MVC4部署到Elastic Beanstalk

时间:2012-12-04 20:18:41

标签: asp.net-mvc amazon-web-services visual-studio-2012 elastic-beanstalk

步骤

  • 右键单击项目,"发布到AWS"
  • 使用模板部署新应用程序:" AWS Elastic Beanstalk"
  • 姓名:" mysite",说明" mysite",勾选"逐步部署申请",下一步
  • 环境名称:" mysite",description" mysite",默认网址,下一页
  • 容器64位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分钟就会发生故障..然后我会想到超时。但要解决这个问题呢?我已经订购了光纤宽带但它没有一周到达;)如果我重新部署到同一个应用程序,它会很快失败:只需一分钟,而不是10分钟。

应用程序"存在"在我的AWS浏览器中,但它下面没有环境。

尝试过的事情

  • 我已卸载并重新安装SDK
  • 我删除了AppData \ Local \ AWSDeploy文件夹(似乎是本地git repo)
  • 多次部署到相同的EB应用程序或新的EB应用程序

1 个答案:

答案 0 :(得分:0)

如果运行状况检查网址没有返回200,那么您的应用将无法部署。因此,如果您在启动时发生了某些事情,例如检查数据库尚未设置,并且您的健康检查网址正在访问该页面,那么您将收到此错误。