Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rbenv permission denied issue

I have trouble getting my Rails app running after I deployed this to my DO droplet. I deployed (and installed everything including rbenv) following this guide. Rbenv seems to be installed properly but app is not running and nginx error log says "cannot execute /root/.rbenv/shims/ruby permission denied (13)"

I can not get the sense of this error, hope anyone can help with that.

like image 880
alv_721 Avatar asked Oct 18 '25 15:10

alv_721


1 Answers

Looks like rbenv's installed under root. It should probably be installed under your (or your app user's) home directory, in this case for the user named 'deploy.'

This Passenger configuration line from nginx.conf shows where it's expected to live:

/home/deploy/.rbenv/shims/ruby

So you should probably (re)install rbenv as/under 'deploy.'

like image 68
TK-421 Avatar answered Oct 20 '25 05:10

TK-421



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!