无法启动redmine:错误500

时间:2015-05-26 14:28:17

标签: ruby-on-rails rvm passenger redmine

我试图在我的RHEL 6服务器上部署Redmine。我已经检查了SVN的代码,并安装了捆绑的所有宝石。 然后我用passenger-install-apache2-module为Apache安装了乘客模块,并在编译结束时获得了所有绿色检查。 所以,这是我的配置:

rvm info

Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-2.2.1/bin' is not available,
     usually this is caused by shell initialization files - check them for 'PATH=...' entries,
     it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
     to fix temporarily in this shell session run: 'rvm use ruby-2.2.1'.

ruby-2.2.1:

  system:
    uname:       "Linux Kettle 2.6.32-504.12.2.el6.x86_64 #1 SMP Sun Feb 1 12:14:02 EST 2015 x86_64 x86_64 x86_64 GNU/Linux"
    system:      "redhat/6/x86_64"
    bash:        "/bin/bash => GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)"
    zsh:         " => not installed"

  rvm:
    version:      "rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]"
    updated:      "5 hours 48 minutes 37 seconds ago"
    path:         "/usr/local/rvm"

  ruby:
    interpreter:  "ruby"
    version:      "2.2.1p85"
    date:         "2015-02-26"
    platform:     "x86_64-linux"
    patchlevel:   "2015-02-26 revision 49769"
    full_version: "ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]"

   homes:
    gem:          "/usr/local/rvm/gems/ruby-2.2.1"
    ruby:         "/usr/local/rvm/rubies/ruby-2.2.1"

  binaries:
    ruby:         "/usr/bin/ruby"
    irb:          "/usr/bin/irb"
    gem:          "/usr/bin/gem"
    rake:         "/usr/bin/rake"

  environment:
    PATH:         "/usr/local/rvm/bin:/sbin:/usr/sbin:/bin:/usr/bin:/opt/bmc/BladeLogic/8.0/NSH/bin:/opt/bmc/BladeLogic/8.0/NSH/sbin:/sbin:/sbin:/usr/local/rvm/gems/ruby-2.2.1@global/gems/passenger-5.0.8/bin:/usr/local/rvm/rubies/ruby-2.2.1/bin:/home/cl027620/bin"
    GEM_HOME:     "/usr/local/rvm/gems/ruby-2.2.1"
    GEM_PATH:     "/usr/local/rvm/gems/ruby-2.2.1:/usr/local/rvm/gems/ruby-2.2.1@global"
    MY_RUBY_HOME: "/usr/local/rvm/rubies/ruby-2.2.1"
    IRBRC:        "/usr/local/rvm/rubies/ruby-2.2.1/.irbrc"
    RUBYOPT:      ""
    gemset:       ""

宝石信息

actionmailer (4.2.1)
actionpack (4.2.1)
actionpack-action_caching (1.1.1)
actionpack-xml_parser (1.0.2)
actionview (4.2.1)
activejob (4.2.1)
activemodel (4.2.1)
activerecord (4.2.1)
activesupport (4.2.1)
arel (6.0.0)
bigdecimal (1.2.6)
builder (3.2.2)
bundler (1.9.9)
bundler-unload (1.0.2)
coderay (1.1.0)
erubis (2.7.0)
executable-hooks (1.3.2)
fcgi (0.9.2.1)
gem-wrappers (1.2.7)
globalid (0.3.5)
i18n (0.7.0)
io-console (0.4.3)
jquery-rails (4.0.3, 3.1.2)
json (1.8.2, 1.8.1)
loofah (2.0.2)
mail (2.6.3)
mime-types (2.6.1, 2.5)
mini_portile (0.6.2)
minitest (5.6.1, 5.4.3)
net-ldap (0.11, 0.3.1)
nokogiri (1.6.6.2)
passenger (5.0.8)
pg (0.18.2, 0.17.1)
power_assert (0.2.2)
protected_attributes (1.0.9)
psych (2.0.8)
rack (1.6.1)
rack-openid (1.4.2)
rack-test (0.6.3)
rails (4.2.1)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.6)
rails-html-sanitizer (1.0.2)
railties (4.2.1)
rake (10.4.2)
rbpdf (1.18.5)
rdoc (4.2.0)
redcarpet (3.1.2)
request_store (1.0.5)
ruby-openid (2.3.0)
rubygems-bundler (1.4.4)
rvm (1.11.3.9)
sprockets (3.1.0)
sprockets-rails (2.3.1)
test-unit (3.0.8)
thor (0.19.1)
thread_safe (0.3.5)
tzinfo (1.2.2)

Apache虚拟主机(Apache / 2.2.15) 服务器内置:2014年8月15日03:02:07

Listen *:3000

<VirtualHost *:443>
    ServerName XX.XX.XX.XX
    ServerAdmin myemail@mail.com
    DocumentRoot /data/files/redmine-3.0/public
    ErrorLog logs/redmine_error_log

    SSLEngine on
    SSLCertificateFile /path/to/public.pem
    SSLCertificateKeyFile /path/to/private.pem
    SSLCACertificateFile /path/to/ca.pem

    RailsEnv production
    PassengerLoadShellEnvvars off
    PassengerRoot /usr/local/rvm/gems/ruby-2.2.1@global/gems/passenger-5.0.8
    PassengerDefaultRuby /usr/local/rvm/gems/ruby-2.2.1/wrappers/ruby

    #If you are using mod_fcgid and are going to upload files larger than
    #131072 bytes you should consider adding the following line
    #that allows to upload files up to 20 mb
    <IfModule mod_fcgid.c>
            MaxRequestLen 20971520
    </IfModule>

    <Directory "/data/files/redmine-3.0/public">
        AddHandler fastcgi-script fcgi
        Options Indexes ExecCGI FollowSymLinks
        Order allow,deny
        Allow from all
        AllowOverride all
    </Directory>
 </VirtualHost>

当我重新启动Apache时,我获得了一个错误,redmine显示了一个500友好的错误页面。错误报告此:http://pastebin.com/f6V7rrFx

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

只需使用Bitnami Redmine安装程序即可。它将完成所有“肮脏的”工作。为您安装相关依赖项的所有相应版本 - 而不会干扰主要操作系统版本。它甚至可以在没有root权限的情况下工作。

我在CentOS,SUSE和Windows上使用它 - 并且总是很开心......