【问题标题】:Application Error when viewing NodeBB app on Heroku在 Heroku 上查看 NodeBB 应用程序时出现应用程序错误
【发布时间】:2014-09-08 14:05:26
【问题描述】:

我的应用程序的日志在加载时产生了这组错误,即使 NodeBB 绑定到端口,Heroku 也会出错,因为它说它无法绑定到端口。知道为什么会这样,或者这是否与我在某处的设置有关?

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= 

【问题讨论】:

    标签: heroku nodebb


    【解决方案1】:

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

    您看到的问题是 nodebb 在启动后不久(但在绑定之后)崩溃。当 Heroku 检查以确保您的应用程序正确启动时,它发现端口不再绑定(因为 nodebb 已崩溃)。要修复它,您必须弄清楚为什么 nodebb 在前 60 秒内崩溃。

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

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

    你在 0.4.3 上吗?

    【讨论】:

      猜你喜欢
      • 2018-05-30
      • 1970-01-01
      • 2017-05-05
      • 1970-01-01
      • 2020-08-03
      • 2018-11-23
      • 2019-03-31
      • 2021-03-25
      • 1970-01-01
      相关资源
      最近更新 更多