Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby Redmine安装Apache2捆绑机许可证错误_Ruby_Apache_Apache2_Passenger_Redmine - Fatal编程技术网

Ruby Redmine安装Apache2捆绑机许可证错误

Ruby Redmine安装Apache2捆绑机许可证错误,ruby,apache,apache2,passenger,redmine,Ruby,Apache,Apache2,Passenger,Redmine,我正在尝试使用以下方法安装Redmine: 我不熟悉Ruby。无论何时进入或在浏览器中,我都会看到一个包含以下消息的页面: 很抱歉,出了点问题 我们已收到有关此问题的通知,我们将查看它 很快 所以我决定查看我的apache2错误日志:sudo nano/var/log/apache2/error.log 我发现以下消息,将Bundler文件夹的权限更改为everyone,并重新启动Apache。然而,这并没有帮助我在浏览器中仍然收到相同的消息。我做错了什么 使用Ubuntu 14.05 /var

我正在尝试使用以下方法安装Redmine: 我不熟悉Ruby。无论何时进入或在浏览器中,我都会看到一个包含以下消息的页面:

很抱歉,出了点问题

我们已收到有关此问题的通知,我们将查看它 很快

所以我决定查看我的apache2错误日志:
sudo nano/var/log/apache2/error.log

我发现以下消息,将Bundler文件夹的权限更改为everyone,并重新启动Apache。然而,这并没有帮助我在浏览器中仍然收到相同的消息。我做错了什么

使用Ubuntu 14.05

/var/log/apache2/error.log

[ 2016-02-05 15:26:39.0461 24027/7fca480e5700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /usr/share/redmine: An error occurred while starting up the preloader.
  Error ID: d4625db4
  Error details saved to: /tmp/passenger-error-yGu5Vm.html
  Message from 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 a spawning error occurred. The identifier of the error is d4625db4. Please see earlier logs for details about the error.
[2016-02-05 15:26:39.0461 24027/7fca480e5700 age/Cor/App/Implementation.cpp:304]:无法生成应用程序/usr/share/redmine的进程:启动预加载程序时出错。
错误ID:d4625db4
错误详细信息保存到:/tmp/passenger-Error-yGu5Vm.html
来自应用程序的消息:Bundler::PermissionError(Bundler::PermissionError)
/var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:116:“文件系统中的救援访问”
/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:在“设置”中
/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`'
/usr/lib/ruby/2.1.0/rubygems/core\u ext/kernel\u require.rb:55:in'require'
/usr/lib/ruby/2.1.0/rubygems/core\u ext/kernel\u require.rb:55:in'require'
/usr/lib/ruby/vendor\u ruby/phusion\u passenger/loader\u shared\u helpers.rb:430:in'activate\u gem'
/usr/lib/ruby/vendor\u ruby/phusion\u passenger/loader\u shared\u helpers.rb:297:in`block in run\u load\u path\u setup\u code'
/usr/lib/ruby/vendor\u ruby/phusion\u passenger/loader\u shared\u helpers.rb:435:in'running\u bundler'
/usr/lib/ruby/vendor\u ruby/phusion\u passenger/loader\u shared\u helpers.rb:296:in'run\u load\u path\u setup\u code'
/usr/share/passenger/helper脚本/rack preload.rb:100:in'preload_app'
/usr/share/passenger/helper脚本/rack preload.rb:156:in`'
/usr/share/passenger/helper脚本/rack preload.rb:30:in`'
/usr/share/passenger/helper脚本/rack preload.rb:29:in`'
[2016-02-05 15:26:39.0552 24027/7fca4aaee700 age/Cor/Con/CheckoutSession.cpp:277]:[Client 2-1]无法签出会话,因为发生了生成错误。错误的标识符是d4625db4。有关错误的详细信息,请参阅前面的日志。
在/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 and PASSENGER_APP_ENV)
    production
Ruby interpreter command

    /usr/bin/passenger_free_ruby

User and 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
Bundler::PermissionError(Bundler::PermissionError)
/opt/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:116:“文件系统中的救援访问”
/opt/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:114:在“文件系统访问”中
/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:在“设置”中
/opt/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler.rb:92:在“设置”中
/opt/redmine/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/setup.rb:18:in`'
/opt/redmine/.rvm/rubies/ruby-2.1.4/lib/ruby/site\u ruby/2.1.0/rubygems/core\u ext/kernel\u require.rb:54:in'require'
/opt/redmine/.rvm/rubies/ruby-2.1.4/lib/ruby/site\u ruby/2.1.0/rubygems/core\u ext/kernel\u require.rb:54:in'require'
/usr/lib/ruby/vendor\u ruby/phusion\u passenger/loader\u shared\u helpers.rb:430:in'activate\u gem'
/usr/lib/ruby/vendor\u ruby/phusion\u passenger/loader\u shared\u helpers.rb:297:in`block in run\u load\u path\u setup\u code'
/usr/lib/ruby/vendor\u ruby/phusion\u passenger/loader\u shared\u helpers.rb:435:in'running\u bundler'
/usr/lib/ruby/vendor\u ruby/phusion\u passenger/loader\u shared\u helpers.rb:296:in'run\u load\u path\u setup\u code'
/usr/share/passenger/helper脚本/rack preload.rb:100:in'preload_app'
/usr/share/passenger/helper脚本/rack preload.rb:156:in`'
/usr/share/passenger/helper脚本/rack preload.rb:30:in`'
/usr/share/passenger/helper脚本/rack preload.rb:29:in`'
错误ID
5d410186
应用程序根
/usr/share/redmine
环境(轨道环境、机架环境、WSGI环境、节点环境和乘客环境的值)
生产
Ruby解释器命令
/usr/bin/乘客免费
用户和组
uid=119(redmine)gid=128(redmine)组=128(redmine)
环境变量
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数据
IRBRC=/opt/redmine/.rvm/rubies/ruby-2.1.4/.IRBRC
乘客调试目录=/tmp/PASSENGER.spawn-DEBUG.XXXXVrAXrr
MY_RUBY_HOME=/opt/redmine/.rvm/rubies/RUBY-2.1.4
rvm_存储的_umask=0022
用户=redmine
_系统类型=Linux
rvm_path=/opt/redmine/.rvm
乘客\u使用\u反馈\u FD=真
rvm_前缀=/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_加载_标志=1
PWD=/usr/share/redmine
APACHE_RUN_GROUP=www数据
LANG=C
_系统拱=x86拱64
_系统_版本=14.04
rvm_版本=1.26.11(最新)
SHLVL=0
主页=/opt/redmine
LOGNAME=redmine
服务器软件=Apache/2.4.7(Ubuntu)SVN/1.8.8 Phusion\u乘客/5.0.24
GEM_PATH=/opt/redmine/.rvm/gems/ruby-2.1.4:/opt/redmine/.rvm/gems