首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Heroku上查看NodeBB应用程序时出现应用程序错误

在Heroku上查看NodeBB应用程序时出现应用程序错误
EN

Stack Overflow用户
提问于 2014-07-17 15:40:44
回答 1查看 358关注 0票数 1

我的应用程序的日志在加载时生成这组错误,即使NodeBB绑定到端口,Heroku错误是因为它不能绑定到端口。知道为什么会这样吗?或者这是否与我在某个地方的设置有关?

代码语言:javascript
复制
Jul 17 05:41:28 fateoftime app/web.1:  info: Initializing NodeBB v0.4.3 
Jul 17 05:41:28 fateoftime app/web.1:  info: * using configuration stored in: /app/config.json 
Jul 17 05:41:28 fateoftime app/web.1:  info: * using redis store at ray.redistogo.com:9748 
Jul 17 05:41:28 fateoftime app/web.1:  info: * using themes stored in: /app/node_modules 
Jul 17 05:41:29 fateoftime app/web.1:  info: Enabling 'trust proxy' 
Jul 17 05:41:29 fateoftime app/web.1:  info: [user.startJobs] Registering User Jobs 
Jul 17 05:41:29 fateoftime app/web.1:  info: [sounds] Sounds OK 
Jul 17 05:41:29 fateoftime app/web.1:  warn: [plugins/nodebb-plugin-mentions] This plugin may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. 
Jul 17 05:41:29 fateoftime app/web.1:  warn: [plugins/nodebb-plugin-mentions] In the event of an unresponsive NodeBB caused by this plugin, run ./nodebb reset plugin="nodebb-plugin-mentions". 
Jul 17 05:41:29 fateoftime app/web.1:  info: [meta/css] Minifying LESS/CSS 
Jul 17 05:41:29 fateoftime app/web.1:  info: [themes] Compiling templates 
Jul 17 05:41:29 fateoftime app/web.1:  info: NodeBB attempting to listen on: 127.0.0.1:16312 
Jul 17 05:41:29 fateoftime app/web.1:  info: [themes] Successfully compiled templates. 
Jul 17 05:41:30 fateoftime app/web.1:  info: NodeBB is now listening on: 127.0.0.1:16312 
Jul 17 05:41:30 fateoftime app/web.1:  info: NodeBB v0.4.3 Copyright (C) 2013-2014 NodeBB Inc. 
Jul 17 05:41:30 fateoftime app/web.1:  info: [meta/css] Done. 
Jul 17 05:41:31 fateoftime heroku/web.1:  Starting process with command `node app.js` 
Jul 17 05:41:37 fateoftime app/web.1:  info: NodeBB Ready 
Jul 17 05:41:37 fateoftime app/web.1:  info: [meta/js] Compilation complete 
Jul 17 05:42:27 fateoftime heroku/web.1:  State changed from starting to crashed 
Jul 17 05:42:31 fateoftime heroku/web.1:  Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 
Jul 17 05:42:31 fateoftime heroku/web.1:  Stopping process with SIGKILL 
Jul 17 05:42:31 fateoftime heroku/web.1:  Process exited with status 137 
Jul 17 08:12:48 fateoftime heroku/router:  at=error code=H10 desc="App crashed" method=GET path="/" host=www.fateoftime.com request_id=43be8d61-3251-4bb9-b5b1-8eb06092f140 fwd="104.36.225.21" dyno= connect= service= status=503 bytes= 
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-07-18 17:35:23

免责声明:我是Heroku的节点平台所有者

您所看到的问题是,nodebb在启动后很快就会崩溃(但在绑定之后)。当Heroku检查以确保应用程序正确启动时,它会看到端口不再绑定(因为nodebb已经崩溃)。要解决这个问题,你必须弄清楚为什么nodebb会在前60秒内崩溃。

我只是在这里复制了nodebb的heroku指令,没有任何问题,所以您可以尝试的第一件事是逐字阅读它们:

https://docs.nodebb.org/en/latest/installing/cloud/heroku.html

你用的是0.4.3?

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24807984

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档