我的Rails应用程序尚未开始

时间:2018-10-08 10:56:26

标签: ruby-on-rails apache ruby-on-rails-3 rvm mod-rails

我的rails应用程序在ruby-1.9.3-p374和rails 3.2.21上运行。我正在使用rvm来管理ruby版本。当前,该应用程序在Apache + passenger上运行,并且在配置中,我已经正确设置了当前红宝石和宝石的路径,但是当我在浏览器中加载应用程序时,出现以下错误:

application could not be started due to wrong ruby gem path

我完全不知道问题在哪里?

**Web application could not be started**

Permission denied - /usr/local/rvm/gems/ruby-1.9.3-p484@global/extensions/x86_64-linux/1.9.1/bson_ext-1.11.1 (Errno::EACCES)

/usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:247:在mkdir' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:247:in fu_mkdir'中   /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:221:in block (2 levels) in mkdir_p' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:219:in reverse_each'   /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:219:在block in mkdir_p' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:205:in中   /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:205:in mkdir_p' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:210:in write_gem_make_out'   /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:132:build_error' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:171:in中的build_extension中的救援'   /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:156:in build_extension' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:198:in中的build_extensions'块   /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:195:in each' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:195:in build_extensions'   /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1436:in block in build_extensions' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/user_interaction.rb:45:in use_ui'   /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1434:in build_extensions' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/stub_specification.rb:60:in build_extensions'   /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/basic_specification.rb:56:contains_requirable_file?' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:925:in中的find_inactive_by_path块   /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:924:in each' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:924:in find'   /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:924:in find_inactive_by_path' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems.rb:185:in try_activate'   /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:132:in rescue in require' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:144:in require'   /usr/local/rvm/gems/ruby-1.9.3-p484@httpd24/gems/passenger-4.0.29/lib/phusion_passenger/loader_shared_helpers.rb:219:in block in run_load_path_setup_code' /usr/local/rvm/gems/ruby-1.9.3-p484@httpd24/gems/passenger-4.0.29/lib/phusion_passenger/loader_shared_helpers.rb:333:in running_bundler'   /usr/local/rvm/gems/ruby-1.9.3-p484@httpd24/gems/passenger-4.0.29/lib/phusion_passenger/loader_shared_helpers.rb:217:in run_load_path_setup_code' /usr/local/rvm/gems/ruby-1.9.3-p484@httpd24/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:96:in preload_app'   /usr/local/rvm/gems/ruby-1.9.3-p484@httpd24/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:153:in <module:App>' /usr/local/rvm/gems/ruby-1.9.3-p484@httpd24/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:29:in'   /usr/local/rvm/gems/ruby-1.9.3-p484@httpd24/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:28:in`' 应用根 /home/sunny.bogawat/work/viewpoint 环境(RAILS_ENV,RACK_ENV,WSGI_ENV和PASSENGER_ENV的值) 发展 Ruby解释器命令 /usr/local/rvm/wrappers/ruby-1.9.3-p484@httpd24/ruby 用户和组 uid = 1354768763(sunny.bogawat)gid = 1354768763(sunny.bogawat)组= 1354768763(sunny.bogawat),1354760705(域用户),1354761303(phlnn1),1354761305(phlnn3),1354761334(phlnn5),1354761366(phlnn10v) ,1354761370(phlnn8),1354762461(sgsengineeringunixlogin),1354762462(sgsengineeringunixadmin),1354762682(hounu1),1354762683(phlnu1),1354762743(isp_admin),1354762792(hounn8),1354762824(enterasys), ,1354763599(hounn4),1354763600(hounn7),1354763768(phlnn95),1354763783(cltnn1),1354763898(网络托管服务),1354763932(phlnn110),1354764283(ca_network mgd svcs用户),1354764438(phlnn13)_user,1354764596 ,1354764708(phlnn232v),1354765654(phlnn155),1354767326(phl2samdwmgt02),1354767568(phlnn272v),1354767638(phlnu415v_admins),1354767900(sungard.tools.resource.na),1354768008(phnn275, ),1354771880(hounn9v),1354772363(hounn7v),1354772364(hounn8v),1354772933(phlnn232vs),1354773379(phlnn155vs),1354773807(phlnu576v_admins),1354 775321(允许成员登录到服务器phlnu1vs),1354777329(phlnn493v_admins),1354777330(phlnn493v),1354777951(centrify_sftp_users)

0 个答案:

没有答案