Apache Passenger Rails vhost failing after Ruby and Rails upgrade

I recently upgaded three Rails applications: UAM, Proposals, and Projects from Rails 5.2 to 6.1.7.7 and from Ruby 2.7.4 to Ruby 3.3.1.

The three applications were previously split from the same monolith Proposals application, so are very similar.

UAM and Proposals deployed successfully to the apache 2.4 staging server, where there are two vhosts for each, uam-dev, uam-stage2, proposals-dev, and proposals-stage2.

Projects was finished last. It has four vhosts, projects-dev, projects-stage2, projects-genint, projects-int2. These point to their own respective directories, except projects-genint doubles up with projects-stage2 as a semantic alias hostname. All of these serve fine when their vhosts are configured with PassengerRuby set to 2.7.4 and their current symlink pointed to an older rails 5.2 release of Projects. But when I try to deploy the new version of Projects to any of them and set the PassengerRuby version to 3.3.1, they fail with an error message like this:

+ exec /opt/rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/passenger-6.0.22/buildout/support-binaries/PassengerAgent spawn-env-setupper /tmp/passenger.spawn.XXXXLXAXEL --after
/opt/rbenv/versions/3.3.1/bin/ruby: No such file or directory -- Passenger AppPreloader: /opt/projects_int2/current (LoadError) 

in the Error Starting Web Application page from Passenger. I haven’t found anything in logs that hints more as to why this one application of the three won’t run under Passenger, in any of its instances if they are using the newer version of Ruby and the app.

They will run rails console from such a deployed Projects current directory, and puma can run the Projects application there as a test of something being wrong in the Rails application.

I tried adding some logging to one instance in various files in the projects-int2 app, and it showed me that not even boot.rb is getting loaded when trying to run via Apache + Passenger, but all the files I logged as being loaded showed in the log when run at console or via Puma.

I have inspected all the permissions on the various Projects directories and they are the same as for the directories for Proposals and UAM. /opt/projects_int2/current is accessible to the www-data user that runs Apache.

The vhosts are the same as the ones for Proposals and UAM, except for specifying the projects directories and hostnames, and work when configured to Ruby 2.7.4 and current points to an older release of the application.

I have dug through the Projects application trying to find anything significantly different about it that would break it but once I saw that even its boot.rb wasn’t loading, I’m guessing it is not a problem there.

I have backed out all but projects-int2 to the older version to minimize impact on other users of the staging server, using this one to experiment further.

I upgraded to the latest Passenger and made its PassengerDefaultRuby be 3.3.1 without that mattering.

I tried Passenger standalone today and it fails the same way, so that takes the Apache vhost out of being the issue.

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật