ruby - Redmine install Apache2 Bundler PermissionError -


i trying install redmine using tutorial: unfamiliar ruby. whenever go http://localhost/redmine or http://localhost/redmine/settings?tab=general in browser page message:

we're sorry, went wrong.

we've been notified issue , we'll take @ shortly.

so decided in apache2 error log: sudo nano /var/log/apache2/error.log

i found following message, changed permission of bundler folder everyone, , restarted apache. did not still same message in browser. doing wrong?

using ubuntu 14.05

/var/log/apache2/error.log

[ 2016-02-05 15:26:39.0461 24027/7fca480e5700 age/cor/app/implementation.cpp:304 ]: not spawn process application /usr/share/redmine: error occurred while starting preloader.   error id: d4625db4   error details saved to: /tmp/passenger-error-ygu5vm.html   message application: bundler::permissionerror (bundler::permissionerror)   /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:116:in `rescue in filesystem_access'   /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:114:in `filesystem_access'   /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/definition.rb:267:in `lock'   /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/environment.rb:34:in `lock'   /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:44:in `setup'   /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler.rb:92:in `setup'   /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/setup.rb:18:in `<top (required)>'   /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'   /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'   /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:430:in `activate_gem'   /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:297:in `block in run_load_path_setup_code'   /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:435:in `running_bundler'   /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:296:in `run_load_path_setup_code'   /usr/share/passenger/helper-scripts/rack-preloader.rb:100:in `preload_app'   /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in `<module:app>'   /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `<module:phusionpassenger>'   /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<main>'   [ 2016-02-05 15:26:39.0552 24027/7fca4aaee700 age/cor/con/checkoutsession.cpp:277 ]: [client 2-1] cannot checkout session because spawning error occurred. identifier of error d4625db4. please see earlier logs details error. 

in /tmp/passenger-error-ygu5vm.html:

bundler::permissionerror (bundler::permissionerror)   /opt/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:116:in `rescue in filesystem_access'   /opt/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:114:in `filesystem_access'   /opt/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/definition.rb:267:in `lock'   /opt/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/environment.rb:34:in `lock'   /opt/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:44:in `setup'   /opt/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler.rb:92:in `setup'   /opt/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/setup.rb:18:in `<top (required)>'   /opt/redmine/.rvm/rubies/ruby-2.1.4/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'   /opt/redmine/.rvm/rubies/ruby-2.1.4/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'   /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:430:in `activate_gem'   /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:297:in `block in run_load_path_setup_code'   /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:435:in `running_bundler'   /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:296:in `run_load_path_setup_code'   /usr/share/passenger/helper-scripts/rack-preloader.rb:100:in `preload_app'   /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in `<module:app>'   /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `<module:phusionpassenger>'   /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<main>'  error id     5d410186 application root     /usr/share/redmine environment (value of rails_env, rack_env, wsgi_env, node_env , passenger_app_env)     production ruby interpreter command      /usr/bin/passenger_free_ruby  user , groups      uid=119(redmine) gid=128(redmine) groups=128(redmine)  environment variables      apache_pid_file = /var/run/apache2/apache2.pid     rvm_bin_path = /opt/redmine/.rvm/bin     gem_home = /opt/redmine/.rvm/gems/ruby-2.1.4     shell = /bin/bash     apache_run_user = www-data     irbrc = /opt/redmine/.rvm/rubies/ruby-2.1.4/.irbrc     passenger_debug_dir = /tmp/passenger.spawn-debug.xxxxvraxrr     my_ruby_home = /opt/redmine/.rvm/rubies/ruby-2.1.4     rvm_stored_umask = 0022     user = redmine     _system_type = linux     rvm_path = /opt/redmine/.rvm     passenger_use_feedback_fd = true     rvm_prefix = /opt/redmine     apache_log_dir = /var/log/apache2     path = /opt/redmine/.rvm/gems/ruby-2.1.4/bin:/opt/redmine/.rvm/gems/ruby-2.1.4@global/bin:/opt/redmine/.rvm/rubies/ruby-2.1.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/redmine/.rvm/bin     qt_qpa_platformtheme = appmenu-qt5     rvm_loaded_flag = 1     pwd = /usr/share/redmine     apache_run_group = www-data     lang = c     _system_arch = x86_64     _system_version = 14.04     rvm_version = 1.26.11 (latest)     shlvl = 0     home = /opt/redmine     logname = redmine     server_software = apache/2.4.7 (ubuntu) svn/1.8.8 phusion_passenger/5.0.24     gem_path = /opt/redmine/.rvm/gems/ruby-2.1.4:/opt/redmine/.rvm/gems/ruby-2.1.4@global     apache_lock_dir = /var/lock/apache2     apache_run_dir = /var/run/apache2     ruby_version = ruby-2.1.4     rvm_user_install_flag = 1     _system_name = ubuntu     in_passenger = 1     pythonunbuffered = 1     node_path = /usr/share/passenger/node     rails_env = production     rack_env = production     wsgi_env = production     node_env = production     passenger_app_env = production     rails_relative_url_root = /redmine     rack_base_uri = /redmine     passenger_base_uri = /redmine     _original_gem_path = /opt/redmine/.rvm/gems/ruby-2.1.4:/opt/redmine/.rvm/gems/ruby-2.1.4@global     bundle_bin_path = /opt/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/exe/bundle     bundle_gemfile = /usr/share/redmine/gemfile     rubyopt = -rbundler/setup     rubylib = /opt/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib 

finkavenue : happens when gems path ruby not have proper permissions. in case make sure /opt/redmine/.rvm/gems/ruby-2.1.4/gems has proper permission.the user running bundler not have access directory /opt/redmine/.rvm/gems/ruby-2.1.4/gems


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -