Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run it inside Phusion Passenger #192

Open
bozjator opened this issue Nov 9, 2020 · 0 comments
Open

Can't run it inside Phusion Passenger #192

bozjator opened this issue Nov 9, 2020 · 0 comments

Comments

@bozjator
Copy link

bozjator commented Nov 9, 2020

I'm trying to run it on a web hosting which uses Phusion Passenger
and i get the following error:

`
[Sun Nov 8 17:18:33 2020] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 5.1.1.202011081608 (Agent Core 4.0.5)
Trace: You required the Node Cluster module, which is incompatible with Passenger, a non-functional shim was returned and your app may still work. However, please remove the related code as soon as possible.
at Module.require (/opt/passenger-5.3.7-9.el7.cloudlinux/src/helper-scripts/node-loader.js:63:12)
at Module.newFunc [as require] (/home/test-user/nodevenv/test-domain.com/node-app/12/lib/node_modules/appmetrics/lib/aspect.js:101:26)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/home/test-user/nodevenv/test-domain.com/node-app/12/lib/node_modules/log4js/lib/clustering.js:1:17)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at Module.require (/opt/passenger-5.3.7-9.el7.cloudlinux/src/helper-scripts/node-loader.js:80:25)
[32m[Nest] 11407 - [39m11/08/2020, 5:18:35 PM [38;5;3m[NestFactory] [39m�[32mStarting Nest application...�[39m
[32m[Nest] 11407 - [39m11/08/2020, 5:18:35 PM [38;5;3m[InstanceLoader] [39m�[32mAppModule dependencies initialized�[39m�[38;5;3m +27ms�[39m
[32m[Nest] 11407 - [39m11/08/2020, 5:18:35 PM [38;5;3m[RoutesResolver] [39m�[32mAppController {}:�[39m�[38;5;3m +93ms�[39m
[32m[Nest] 11407 - [39m11/08/2020, 5:18:35 PM [38;5;3m[RouterExplorer] [39m�[32mMapped {, GET} route�[39m�[38;5;3m +6ms�[39m
[32m[Nest] 11407 - [39m11/08/2020, 5:18:35 PM [38;5;3m[NestApplication] [39m�[32mNest application successfully started�[39m�[38;5;3m +5ms�[39m
/home/test-user/nodevenv/test-domain.com/node-app/12/lib/node_modules/log4js/lib/clustering.js:86
process.send({ topic: 'log4js:message', data: msg.serialise() });
^

TypeError: process.send is not a function
at Object.send (/home/test-user/nodevenv/test-domain.com/node-app/12/lib/node_modules/log4js/lib/clustering.js:86:15)
at Logger._log (/home/test-user/nodevenv/test-domain.com/node-app/12/lib/node_modules/log4js/lib/logger.js:87:16)
at Logger.log (/home/test-user/nodevenv/test-domain.com/node-app/12/lib/node_modules/log4js/lib/logger.js:70:12)
at Logger. [as info] (/home/test-user/nodevenv/test-domain.com/node-app/12/lib/node_modules/log4js/lib/logger.js:119:10)
at ClientRequest. (/home/test-user/nodevenv/test-domain.com/node-app/12/lib/node_modules/ibmapm-restclient/lib/tools/k8sutil.js:61:24)
at ClientRequest.emit (events.js:315:20)
at ClientRequest.EventEmitter.emit (domain.js:483:12)
at Socket.socketErrorListener (_http_client.js:426:9)
at Socket.emit (events.js:315:20)
at Socket.EventEmitter.emit (domain.js:483:12)
`

Does anyone knows whats the problem and how to solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant