PM2和NGINX不通信失败(SSL:错误:0A000126:SSL例程::阅读时意外EOF)
您好,我正在实验错误代码未能加载资源:net :: err_connection_refuse,并在nginx error.log中找到了下面的错误代码。我正在使用PM2和NGINX。我试图同时重新启动PM2和NGINX,但没有修复任何内容。 PM2状态告诉我一切正常,PM2日志在说服务器正在运行。因此,我最好的猜测是下面的代码。我该如何修复?
2022/05/18 13:19:26 [crit] 19004#19004: *1003 SSL_read() failed (SSL: error:0A000126:SSL routines::unexpected eof while reading) while keepalive, client: x.x.x.x, server: 0.0.0.0:443
我现在也从pm2日志中获取此错误代码:
Error: listen EADDRINUSE: address already in use :::3005
at Server.setupListenHandle [as _listen2] (node:net:1372:16)
at listenInCluster (node:net:1420:12)
at Server.listen (node:net:1508:7)
at Function.listen (/home/ubuntu/apps/bachelor-app/Server/node_modules/express/lib/application.js:618:24)
at Object.<anonymous> (/home/ubuntu/apps/bachelor-app/Server/Server.js:239:5)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23) {
code: 'EADDRINUSE',
errno: -98,
syscall: 'listen',
address: '::',
port: 3005
}
但是,我只能看到其中一个以PM2状态运行
Hello I am experiecing the error code Failed to load resource: net::ERR_CONNECTION_REFUSED and have found the error code below in nginx error.log. I am using pm2 and nginx. I have tried to restart both pm2 and nginx but it didnt fix anything. Pm2 status is telling me everything is working fine and pm2 logs are saying the server is running. So my best guess is going of the code below. How do I fix it?
2022/05/18 13:19:26 [crit] 19004#19004: *1003 SSL_read() failed (SSL: error:0A000126:SSL routines::unexpected eof while reading) while keepalive, client: x.x.x.x, server: 0.0.0.0:443
I also get this error code now from pm2 logs:
Error: listen EADDRINUSE: address already in use :::3005
at Server.setupListenHandle [as _listen2] (node:net:1372:16)
at listenInCluster (node:net:1420:12)
at Server.listen (node:net:1508:7)
at Function.listen (/home/ubuntu/apps/bachelor-app/Server/node_modules/express/lib/application.js:618:24)
at Object.<anonymous> (/home/ubuntu/apps/bachelor-app/Server/Server.js:239:5)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23) {
code: 'EADDRINUSE',
errno: -98,
syscall: 'listen',
address: '::',
port: 3005
}
I can however only see one of them running with pm2 status
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论