I have a Rails app set up with Passenger + Nginx.
When trying to access the app I get the following error in passenger’s logs:
/home/my_user/.rbenv/versions/3.3.1/bin/ruby: No such file or directory -- Passenger AppPreloader: /home/my_user/domains/my_domain/app/current (LoadError)
However the file /home/my_user/.rbenv/versions/3.3.1/bin/ruby
and the directory /home/my_user/domains/my_domain/app/current
both exist…
I have tried many things but I’m not even sure how to investigate the issue… any suggestions?
2
This is an issue with the Passenger Docker.
Issue has been raised for the bug: https://github.com/phusion/passenger-docker/issues/409
As a quick fix which worked for me, you can add below line in your Dockerfile:
RUN gem install bundler --force -N -v "$(tail -n 1 Gemfile.lock | tr -d '[:blank:]n')" && bundle --version
1