Bundler cannot find Rails directory when running on Phusion Passenger

So this is my problem. I used Capistrano to deploy my Rails 3 application on an Ubuntu server with Phusion Passenger 3 installed. Everything should have worked fine, but I kept getting this error message.

Could not find Gemfile in / var / www / rails / releases / 20100916074325. (Bundler :: GemfileNotFound)

The directory in the error message (which I added for clarification) exists on the system as well as the Gemfile. Under the error message, the stack trace showed that the error was being thrown inside

/usr/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/shared_helpers.rb

So, I went there and added outputs to check the existence of directories on this path, and each of them returns false to the end to "www". I am untrusted.

Why can't the Bundler working under the Passenger find these ways? What can I do to solve this problem? (I am about to drop the Passenger at this moment.)

0
source share
1 answer

This is almost certainly a resolution problem. However, please try Phusion Passenger git master; we have added aggressive permissions checks, so now it should tell you what exactly is wrong and what needs to be fixed, and not allow errors to make messages with cryptic error messages, like what you see now.

, - . : File.directory?("/a/b/c") false, /, /a /a/b .

+2

Source: https://habr.com/ru/post/1765433/


All Articles