Cannot execute /root/.rbenv/shims/ruby: Permission denied (13)

317 views
Skip to first unread message

christian

unread,
Aug 16, 2017, 8:23:40 PM8/16/17
to Phusion Passenger Discussions

Hello,

i installed Ruby on root-user with rbenv. Only as root it was possible to run rbenv-install.
Then, i've changed the folder ".rbenv/..." and the application-folder (.../redmine-sedlmair/) by chown -R to the user "redmine".
On Terminal i can execute ruby with user "redmine".

But on Webbrowser i receipt the error below, shown in Web-Browser by Passenger.

Any Ideas?

Many thanks and best regards,
Christian


Error:
Web application could not be started

Error ID:

5177e2f0

Details:

An error occurred while starting up the preloader. It exited before signalling successful startup back to Phusion Passenger. Please read this article for more information about this problem.

Raw process output:

*** ERROR ***: Cannot execute /root/.rbenv/shims/ruby: Permission denied (13)

System information:

Application root
/var/www/sedlmair-redmine/redmine-sedlmair
Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV, NODE_ENV and PASSENGER_APP_ENV)
production
Ruby interpreter command
/root/.rbenv/shims/ruby
User and groups
uid=1001(redmine) gid=1001(redmine) groups=1001(redmine),27(sudo)

Camden Narzt

unread,
Aug 17, 2017, 5:24:19 AM8/17/17
to Phusion Passenger Discussions
It is unlikely the redmine user has permission to read /root so even if /root/.rbenv has good permissions, keeping it in /root will stop it from being accessed by the redmine user. Also you need to change the permissions recursively in the .rbenv dir not just the top level, if you haven't already.
Reply all
Reply to author
Forward
0 new messages