简体   繁体   English

安装前在 aws code deploy 中部署失败

[英]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.

相关问题 AWS code deploy 部署失败,显示 github - AWS code deploy deployment failed with github AWS:代码部署安装失败 - AWS: Code deploy installation failed AWS Codepipeline:部署失败。 提供的角色没有足够的权限:无法部署应用程序 - AWS Codepipeline: Deployment failed. The provided role does not have sufficient permissions: Failed to deploy application 无法在 AWS amplify 上部署 Next Js SSR 应用程序。 (网站内部错误和部署在 cli 上失败) - Unable to Deploy Next Js SSR app on AWS amplify. ( Internal error on Website and Deployment failed on cli) AWS ECS 服务以及如何使用 Cloudformation 或 CLI 创建代码部署部署组 - AWS ECS Service and How to create a Code Deploy Deployment Group using Cloudformation or CLI AWS CodeDeploy 部署在事件 BlockTraffic 中失败 - AWS CodeDeploy deployment failed at event BlockTraffic AWS CodeDeploy 部署在事件 ApplicationStop 时失败 - AWS CodeDeploy deployment failed at event ApplicationStop 如何在 AWS 上部署基础设施即代码 - How to deploy Infrastructure as Code on AWS 为什么它说应用程序无法在 AWS 上部署 - 无服务器 - Why it says application failed to deploy on AWS - Serverless 具有 Cloudfront 部署的 Cloudformation 堆栈获取失败的来源 - Cloudformation stack with Cloudfront deployment getting failed origin
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM