lundi 8 octobre 2018

My rails application is not getting started

My rails application is running with ruby-1.9.3-p374 and rails 3.2.21. I am using rvm to manage the ruby versions. Currently, the application is running on Apache + passenger and in the configuration, I have properly set the path for the current ruby and gems however when I am loading application in the browser I am getting following error were application could not be started due to wrong ruby hem path. I am totally clued less where is the issue?

**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:in mkdir' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:247:infu_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:inreverse_each' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:219:in block in mkdir_p' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:205:ineach' /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:inwrite_gem_make_out' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:132:in build_error' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:171:inrescue 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:inblock 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:inbuild_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:inuse_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:inbuild_extensions' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/basic_specification.rb:56:in contains_requirable_file?' /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:925:inblock 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:infind' /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:intry_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:inrequire' /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:inrunning_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:inpreload_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 `' Application root /home/sunny.bogawat/work/viewpoint Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV and PASSENGER_ENV) development Ruby interpreter command /usr/local/rvm/wrappers/ruby-1.9.3-p484@httpd24/ruby User and groups uid=1354768763(sunny.bogawat) gid=1354768763(sunny.bogawat) groups=1354768763(sunny.bogawat),1354760705(domain users),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),1354763402(phlnn7),1354763598(hounn3),1354763599(hounn4),1354763600(hounn7),1354763768(phlnn95),1354763783(cltnn1),1354763898(network managed services),1354763932(phlnn110),1354764283(ca_network mgd svcs users),1354764438(phlnn13),1354764596(ca_users),1354764708(phlnn232v),1354765654(phlnn155),1354767326(phl2samdwmgt02),1354767568(phlnn272v),1354767638(phlnu415v_admins),1354767900(sungard.tools.resource.na),1354768008(phlnn275),1354768074(aurnu1v),1354768350(phlnn188),1354771880(hounn9v),1354772363(hounn7v),1354772364(hounn8v),1354772933(phlnn232vs),1354773379(phlnn155vs),1354773807(phlnu576v_admins),1354775321(permit members to log on to the server phlnu1vs),1354777329(phlnn493v_admins),1354777330(phlnn493v),1354777951(centrify_sftp_users)

Aucun commentaire:

Enregistrer un commentaire