Permission denied on Gemfile.lock

I had a problem deploying my application to Passenger through Capistrano.

It seems I can not get rid of the Permission denied - / path / to / app / Gemfile.lock, from bundler / definition.rb. Has anyone had this before?

I tried the chmoding and chowning file, but that didn't help.

Has anyone else had a problem?

Trace back

/usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.0/lib/bundler/definition.rb 184 in `initialize' /usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.0/lib/bundler/definition.rb 184 in `open' /usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.0/lib/bundler/definition.rb 184 in `lock' /usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.0/lib/bundler/environment.rb 39 in `lock' /usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.0/lib/bundler/runtime.rb 35 in `setup' /usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.0/lib/bundler.rb 100 in `setup' 

UPDATE: After viewing the following link - here I was able to fix the problem by linking it to dev and then returning the Gemfile again. lock.

+6
ruby-on-rails bundle permission-denied
source share
2 answers

Try removing Gemfile.lock and running bundle install on your server.

+6
source share

It is worth checking the owner of the lock file. Speed ​​up on this when I ran "sudo bundle install" because I installed gemfiles for all users on the box. Quickly "chown" later, and everything was sorted.

0
source share

All Articles