AWS代码部署,脚本失败,退出代码为66

时间:2016-04-04 09:18:15

标签: amazon-web-services iis aws-code-deploy

我正在使用AWS Code Deploy将ASP.NET应用程序部署到自动缩放组中。

部署此错误时:Script at specified location: application-start.bat failed with exit code 66

从我所看到的错误代码66 是" The network resource type is not correct",在这种情况下非常棒......

我的包中包含appspec.yml文件,如下所示:

version: 0.0
os: windows
files:
  - source: ./
    destination: c:\inetpub\wwwroot
hooks:
  ApplicationStop:
    - location: application-stop.bat
      timeout: 900
  ApplicationStart :
    - location: application-start.bat
      timeout: 900

bat 2文件(application-stop / application-start)每个只包含一行

iisreset /stop

iisreset /start

当我去EC2实例查看aws代码部署日志时,我不太清楚

  

2016-04-04 08:58:42错误[codedeploy-agent(2848)]:InstanceAgent :: Plugins :: CodeDeployPlugin :: CommandPoller:执行期间出错:InstanceAgent :: Plugins :: CodeDeployPlugin :: ScriptError - Script在指定位置:application-start.bat失败,退出代码为66

     

C:/Windows/TEMP/ocr512.tmp/src/lib/instance_agent/plugins/codedeploy/hook_executor.rb:150:in' execute_script'

     

C:/Windows/TEMP/ocr512.tmp/src/lib/instance_agent/plugins/codedeploy/hook_executor.rb:107:在'阻止(2级)执行'

是否有人遇到同样的问题并找到解决方法?

0 个答案:

没有答案