passenger_preload_bundler
does not work correctly with passenger_env_var RUBYOPT
#2424
Milestone
passenger_preload_bundler
does not work correctly with passenger_env_var RUBYOPT
#2424
Issue report
Question 1: What is the problem?
passenger_preload_bundler on;
does not work correctly withpassenger_env_var RUBYOPT something
.What is the expected behavior?
Our Rack application works normally.
What is the actual behavior?
Passenger fails to start the Rack application with following error:
Gemfile
config.ru
passenger_env_var RUBYOPT
.Question 2: Passenger version and integration mode:
Nginx 1.21.6
Passenger 6.0.14 (open source)
Question 3: OS or Linux distro, platform (including version):
Ubuntu 18.04 (bionic) x86_64
Question 4: Passenger installation method:
RubyGems, no Gemfile
(Passenger is installed globally with no Gemfile)
Question 5: Your app's programming language (including any version managers) and framework (including versions):
Ruby 3.1.2
Question 6: Are you using a PaaS and/or containerization? If so which one?
Amazon EC2
Question 7: Anything else about your setup that we should know?
Ruby is installed via rbenv globally.
nginx.conf
includes following:When Gemfile includes
gem 'strscan'
passenger_preload_bundler off;
passenger_preload_bundler on;
passenger_env_var
strscan=3.0.3
passenger_env_var RUBYOPT
When Gemfile DOES NOT include
gem 'strscan'
passenger_preload_bundler off;
passenger_preload_bundler on;
passenger_env_var
strscan=3.0.1
strscan=3.0.1
passenger_env_var RUBYOPT
strscan=3.0.1
strscan=3.0.1
The text was updated successfully, but these errors were encountered: