gpt4 book ai didi

amazon-web-services - 部署已完成,但出现错误 : During an aborted deployment, 某些实例可能已部署新的应用程序版本

转载 作者:行者123 更新时间:2023-12-05 06:48:39 27 4
gpt4 key购买 nike

这是我第一次使用 AWS。我有一个 nodejs/typescript 设置,源代码来自 github。它经历了代码流水线的两个阶段

  • 构建:我使用buildspec.yml 文件构建 typescript 文件并将其转储到S3 存储桶中。这是 buildspect.yml 的内容。
version: 0.2

phases:
install:
commands:
- "npm install"
build:
commands:
- "npm run build"
artifacts:
files:
- "dist*/*"
discard-paths: yes

还有我的package.json

{
"name": "aws-install",
"version": "1.0.0",
"description": "",
"main": "./dist/app.js",
"scripts": {
"build": "tsc",
"start": "node ./dist/app.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@types/express": "^4.17.11",
"@types/node": "^14.14.35",
"express": "^4.17.1",
"mongodb": "^3.6.5",
"nodemon": "^2.0.7",
"typescript": "^4.2.3"
},
"devDependencies": {},
"engines": {
"node": "14.15.0"
}
}
  • 部署:部署阶段是 Elastic Beanstalk 的事情。我相信它应该获取构建的输出并部署到 EC2 实例。我不认为这是正在发生的事情。它给出了以下错误。

enter image description here


这是我的一般设置的样子

AWS Pipeline screenshot

日志我下载了完整的日志,并发现了有关该错误的更多详细信息

\var\log\eb-engine.log

2021/03/24 10:05:10.373225 [ERROR] update processes [web nginx cfn-hup healthd] pid symlinks failed with error Read pid source file /var/pids/web.pid failed with error:open /var/pids/web.pid: no such file or directory
2021/03/24 10:05:10.373235 [ERROR] An error occurred during execution of command [app-deploy] - [Track pids in healthd]. Stop running the command. Error: update processes [web nginx cfn-hup healthd] pid symlinks failed with error Read pid source file /var/pids/web.pid failed with error:open /var/pids/web.pid: no such file or directory

我真的不知道还能在这里做什么。提前谢谢大家

最佳答案

这与您上次部署期间使用的旧版本有关。您应该删除您的应用程序版本并重新启动管道。如果它不起作用,请删除部署环境并重新创建。

关于amazon-web-services - 部署已完成,但出现错误 : During an aborted deployment, 某些实例可能已部署新的应用程序版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66779168/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com