[英]Deployment getting failed in aws code deploy before install
I have created a new instance and attached instance role for it and installed code-deploy agent in it as per the documentaion.我已经创建了一个新实例并为其附加了实例角色,并根据文档在其中安装了代码部署代理。 Then I have created a application and trying to deploy sample revision ie SampleApp_Linux which is provided in aws doc.While creating application I am using AWS codedeply service role which is correct role.然后我创建了一个应用程序并尝试部署示例修订版,即 aws doc 中提供的 SampleApp_Linux。创建应用程序时我使用的是 AWS codedeply 服务角色,这是正确的角色。 I have uploaded my application in s3 bucket.我已将我的应用程序上传到 s3 存储桶中。 Now the issue is when I try to deploy code from s3 bucket it gets fail in third step ie before install .现在的问题是,当我尝试从 s3 存储桶部署代码时,它在第三步即安装之前失败。 As per logs Error CodeUnknownError Script Name MessageNo such file or directory - /opt/codedeploy-agent/deployment-root/57ef2ee1-cbd1-4188-ac4c-44d9419a9cb2/d-YCH2YWYOI/deployment-archive/appspec.yml根据日志 Error CodeUnknownError Script Name MessageNo such file or directory - /opt/codedeploy-agent/deployment-root/57ef2ee1-cbd1-4188-ac4c-44d9419a9cb2/d-YCH2YWYOI/deployment-archive/appspec.yml
Same thing I can observe in /var/log/aws/codedeploy agent我可以在 /var/log/aws/codedeploy agent 中观察到同样的事情
extra info: Please tell me am i missing some thing?Its actutally a httpd server.In that application simple html file is there.And aspec.yml file and scripts folder.额外信息:请告诉我我是否遗漏了什么?它实际上是一个 httpd 服务器。在那个应用程序中,简单的 html 文件就在那里。还有 aspec.yml 文件和脚本文件夹。 Please help me with this.请帮我解决一下这个。
The appspec.yml file should be at the root of the archive you upload to S3 or the GitHub repo you are deploying with. appspec.yml文件应该位于您上载到S3或与之一起部署的GitHub存储库的存档的根目录下。 It seems CodeDeploy cannot find the appspec.yml file and hence failing the deployment. 似乎CodeDeploy无法找到appspec.yml文件,因此使部署失败。 Please make sure the appspec.yml file is at the root of the archive, ie, when unzip the bundle, all the files are extracted to the current directory not a new folder 请确保appspec.yml文件位于存档的根目录下,即,解压缩捆绑包时,所有文件均解压缩到当前目录而不是新文件夹中
Please check the path to beforeinstall scrip.请检查 beforeinstall 脚本的路径。 Let's say you have a script in scripts folder in root directory.假设您在根目录的脚本文件夹中有一个脚本。 the path specification in app spec should be scripts/yourscriptname.sh app spec 中的路径规范应该是 scripts/yourscriptname.sh
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.