部署Redmine出错
# ruby bin/rails server webrick -e production=> Booting WEBrick
=> Rails 4.2.8 application starting in production on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/usr/local/rvm/gems/ruby-2.4.1/gems/actionmailer-4.2.8/lib/action_mailer/base.rb:569:in `method_missing': undefined method `attachments_storage_path=' for ActionMailer::Base:Class (NoMethodError)
from /usr/redmine/lib/redmine/configuration.rb:57:in `block in load'
from /usr/redmine/lib/redmine/configuration.rb:55:in `each'
from /usr/redmine/lib/redmine/configuration.rb:55:in `load'
from /usr/redmine/lib/redmine/configuration.rb:67:in `[]'
from /usr/redmine/lib/redmine/thumbnail.rb:25:in `<module:Thumbnail>'
from /usr/redmine/lib/redmine/thumbnail.rb:22:in `<module:Redmine>'
from /usr/redmine/lib/redmine/thumbnail.rb:21:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
from /usr/redmine/lib/redmine.rb:47:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
from /usr/redmine/config/initializers/30-redmine.rb:6:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `block in load'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/engine.rb:652:in `block in load_config_initializer'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/notifications.rb:166:in `instrument'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/engine.rb:651:in `load_config_initializer'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/engine.rb:615:in `each'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/engine.rb:615:in `block in <class:Engine>'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `run'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:228:in `block in tsort_each'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `each'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `tsort_each_child'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:415:in `call'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:415:in `each_strongly_connected_component_from'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:347:in `each'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:347:in `call'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:347:in `each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:226:in `tsort_each'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:205:in `tsort_each'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/application.rb:352:in `initialize!'
from /usr/redmine/config/environment.rb:14:in `<top (required)>'
from /usr/redmine/config.ru:3:in `require'
from /usr/redmine/config.ru:3:in `block in <main>'
from /usr/local/rvm/gems/ruby-2.4.1/gems/rack-1.6.8/lib/rack/builder.rb:55:in `instance_eval'
from /usr/local/rvm/gems/ruby-2.4.1/gems/rack-1.6.8/lib/rack/builder.rb:55:in `initialize'
from /usr/redmine/config.ru:in `new'
from /usr/redmine/config.ru:in `<main>'
from /usr/local/rvm/gems/ruby-2.4.1/gems/rack-1.6.8/lib/rack/builder.rb:49:in `eval'
from /usr/local/rvm/gems/ruby-2.4.1/gems/rack-1.6.8/lib/rack/builder.rb:49:in `new_from_string'
from /usr/local/rvm/gems/ruby-2.4.1/gems/rack-1.6.8/lib/rack/builder.rb:40:in `parse_file'
from /usr/local/rvm/gems/ruby-2.4.1/gems/rack-1.6.8/lib/rack/server.rb:300:in `build_app_and_options_from_config'
from /usr/local/rvm/gems/ruby-2.4.1/gems/rack-1.6.8/lib/rack/server.rb:209:in `app'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/commands/server.rb:61:in `app'
from /usr/local/rvm/gems/ruby-2.4.1/gems/rack-1.6.8/lib/rack/server.rb:337:in `wrapped_app'
from /usr/local/rvm/gems/ruby-2.4.1/gems/rack-1.6.8/lib/rack/server.rb:273:in `start'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/commands/server.rb:80:in `start'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:80:in `block in server'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:75:in `server'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
我在·configuration.yml的配置如下:
attachments_storage_path: '/var/redmine/files'
请教错在哪里?
你用的什么系统,是如何安装的,
错误提示,系统不标准,缺这缺那的
应该关注第一个错误,NoMethodError
回复 2# shang2010
系统环境是:CentOS 6.5 ruby 2.4
Rails 4.2.8
通过yum 在线安装的。
回复 3# shang2010
google 了一下,也没有找到类似的结果。 你用的可是redmine3.4版本么
另外centos可以升级一下,yum update your all packages
目前第一个错误是邮件没有配置好,后面的错误好像是缺少top等等命令
邮件怎么配置的,重点
本帖最后由 loenlau 于 2017-07-19 15:31 编辑
回复 6# shang2010
是的,我部署的是3.4.2 (2017-07-16):部署前我已经Yum update 过所有packge了。
回复 6# shang2010
我没有配置邮件。。。 邮件配置,我只是根据错误提示判断的,很久没接触redmine了
http://www.redmine.org/projects/redmine/wiki/EmailConfiguration
回复 9# shang2010
配置完错误有改变但还是一堆新的错误。。。。
]# bundle exec rails server webrick -e production
=> Booting WEBrick
=> Rails 4.2.8 application starting in production on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/psych.rb:377:in `parse': (<unknown>): did not find expected key while parsing a block mapping at line 15 column 3 (Psych::SyntaxError)
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/psych.rb:377:in `parse_stream'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/psych.rb:325:in `parse'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/psych.rb:252:in `load'
from /usr/redmine/lib/redmine/configuration.rb:86:in `load_from_yaml'
from /usr/redmine/lib/redmine/configuration.rb:42:in `load'
from /usr/redmine/lib/redmine/configuration.rb:67:in `[]'
from /usr/redmine/lib/redmine/thumbnail.rb:25:in `<module:Thumbnail>'
from /usr/redmine/lib/redmine/thumbnail.rb:22:in `<module:Redmine>'
from /usr/redmine/lib/redmine/thumbnail.rb:21:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
from /usr/redmine/lib/redmine.rb:47:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
from /usr/redmine/config/initializers/30-redmine.rb:6:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `block in load'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/engine.rb:652:in `block in load_config_initializer'
from /usr/local/rvm/gems/ruby-2.4.1/gems/activesupport-4.2.8/lib/active_support/notifications.rb:166:in `instrument'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/engine.rb:651:in `load_config_initializer'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/engine.rb:615:in `each'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/engine.rb:615:in `block in <class:Engine>'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `run'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:228:in `block in tsort_each'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `each'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `tsort_each_child'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:415:in `call'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:415:in `each_strongly_connected_component_from'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:347:in `each'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:347:in `call'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:347:in `each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:226:in `tsort_each'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:205:in `tsort_each'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/application.rb:352:in `initialize!'
from /usr/redmine/config/environment.rb:14:in `<top (required)>'
from /usr/redmine/config.ru:3:in `require'
from /usr/redmine/config.ru:3:in `block in <main>'
from /usr/local/rvm/gems/ruby-2.4.1/gems/rack-1.6.8/lib/rack/builder.rb:55:in `instance_eval'
from /usr/local/rvm/gems/ruby-2.4.1/gems/rack-1.6.8/lib/rack/builder.rb:55:in `initialize'
from /usr/redmine/config.ru:in `new'
from /usr/redmine/config.ru:in `<main>'
from /usr/local/rvm/gems/ruby-2.4.1/gems/rack-1.6.8/lib/rack/builder.rb:49:in `eval'
from /usr/local/rvm/gems/ruby-2.4.1/gems/rack-1.6.8/lib/rack/builder.rb:49:in `new_from_string'
from /usr/local/rvm/gems/ruby-2.4.1/gems/rack-1.6.8/lib/rack/builder.rb:40:in `parse_file'
from /usr/local/rvm/gems/ruby-2.4.1/gems/rack-1.6.8/lib/rack/server.rb:300:in `build_app_and_options_from_config'
from /usr/local/rvm/gems/ruby-2.4.1/gems/rack-1.6.8/lib/rack/server.rb:209:in `app'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/commands/server.rb:61:in `app'
from /usr/local/rvm/gems/ruby-2.4.1/gems/rack-1.6.8/lib/rack/server.rb:337:in `wrapped_app'
from /usr/local/rvm/gems/ruby-2.4.1/gems/rack-1.6.8/lib/rack/server.rb:273:in `start'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/commands/server.rb:80:in `start'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:80:in `block in server'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:75:in `server'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-4.2.8/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
页:
[1]
2