redmine系统无法启动,求解决办法。
硬盘本来1T的,不知道怎么只在home目录,所以通过重新分配,把HOME的容量释放出来,并增加至ROOT目录下。
然后通过# ruby script/rails server webrick -e production 无法启动了,下面是报错信息。实在搞不清楚是什么问题。麻烦各位指点下。
=> Booting WEBrick
=> Rails 3.2.16 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/local/lib/ruby/gems/2.0.0/gems/mysql2-0.3.16/lib/mysql2/client.rb:70:in `connect': Unknown database 'redmine_development' (Mysql2::Error)
from /usr/local/lib/ruby/gems/2.0.0/gems/mysql2-0.3.16/lib/mysql2/client.rb:70:in `initialize'
from /usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `new'
from /usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `mysql2_connection'
from /usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection'
from /usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection'
from /usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `block (2 levels) in checkout'
from /usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `loop'
from /usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `block in checkout'
from /usr/local/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
from /usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout'
from /usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `block in connection'
from /usr/local/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
from /usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection'
from /usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'
from /usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'
from /usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'
from /usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/model_schema.rb:224:in `table_exists?'
from /usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/attribute_methods/primary_key.rb:75:in `get_primary_key'
from /usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/attribute_methods/primary_key.rb:60:in `reset_primary_key'
from /usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/attribute_methods/primary_key.rb:49:in `primary_key'
from /usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/attribute_assignment.rb:13:in `attributes_protected_by_default'
from /usr/local/lib/ruby/gems/2.0.0/gems/activemodel-3.2.16/lib/active_model/mass_assignment_security.rb:216:in `block in protected_attributes_configs'
from /usr/local/lib/ruby/gems/2.0.0/gems/activemodel-3.2.16/lib/active_model/mass_assignment_security.rb:188:in `yield'
from /usr/local/lib/ruby/gems/2.0.0/gems/activemodel-3.2.16/lib/active_model/mass_assignment_security.rb:188:in `protected_attributes'
from /usr/local/lib/ruby/gems/2.0.0/gems/activemodel-3.2.16/lib/active_model/mass_assignment_security.rb:118:in `block in attr_protected'
from /usr/local/lib/ruby/gems/2.0.0/gems/activemodel-3.2.16/lib/active_model/mass_assignment_security.rb:117:in `each'
from /usr/local/lib/ruby/gems/2.0.0/gems/activemodel-3.2.16/lib/active_model/mass_assignment_security.rb:117:in `attr_protected'
from /usr/local/redmine/app/models/issue_relation.rb:73:in `<class:IssueRelation>'
from /usr/local/redmine/app/models/issue_relation.rb:18:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:469:in `load'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:469:in `block in load_file'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:639:in `new_constants_in'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:468:in `load_file'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:353:in `require_or_load'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:502:in `load_missing_constant'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:192:in `block in const_missing'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:190:in `each'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:190:in `const_missing'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:514:in `load_missing_constant'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:192:in `block in const_missing'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:190:in `each'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:190:in `const_missing'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:514:in `load_missing_constant'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:192:in `block in const_missing'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:190:in `each'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:190:in `const_missing'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:514:in `load_missing_constant'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:192:in `block in const_missing'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:190:in `each'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:190:in `const_missing'
from /usr/local/redmine/lib/redmine/helpers/gantt.rb:28:in `<class:Gantt>'
from /usr/local/redmine/lib/redmine/helpers/gantt.rb:21:in `<module:Helpers>'
from /usr/local/redmine/lib/redmine/helpers/gantt.rb:19:in `<module:Redmine>'
from /usr/local/redmine/lib/redmine/helpers/gantt.rb:18:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `block in require'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:236:in `load_dependency'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require'
from /usr/local/redmine/lib/redmine.rb:51:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `block in require'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:236:in `load_dependency'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require'
from /usr/local/redmine/config/initializers/30-redmine.rb:4:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:245:in `load'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:245:in `block in load'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:236:in `load_dependency'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:245:in `load'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/engine.rb:593:in `block (2 levels) in <class:Engine>'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/engine.rb:592:in `each'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/engine.rb:592:in `block in <class:Engine>'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/initializable.rb:30:in `run'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/initializable.rb:54:in `each'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/application.rb:136:in `initialize!'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /usr/local/redmine/config/environment.rb:14:in `<top (required)>'
from /usr/local/redmine/config.ru:3:in `require'
from /usr/local/redmine/config.ru:3:in `block in <main>'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /usr/local/redmine/config.ru:in `new'
from /usr/local/redmine/config.ru:in `<main>'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/commands/server.rb:46:in `app'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/commands/server.rb:70:in `start'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/commands.rb:55:in `block in <top (required)>'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/commands.rb:50:in `tap'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
还是报错
我查看下,是否是数据库未启动,还是什么原因,谢谢。
找不到数据库