21583: Configure Passenger with passenger_preload_bundler
authorBrett Smith <brett.smith@curii.com>
Fri, 5 Apr 2024 19:06:12 +0000 (15:06 -0400)
committerBrett Smith <brett.smith@curii.com>
Thu, 18 Apr 2024 15:49:25 +0000 (11:49 -0400)
commit5ff1f9c266f958f1eca2c763a905d0969bb96c1b
tree8d0a802e60d22f59885160a8121cdea0fde70bcc
parent0af02b541bd243a4611981db34e8163c78e6c700
21583: Configure Passenger with passenger_preload_bundler

This helps avoid situations where Passenger loads gems that create
a conflict with our bundle. We're currently seeing this with the base64
gem, where Passenger on Ruby 3.[0-3] can load the version shipped with
that Ruby before our RailsAPI bundle gets loaded. This causes an error:

  [ E 2024-03-12 15:12:44.8347 907382/Tf age/Cor/App/Implementation.cpp:221 ]:
  Could not spawn process for application /var/www/arvados-api/current:
  The application encountered the following error: You have already
  activated base64 0.1.1, but your Gemfile requires base64 0.2.0. Since
  base64 is a default gem, you can either remove your dependency on it or
  try updating to a newer version of bundler that supports base64 as a
  default gem. (Gem::LoadError)

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
doc/admin/config-urls.html.textile.liquid
doc/install/install-api-server.html.textile.liquid
tools/salt-install/config_examples/multi_host/aws/pillars/nginx_api_configuration.sls
tools/salt-install/config_examples/single_host/multiple_hostnames/pillars/nginx_api_configuration.sls
tools/salt-install/config_examples/single_host/single_hostname/pillars/nginx_api_configuration.sls
tools/salt-install/config_examples/single_host/single_hostname/pillars/nginx_workbench_configuration.sls