amazon-web-services - 部署已完成,但出现错误:在中止部署期间,某些实例可能已部署新的应用程序版本
问题描述
所以这是我第一次使用 AWS。我有一个来自 github 的 nodejs/typescript 设置。它经历了代码管道的两个阶段
- 构建:我使用一个
buildspec.yml
文件来构建打字稿文件并将其转储到 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 实例。我不认为这是正在发生的事情。它给出了以下错误。
这是我的一般设置的样子
日志 我下载了完整的日志,我发现了一些关于错误的更多细节
\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
我真的不知道在这里还能做什么。提前谢谢各位
解决方案
推荐阅读
- reactjs - yii2 restful api:(原因:缺少 CORS 标头“Access-Control-Allow-Origin”)
- css - 如何在 CSS 中的图标后放置文本?
- scala - 第三方库在 Storm 中因 NoSuchMethodError 而失败
- javascript - Xpath - 我需要在 XPATH 中使用一个变量
- excel - Excel T.TEST 正则公式返回的结果与数组公式不同
- codenameone - Codenameone 中的 java.lang.String 中的 replaceFirst 有什么替代方法?
- python-3.x - 来自 MatPlotLib 的 Python svglib.svg2rlg 条形图
- reactjs - 输入更改 Safari 中的订单位置
- spring-boot - Spring boot,Tomcat无法识别JSF bean
- javascript - 如何使用类 Javascript 删除现有 ul 中的 li