Heroku,使用 SIGTERM 停止所有进程,进程退出,状态为 143

问题描述 投票:0回答:1

我的后端在 Heroku 上托管了一个多月,并且运行良好。现在,今天当我打开我的网站时,它在 Heroku 日志中显示此错误。

heroku 日志

2022-11-26T13:59:37.770793+00:00 heroku[web.1]: Unidling    2022-11-26T13:59:37.773849+00:00 
2022-11-26T13:59:37.770793+00:00 heroku[web.1]: Unidling    2022-11-26T13:59:37.773849+00:00 heroku[web.1]: State changed from down to starting    2022-11-26T13:`your text`59:40.671794+00:00 heroku[web.1]: Starting process with command `npm start` `2022-11-26T13:59:43.453482+00:00 app\[web.1\]:\`
2022-11-26T13:59:43.453508+00:00 app\[web.1\]: \> [email protected] start
2022-11-26T13:59:43.453508+00:00 app\[web.1\]: \> node index.js
2022-11-26T13:59:43.453509+00:00 app\[web.1\]:
2022-11-26T13:59:43.936570+00:00 app\[web.1\]: Server started successfully on port 28406
2022-11-26T13:59:44.394629+00:00 heroku\[web.1\]: State changed from starting to up
2022-11-26T13:59:45.969634+00:00 app\[web.1\]: MongoDB Connected: ac-rbrrtx1-shard-00-02.hnnmtja.mongodb.net
2022-11-26T13:59:47.331529+00:00 heroku\[router\]: at=info method=GET path="/todos" host=to-do.herokuapp.com request_id=498c9348-ac27-4d03-98c5-ed9650e5b6d3 fwd="74.125.215.152" dyno=web.1 connect=0ms service=2501ms status=200 bytes=770 protocol=https
2022-11-26T14:35:38.862987+00:00 heroku\[web.1\]: Idling
2022-11-26T14:35:38.864646+00:00 heroku\[web.1\]: State changed from up to down
2022-11-26T14:35:39.633081+00:00 heroku\[web.1\]: Stopping all processes with SIGTERM
2022-11-26T14:35:39.834323+00:00 heroku\[web.1\]: Process exited with status 143
2022-12-02T12:31:11.037127+00:00 app\[api\]: Scaled to web@0:Eco by user [email protected]
2022-12-08T18:34:07.067959+00:00 heroku\[router\]: at=error code=H14 desc="No web processes running" method=GET path="/robots.txt" host=to-do.herokuapp.com request_id=c7c564c9-6334-4140-bf27-6b0750093c26 fwd="5.255.253.147" dyno= connect= service= status=503 bytes= protocol=https\`\`
node.js heroku backend
1个回答
0
投票

首先,我想确认一下您是否使用Heroku的免费套餐。因为 Heroku 从 2022 年 11 月 26 日开始停止了免费计划。 了解更多信息: https://make.wordpress.org/plugins/2022/09/13/heroku-free-tier-being-retired/

如果您有付费版本,那么这是与 dynos 相关的问题,因为错误给出代码 H14(最后一行)。这很可能是将 Web dyno 缩减至 0 dyno 的结果。扩大你的测功机来修复它。 有关更多信息,请访问 Heroku 错误代码: Heroku 错误代码

© www.soinside.com 2019 - 2024. All rights reserved.