-
Notifications
You must be signed in to change notification settings - Fork 547
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
nginx-mod-http-passenger CentOS unable to update with yum #2364
Comments
I am seeing this issue on a fresh install as well, and the install is failing:
|
Currently also seeing this issue on CentOS 7.9, with use of puppet-nginx in |
Is there any sort of workaround for this? |
Because I uninstalled nginx/passenger and then tried to reinstall in troubleshooting, I left myself in an unrecoverable state and could only get my site back online by snapshotting/creating an AMI from another server which had not had these packages uninstalled or updated at any point, and creating a new server with that AMI for the affected environment. |
I tried a similar solution to the one proposed by @kamrannabi for the Saltstack's formula. Using phusionpassenger's repository to install
and the
But nginx fails to start. A check of the config returns the following error
|
Installing via the source tarball looks to possibly work. |
I just tested this, it looks like epel replaced nginx |
@CamJN thanks, do you have any ETA on when the new build will be available? |
# [1.283.0](v1.282.0...v1.283.0) (2021-07-02) ### Bug Fixes * **rst-lint:** fix violations ([2ef7b8c](2ef7b8c)) ### Features * **gemfile.lock:** update `kitchen-docker` revision ([338ed9a](338ed9a)) * **nginx:** disable failing instance until upstream issue resolved ([f638761](f638761)), closes [/github.com/phusion/passenger/issues/2364#issuecomment-866313663](https://github.com//github.com/phusion/passenger/issues/2364/issues/issuecomment-866313663) * **pre-commit:** add `rst-lint` ([25ce78a](25ce78a)) * **saltimages:** update with latest changes from `salt-image-builder` ([d8310d3](d8310d3)) * **saltimages:** update with latest changes from `salt-image-builder` ([f00ec52](f00ec52)) * **saltimages:** update with latest changes from `salt-image-builder` ([f76e21a](f76e21a)) * **suricata:** disable failing instances ([2bd30f3](2bd30f3))
Hi - any update on when this will be ready? I have an automated build process that depends on this, and I'd rather not rebuild it to use the rubygems install if I don't have to. Thanks! |
Sorry for the delay, the update is pretty much ready and should be rolling out this week. |
@CamJN awesome. Thank you! |
done |
@CamJN I built a fresh image with this, and it built successfully, but I am still getting this error when starting nginx:
This was installed with:
Is that still correct? nginx does not appear to have been compiled with passenger, but I've lost track of whether it's still supposed to be or the module is supposed to be loaded dynamically:
|
Is this still in scope for this ticket or should I open a new one? |
@fields I was able to confirm I am able to update nginx and passenger with yum successfully now, so this may be a new issue. This is the "nginx -V" output for me, just for reference:
|
@fields the config file with the load_module line for the passenger module isn't being included into your nginx config. Can you verify if it exists? Just grep for load_module in your Nginx config directory. |
I do not have that anywhere. Where is this supposed to come from?
|
In
In
|
This reverts commit f638761. Issue now resolved and confirmed by testing with Kitchen locally: * phusion/passenger#2364
This is something I'm supposed to add by hand as part of the installation process? |
No, those files are supposed to be installed by the rpm. If they're missing the installation went wrong. You should review your rpm logs. |
Oh, I see the problem - the module install edits the existing nginx.conf in-line, but I have a build process that overwrites that with a custom one. This seems to be working now. Thanks for helping track this down!
|
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: #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):
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):
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?
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!
The text was updated successfully, but these errors were encountered: