-
Notifications
You must be signed in to change notification settings - Fork 548
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
Passenger will not preload rack app after RubyGems 3.5.11 #2567
Comments
This is similar to the issue with the recent versions of bundler. It was discovered in this bug that you have to have a matching version of bundler installed to what your Gemfile.lock says for However I see you're not using a Gemfile at all, so that shouldn't be the problem… unless somehow rubygems has developed a dependency on bundler internally and is somehow unable to work without a Gemfile. |
Also ran in to this same issue with Phusion Passenger (6.0.23), Ruby (3.3.5) and Rails 7.1. When using RubyGems 3.5.16, app won't spawn, giving the following:
Downgrading with |
Can either of you check if an earlier version of Passenger does not exhibit the same behaviour? |
Hi, We encountered a similar issue and here are some tests we performed in order to find out what happens with one of our apps. Everything is fine 👍 with ~$ rbenv version
3.3.4
~$ bundle -v
Bundler version 2.5.11
~$ cd apps/my-app/current
~/apps/my-app/current$ grep -A1 'BUNDLED WITH' Gemfile.lock |tail -n1|awk '{print $1}'
2.5.22
~/apps/my-app/current$ bundle -v
Bundler version 2.5.22 App does not start 👎 with ~$ rbenv version
3.3.5
~$ bundle -v
Bundler version 2.5.16
~$ cd apps/my-app/current
~/apps/my-app/current$ grep -A1 'BUNDLED WITH' Gemfile.lock |tail -n1|awk '{print $1}'
2.5.22
~/apps/my-app/current$ bundle -v
Bundler version 2.5.22 Even if we update rubygems to the latest version 👎 (2.5.23 != 2.5.22): ~/apps/my-app/current$ gem update --system
[...]
~$ rbenv version
3.3.5
~$ bundle -v
Bundler version 2.5.23
~$ cd apps/my-app/current
~/apps/my-app/current$ grep -A1 'BUNDLED WITH' Gemfile.lock |tail -n1|awk '{print $1}'
2.5.22
~/apps/my-app/current$ bundle -v
Bundler version 2.5.22 But it works 👍 if we install the version of ~$ gem install bundler -v 2.5.22
Fetching bundler-2.5.22.gem
Successfully installed bundler-2.5.22
1 gem installed
~$ gem list|grep bundler
bundler (default: 2.5.23, 2.5.22) So it seems that since ℹ️ $ dpkg -l |grep passenger
ii libnginx-mod-http-passenger 1:6.0.23-1~bullseye1 amd64 Nginx integration for Passenger application server
ii passenger 1:6.0.23-1~bullseye1 amd64 Application server for Ruby, Node.js, Python, Meteor
ii passenger-dev 1:6.0.23-1~bullseye1 amd64 Dependencies for compiling an Nginx module
ii passenger-doc 1:6.0.23-1~bullseye1 all Documentation for Passenger application server |
When I keep on using Hope it helps. |
Can this still be reproduced? I created a minimal environment and it didn't reproduce for me: Dockerfile:
Test:
|
Happens to me too. I thought it was Ruby 3.3.6, didn't think about ruby gems. |
So yes, in my case the problem was that my installed bundler gem was a slightly different version than what was specified in Gemfile.lock. I installed the correct bundler and now it's fine. In the past when my bundler versions were out of sync with the Gemfile.lock the error messaged told you so. (you have specified version x.y.z in your Gemfile but have z.y.x installed). Now you get that error about ruby not found. |
@afriqs so you are using bundler, that's a known issue with bundler, I'm trying to figure out if anyone can still reproduce this without bundler, just rubygems. @rossholdway and @madwire can you confirm whether you can still reproduce this issue using rubygems but not bundler (no gemfile, no bundle exec, etc)? |
Issue report
Please try with the newest version of Passenger to avoid issues that have already been fixed
Question 1: What is the problem?
I don't know what changed between RubyGems 3.5.11 and 3.5.12. But from 3.5.12 onwards, passenger will not load any rack app, and I've tested most versions, including the latest, 3.5.20. If I switch back to 3.5.11, everything starts working again.
RubyGems v3.5.12 +
Note: that the app directory had a Gemfile (and lock) in it, but I rewrote the config.ru to remove rails and the app it self from my test.
config.ru:
Your answer:
Question 2: Passenger version and integration mode:
Your answer:
Question 3: OS or Linux distro, platform (including version):
Your answer:
Question 4: Passenger installation method:
Your answer:
Question 5: Your app's programming language (including any version managers) and framework (including versions):
Your answer:
Question 6: Are you using a PaaS and/or containerization? If so which one?
The text was updated successfully, but these errors were encountered: