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

Fails to recognise Nestjs app start #2506

Open
1 of 7 tasks
WTF-Software opened this issue Oct 20, 2023 · 2 comments
Open
1 of 7 tasks

Fails to recognise Nestjs app start #2506

WTF-Software opened this issue Oct 20, 2023 · 2 comments

Comments

@WTF-Software
Copy link

WTF-Software commented Oct 20, 2023

Issue report

Are you sure this is a bug in Passenger?
Yes

Question 1: What is the problem?

Your answer:
Problem: Passenger starts my app but fails to recognise that the app is running.
Expected behaviour: To report the app is running successfully and hand over control to my app
Actual behaviour: Times out with error: 'Web application could not be started' and fails to handover control to the app
Reproduction steps: Run a nests application

Question 2: Passenger version and integration mode:

Your answer:
SERVER_SOFTWARE=Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f mod_fcgid/2.3.9 Phusion_Passenger/5.0.30

Question 3: OS or Linux distro, platform (including version):

Your answer:
Ubuntu
Question 4: Passenger installation method:

Your answer:

  • RubyGems + Gemfile
  • RubyGems, no Gemfile
  • Phusion APT repo
  • Phusion YUM repo
  • OS X Homebrew
  • source tarball
  • Other, please specify:
    Unknown. Passenger is provided by my hosting service provide and I have no control over versions, installation methods etc.

Question 5: Your app's programming language (including any version managers) and framework (including versions):

Your answer:
Node v12.22.9
NodeJs

Question 6: Are you using a PaaS and/or containerization? If so which one?

Your answer:
Unknown

Question 7: Anything else about your setup that we should know?

Your answer:
My app appears to be running according to the logs, but is missing something that Passenger is looking for.

@CamJN
Copy link
Member

CamJN commented Nov 20, 2023

You might want to read about port binding and how passenger detects node apps starting: https://www.phusionpassenger.com/docs/advanced_guides/in_depth/node/reverse_port_binding.html there isn't a nest.js example but the problem you need to address is covered there.

@WTF-Software
Copy link
Author

Thanks for the reply, Cam.

I have already tried that without any success.

Nest.js uses Express as the http engine but wraps it which I think is what is masking the call.

Are you able to show an example Nest.js setup similar to the Express example shown in your link?

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

2 participants