Redmine ошибка 500

Forums » Help »

Hi, I already install redmine by this manual:
http://www.redmine.org/projects/redmine/wiki/install_Redmine_25x_on_Centos_65_complete

but when i go «http://myserverip» i get this error:

Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.

Maybe anyone knows where the problem is?

THX a lot!

hi,i got this error too,and here is production.log

Started POST "/projects/test/issues" for 171.214.144.55 at 2016-11-29 09:20:22 +0800
Processing by IssuesController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"this is token ", "issue"=>{"is_private"=>"0", "tracker_id"=>"3", "subject"=>" dsfasdfsadf", "description"=>"sdfasdfasdf", "status_id"=>"1", "priority_id"=>"2", "assigned_to_id"=>"", "parent_issue_id"=>"", "start_date"=>"2016-11-29", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"0", "watcher_user_ids"=>["24"]}, "was_default_status"=>"1", "continue"=>"创建并继续", "project_id"=>"meishi_66law_cv"}
  Current user: admin (id=1)
  Rendered mailer/_issue.text.erb (2.0ms)
  Rendered mailer/issue_add.text.erb within layouts/mailer (2.6ms)
  Rendered mailer/_issue.html.erb (1.7ms)
  Rendered mailer/issue_add.html.erb within layouts/mailer (2.2ms)
Completed 500 Internal Server Error in 197ms (ActiveRecord: 28.2ms)

Net::SMTPFatalError (554 DT:SPM 163 smtp9,DcCowABX9uzX1zxY2lOKCg--.45921S3 1480382423,please see http://mail.163.com/help/help_spam_16.htm?ip=8.8.8.8&hostid=smtp9&time=1480382423
):
  app/models/mailer.rb:455:in `deliver_mail'
  config/initializers/10-patches.rb:154:in `deliver'
  app/models/mailer.rb:61:in `block in deliver_issue_add'
  app/models/issue.rb:909:in `each_notification'
  app/models/mailer.rb:60:in `deliver_issue_add'
  app/models/issue.rb:1626:in `send_notification'
  app/models/issue.rb:175:in `create_or_update'
  app/controllers/issues_controller.rb:141:in `create'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

and http://mail.163.com/help/help_spam_16.htm?ip=8.8.8.8&hostid=smtp9&time=1480382423 says

 •554 DT:SPM 发送的邮件内容包含了未被许可的信息,或被系统识别为垃圾邮件。请检查是否有用户发送病毒或者垃圾邮件;(The email contains information that has not been licensed, or is identified as spam by the system. Please check if there is a user to send a virus or spam)

if i set SMTP_METHOD:async_smtp , error is gone,but i can’t receive email.

I’m trying to deploy Redmine on my RHEL 6 server. I’ve checkout the code from SVN and installed all the gems bundled with it.
Then I’ve installed the passenger module for Apache with passenger-install-apache2-module and I obtained all green checks at the end of compilation.
So, here are my configuration:

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:       ""

gem info

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 Virtual Host (Apache/2.2.15)
Server built: Aug 15 2014 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>

When I restart Apache I obtain an error and redmine shows me a 500 friendly error page. The error reports this: http://pastebin.com/f6V7rrFx

Any ideas?

Решается так:

Шаг 8 — Разрешения файловой системы¶

NB. Пользователи Windows могут пропустить этот раздел.

Учетная запись пользователя, на котором запущено приложение, должна иметь разрешение на запись в следующих подкаталогах:

файлы (хранилище вложений) log (файл журнала приложения production.log) tmp и tmp/pdf (создавайте их, если они отсутствуют, используются для генерации PDF-документов, между прочим) public/plugin_assets (активы плагинов) Например, если вы запустите приложение с учетной записью пользователя Redmine:

mkdir -p tmp tmp/pdf public/plugin_assets sudo chown -R redmine: журнал redmine файлов tmp public/plugin_assets sudo chmod -R 755 файл журнала tmp public/plugin_assets Шаг 9 — Проверка установки Проверьте установку, запустив веб-сервер WEBrick:

с Redmine 1.4.x: скрипт ruby / сервера webrick -e производство с Redmine 2.x: скрипт ruby / сервера rails webrick -e production Как только WEBrick запустится, укажите в браузере http: //: 3000 /. Теперь вы должны увидеть страницу приветствия приложения.

Примечание: Webrick не подходит для производственного использования, используйте только webrick для проверки работоспособности установки до этого момента. Используйте одно из многих других руководств в этой вики, чтобы настроить redmine для использования Passenger (aka mod_rails), FCGI или Rack-сервера (Unicorn, Thin, Puma, hellip;) для обслуживания вашего redmine.

Добрый день!
Перенес redmine с одного сервера на другой, списки проектов есть, но конкретный проект я просмотреть не могу из-за 500 ошибки.. С задачами такая же ерунда. В чем может быть дело?

c01391898b70a5458106e016c5293855.jpg

rvm 1.26.11
ruby 2.2.1p85

До этого не устанавливал redmine и с Ruby не работал.

log/production.log:

Started GET «/issues» for 46.159.165.82 at 2015-07-13 19:41:46 +0300
Processing by IssuesController#index as HTML
Current user: stasqa (id=6)
Completed 500 Internal Server Error in 10.9ms

NoMethodError (undefined method `name’ for nil:NilClass):
app/models/issue_query.rb:157:in `initialize_available_filters’
app/models/query.rb:331:in `available_filters’
app/models/query.rb:220:in `build_from_params’
app/models/issue_query.rb:119:in `build_from_params’
app/helpers/queries_helper.rb:175:in `retrieve_query’
app/controllers/issues_controller.rb:56:in `index’

Понравилась статья? Поделить с друзьями:
  • Redmi роутер ошибка 678
  • Redmi power bank ошибка
  • Redmi note 7 ошибка камеры как исправить
  • Redmi note 7 ошибка камеры 4pda
  • Redistchecker exe ошибка 0xc000007b city car driving