-
Notifications
You must be signed in to change notification settings - Fork 549
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
Gem json 2.9.1 breaks passenger-status command #2587
Gem json 2.9.1 breaks passenger-status command #2587
Comments
@FooBarWidget because any pure ruby implementation of the json gem is suuuuper slow, and because we have paying customers that run passenger-status a lot to track metrics, we probably have to fix the loading of gems rather than continue to do one-off removals or reimplementations. |
@CamJN I've written a few refreshers that elaborate on how we handle gem dependencies:
In CLI tools such as passenger-status, we are allowed to depend on gems, and we are certainly allowed to depend on standard library gems. The problem in this issue is different. passenger-status breaks because:
The best solution is to modify passenger_system_ruby to unset the various Ruby environment variables that would make it behave differently: GEM_HOME, GEM_PATH, RUBYOPT. |
Issue report
Question 1: What is the problem?
passenger-status
should not crashpassenger-status
exits with this errorIt seems to be a similar problem like this Dependency strscan breaks passenger-status command #2556
Building the image and running it with bash like this:
Now calling the following commands:
Question 2: Passenger version and integration mode:
Question 3: OS or Linux distro, platform (including version):
Debian 11.10 Bullseye
Question 4: Passenger installation method:
Your answer:
[ ] RubyGems + Gemfile
[ ] RubyGems, no Gemfile
[ ] Phusion APT repo
[ ] Phusion YUM repo
[ ] OS X Homebrew
[ ] source tarball
[x] Other, please specify:
Question 5: Your app's programming language (including any version managers) and framework (including versions):
Question 6: Are you using a PaaS and/or containerization? If so which one?
The text was updated successfully, but these errors were encountered: