Phusion Passenger:启动Web应用程序时出错-使用Plesk nginx部署Probot应用程序(NodeJS)

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

我正在尝试将GitHub Probot App(NodeJS应用程序)部署到运行带有NodeJS扩展名18.0.27 U1的Plesk 1.3.6-117的Web服务器。在我的本地计算机上运行probot应用程序时,该应用程序启动正常,可以通过localhost访问。

Plesk显然是使用Phusion Passenger application server来提供NodeJS应用程序。访问已部署的网站时,出现以下错误:

Screenshot: Passenger problem location

并且在/var/log/nginx/error.log中:

[ E 2020-05-30 10:06:31.7393 21506/Th age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /var/www/vhosts/example.org/node_root: A timeout occurred while spawning an application process.
  Error ID: 5f02dec5
  Error details saved to: /tmp/passenger-error-y6AeCv.html

[ E 2020-05-30 10:06:31.7466 21506/T5 age/Cor/Con/CheckoutSession.cpp:276 ]: [Client 1-2] Cannot checkout session because a spawning error occurred. The identifier of the error is 5f02dec5. Please see earlier logs for details about the error.

到目前为止我测试过的东西

  • 我增加了在nginx passenger_start_timeout 300;中启动应用程序的超时时间>
  • 我在Plesk中为此网站禁用了[[php
  • proxy_mode(默认情况下,Nginx代理向Apache发送请求,但passenger仅在nginx上运行)]我编写了一个自定义启动脚本来禁用乘客自动安装,并将节点dotenv文件中的Web服务器端口设置为PORT="passenger"
  • #!/usr/bin/env node const { Probot } = require('Probot') // @ts-ignore if (typeof(PhusionPassenger) !== 'undefined') { //@ts-ignore PhusionPassenger.configure({ autoInstall: false }); } Probot.run(process.argv)
开始的问题

我的应用程序是否失败或乘客是否无法绑定应用程序的端口?

是否有更详细的日志或启用详细输出的选项?

提前感谢!

我正在尝试将GitHub Probot App(NodeJS应用程序)部署到运行带有NodeJS扩展1.3.6-117的Plesk 18.0.27 U1的Web服务器。在我的本地计算机上运行probot应用程序时,该应用程序...

node.js nginx passenger plesk probot
1个回答
0
投票
经过长时间的研究,我自己弄清楚了。如果有人遇到同样的问题,请发布我的解决方案。
© www.soinside.com 2019 - 2024. All rights reserved.