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

Cannot find nginx module on Amazon Linux 2023 #2528

Closed
toncid opened this issue Mar 5, 2024 · 1 comment
Closed

Cannot find nginx module on Amazon Linux 2023 #2528

toncid opened this issue Mar 5, 2024 · 1 comment

Comments

@toncid
Copy link

toncid commented Mar 5, 2024

Issue report

Fill in as much as possible so that we can understand, find and fix the problem.

Are you sure this is a bug in Passenger?

It seems to be a bug in the Passenger + nginx startup script.

Please try with the newest version of Passenger to avoid issues that have already been fixed

This is happening with the latest version of Passenger.

Question 1: What is the problem?

Your answer: The issue is very easy to reproduce:

  1. Start an Amazon Linux machine.
  2. Install Ruby and the passenger gem.
  3. Start the server.

Gem installation works fine, however starting the server falls back to compilation:

$ bundle exec passenger start
 --> Downloading a Phusion Passenger(R) agent binary for your platform

 --> Installing Nginx 1.24.0 engine
     Sorry, the precompiled Nginx engine can not be run your system.

---------------------------------------

No precompiled Nginx engine could be downloaded. Compiling it from source instead.
...

It seems to be strange or some sort of a bug, as there are Linux binaries available with every release: https://github.com/phusion/passenger/releases

Question 2: Passenger version and integration mode:

Your answer: Passenger Standalone v6.0.20

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

Your answer: Amazon Linux 2023, v2023.3.20240219, x86_64

Question 4: Passenger installation method:

Your answer:
[x] RubyGems + Gemfile
[ ] RubyGems, no Gemfile
[ ] Phusion APT repo
[ ] Phusion YUM repo
[ ] OS X Homebrew
[ ] source tarball
[x] Other, please specify: Packer

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

Your answer: Ruby v3.2.2, Rails v6.1.7.7, Node.js v18.19.1

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

Your answer: A good old AWS EC2 instance: al2023-ami-2023.3.20240219.0-kernel-6.1-x86_64

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

Your answer: N/A

@toncid
Copy link
Author

toncid commented May 3, 2024

The problem was caused by a missing library (libxcrypt-compat) that prevented the precompiled Nginx from starting.

The DownloadNginxEngineCommand#test_binary(filename) check failed, but not much is visible from the outside.

It would be helpful to log the captured output, so that the error is more obvious and easier to address.

@toncid toncid closed this as completed May 3, 2024
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