passenger: nginx-mod-http-passenger CentOS unable to update with yum

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? Yes

Please try with the newest version of Passenger to avoid issues that have already been fixed The issue in question is caused by the newest version of Passenger

Question 1: What is the problem?

  • When trying to run a yum update, I get the following error: Error: Package: nginx-mod-http-passenger-6.0.9-1.el7.x86_64 (passenger) Requires: nginx = 1:1.16.1 Installed: 1:nginx-1.20.1-2.el7.x86_64 (@epel) nginx = 1:1.20.1-2.el7

  • What is the expected behavior? I expected to be able to update passenger and nginx with yum update.

  • How can we reproduce it? Please try to provide a sample application (or Virtual Machine) demonstrating the issue. Otherwise, if we can’t reproduce it, we might have to ask you a number of followup questions or run certain commands to try and figure out the problem. With CentOS 7 and passenger and nginx installed from yum repos, try updating to the latest version (2.0.9) - this installs the preferred version of nginx (1.20) but the package “nginx-mod-http-passenger-6.0.9-1.el7.x86_64” still requires nginx 1.16.1 which is now unable to be installed after updating nginx.

This same issue happened last year with 6.0.5 in this ticket: https://github.com/phusion/passenger/issues/2284 however the resolution steps from last time do not seem to help. I have tried removing passenger and nginx, then reinstalling the repo and passenger, nginx, and nginx-mod-http-passenger with no luck.

Be as detailed as possible in your descriptions, include any logs and stack traces (don’t just cut/paste the error, provide some logging before that too).

(if you are requesting a feature instead of reporting an issue, describe here what you have in mind and how it would help you)

Your answer:

Question 2: Passenger version and integration mode:

Your answer: Installed from yum repository on CentOS 7: nginx x86_64 1:1.20.1-2.el7 epel
passenger x86_64 6.0.9-1.el7 passenger
Installing for dependencies: nginx-filesystem noarch 1:1.20.1-2.el7 epel

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

  • For example: Debian 8, x86_64 or OS X 10.10 Yosemite, x86_64

Your answer: CentOS Linux release 7.9.2009 (Core)

Question 4: Passenger installation method:

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

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

  • For example: Ruby 2.3.0, RVM, Rails 5.0.0; Node.js 4.0.0 with Express 4.13.4

Your answer: Ruby 2.7.2, Rails 6.0.3.7

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

  • For example: Heroku, Amazon Container Services, Docker 1.9 with an image based on passenger-docker

Your answer: No

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

Your answer: No


We strive for quality and appreciate you taking the time to submit a report! Please note that if you want guaranteed response times and priority issue support we encourage you to join our enterprise customer base. They also provide us with the means to continue our high level of open source support!

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 6
  • Comments: 21 (6 by maintainers)

Commits related to this issue

Most upvoted comments

I just tested this, it looks like epel replaced nginx 1.16.1 with nginx 1.20.1. We’ll have to make a new release to fix this. Sorry for the trouble. @kamrannabi is right that the source tarball method should work, as well as the rubygem method. We’ll get on making that new release asap.

Currently also seeing this issue on CentOS 7.9, with use of puppet-nginx in passenger install mode. Adding the nginx repo to yum finds the correct version but looks like passenger cannot install correctly with error unknown directive "passenger_root" in /etc/nginx/conf.d/passenger.conf:1 in the nginx logs.

@CamJN thanks, do you have any ETA on when the new build will be available?

Sorry for the delay, the update is pretty much ready and should be rolling out this week.