Ruby Upgrade permission error(Errno::EACCES) -
i had ruby v1.9 installed ( , running few rails applications, e.g: redmine). wanted install gitlab, required ruby >2.0. installed ruby following this guideline( compiled source). after gitlab installation finished restarted apache, redmine has stopped working. tried running gem install bundler
, bundle install
both of them gave following error:
error: while executing gem ... (errno::eacces) permission denied @ rb_sysopen - /usr/local/lib/ruby/gems/2.1.0/gems/bundler-1.10.5/.gitignore
i guessing cannot run them cause in folders root can access. anyway, running sudo
didn't solve problem. apache log shows following error:
[ 2015-07-22 13:51:30.0223 377/7f2ed6b49700 age/cor/req/checkoutsession.cpp:252 ]: [client 1-82] cannot checkout session because spawning error occurred. identifier of error f16d292b. please see earlier logs details error. app 4932 stderr: *** error ***: cannot execute /usr/bin/ruby1.9.1: no such file or directory (2) app 4932 stdout: [ 2015-07-22 13:51:30.4210 377/7f2ed40bf700 app/implementation.cpp:303 ]: not spawn process application /sites/www/6qj8bhsbtswjs5gjxv1lxpao: error occurred while starting preloader. exited before signalling successful startup phusion passenger. error id: b9bbbe68 error details saved to: /tmp/passenger-error-oa4s88.html message application: error occurred while starting preloader. exited before signalling successful startup phusion passenger. please read <a href="https://github.com/phusion/passenger/wiki/debugging-application-startup-problems">this article</a> more information problem.<br> <h2>raw process output:</h2> <pre>*** error ***: cannot execute /usr/bin/ruby1.9.1: no such file or directory (2) </pre> [ 2015-07-22 13:51:30.4274 377/7f2ed62c7700 age/cor/req/checkoutsession.cpp:252 ]: [client 2-82] cannot checkout session because spawning error occurred. identifier of error b9bbbe68. please see earlier logs details error.
i guessing application trying use old ruby path, unavailable. can provide solution solve issue?
in short term, suggest install rvm, https://rvm.io , using it, install ruby 1.9.
this way, can keep redmine on 1.9 setting .ruby_version
file within directory auto-selects 1.9 version. rest of system use system ruby, being 2.x.
in long term, need find out how upgrade redmine work on 2.x ruby. also, might need install phusion passenger specific 2.x ruby , configure apache use that.
Comments
Post a Comment