0

我尝试使用 MS Web 平台和 Helicon Zoo Web 安装程序安装 Redmine。我正在使用 Windows 7 机器 64 位和 SQL Server 2008。我已配置 database.yml 以连接到我的 SQL Server 数据库,并且我正在尝试从 SQLLite(默认数据库)迁移到 SQLSERVER。这是我的配置设置

production:
  adapter: sqlserver
  database: RedMineDB
  host: XX.XX.XX.XXX/SQLEXPRESS
  username: slquser1234
  password: testpwd

这是错误跟踪:

C:\inetpub\wwwroot\REDMIN~1>rake db:setup --trace
** Invoke db:setup (first_time)
** Invoke db:schema:load_if_ruby (first_time)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Execute db:load_config
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:create
** Invoke environment (first_time)
** Execute environment
rake aborted!
Server name not found in configuration files
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/tiny_tds-0.5.1-x86-mingw32/lib/tiny_tds/client.rb:68:in `connect'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/tiny_tds-0.5.1-x86-mingw32/lib/tiny_tds/client.rb:68:in `initialize'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-sqlserver-adapter-3.2.12/lib/active_record/connection_adapters/sqlserver_adapter.rb:417:in `new'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-sqlserver-adapter-3.2.12/lib/active_record/connection_adapters/sqlserver_adapter.rb:417:in `connect'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-sqlserver-adapter-3.2.12/lib/active_record/connection_adapters/sqlserver_adapter.rb:204:in `initialize'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-sqlserver-adapter-3.2.12/lib/active_record/connection_adapters/sqlserver_adapter.rb:40:in `new'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-sqlserver-adapter-3.2.12/lib/active_record/connection_adapters/sqlserver_adapter.rb:40:in `sqlserver_connection'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `block (2 levels) in checkout'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `loop'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `block in checkout'
C:/Ruby19/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `block in connection'
C:/Ruby19/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/model_schema.rb:223:in `table_exists?'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/attribute_methods/primary_key.rb:75:in `get_primary_key'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/attribute_methods/primary_key.rb:60:in `reset_primary_key'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/attribute_methods/primary_key.rb:49:in `primary_key'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/attribute_assignment.rb:13:in `attributes_protected_by_default'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activemodel-3.2.13/lib/active_model/mass_assignment_security.rb:216:in `block in protected_attributes_configs'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activemodel-3.2.13/lib/active_model/mass_assignment_security.rb:188:in `yield'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activemodel-3.2.13/lib/active_model/mass_assignment_security.rb:188:in `default'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activemodel-3.2.13/lib/active_model/mass_assignment_security.rb:188:in `protected_attributes'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activemodel-3.2.13/lib/active_model/mass_assignment_security.rb:118:in `block in attr_protected'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activemodel-3.2.13/lib/active_model/mass_assignment_security.rb:117:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activemodel-3.2.13/lib/active_model/mass_assignment_security.rb:117:in `attr_protected'
C:/inetpub/wwwroot/redmine-test/app/models/issue_relation.rb:73:in `<class:IssueRelation>'
C:/inetpub/wwwroot/redmine-test/app/models/issue_relation.rb:18:in `<top (required)>'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:469:in `load'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:469:in `block in load_file'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:639:in `new_constants_in'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:468:in `load_file'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:353:in `require_or_load'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:502:in `load_missing_constant'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:192:in `block in const_missing'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `const_missing'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:514:in `load_missing_constant'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:192:in `block in const_missing'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `const_missing'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:514:in `load_missing_constant'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:192:in `block in const_missing'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `const_missing'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:514:in `load_missing_constant'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:192:in `block in const_missing'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `const_missing'
C:/inetpub/wwwroot/redmine-test/lib/redmine/helpers/gantt.rb:28:in `<class:Gantt>'
C:/inetpub/wwwroot/redmine-test/lib/redmine/helpers/gantt.rb:21:in `<module:Helpers>'
C:/inetpub/wwwroot/redmine-test/lib/redmine/helpers/gantt.rb:19:in `<module:Redmine>'
C:/inetpub/wwwroot/redmine-test/lib/redmine/helpers/gantt.rb:18:in `<top (required)>'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
C:/inetpub/wwwroot/redmine-test/lib/redmine.rb:51:in `<top (required)>'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
C:/inetpub/wwwroot/redmine-test/config/initializers/30-redmine.rb:4:in `<top (required)>'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `block in load'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/engine.rb:587:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/engine.rb:587:in `block in <class:Engine>'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
C:/inetpub/wwwroot/redmine-test/config/environment.rb:14:in `<top (required)>'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/application.rb:103:in `require_environment!'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/application.rb:297:in `block (2 levels) in initialize_tasks'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:236:in `call'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:236:in `block in execute'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:231:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:231:in `execute'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
C:/Ruby19/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_with_call_chain'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:197:in `block in invoke_prerequisites'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:195:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:195:in `invoke_prerequisites'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:174:in `block in invoke_with_call_chain'
C:/Ruby19/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_with_call_chain'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:197:in `block in invoke_prerequisites'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:195:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:195:in `invoke_prerequisites'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:174:in `block in invoke_with_call_chain'
C:/Ruby19/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_with_call_chain'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:161:in `invoke'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/application.rb:149:in `invoke_task'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/application.rb:106:in `block (2 levels) in top_level'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/application.rb:106:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/application.rb:106:in `block in top_level'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/application.rb:115:in `run_with_threads'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/application.rb:100:in `top_level'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/application.rb:78:in `block in run'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/application.rb:165:in `standard_exception_handling'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/application.rb:75:in `run'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/bin/rake:33:in `<top (required)>'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/bin/rake:23:in `load'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/bin/rake:23:in `<main>'
Tasks: TOP => db:setup => db:schema:load_if_ruby => environment
4

1 回答 1

0

我的第一个建议是将此问题发送至 support@helicontech.com。并请澄清以下几点:

错误是“在配置文件中找不到服务器名称”,这意味着 Zoo 正在工作但数据库连接有问题,所以

  1. 确保从管理器的 Zoo 控制台 tun 执行“rake db:setup --trace”。
  2. 确保在 web.config 你有
  3. 将文档阅读到 tiny_tds https://github.com/rails-sqlserver/tiny_tds :dataserver - 可以是 freetds.conf 中定义的数据服务器的名称。原始主机名或主机名:端口也可以在这里使用。FreeTDS 说像 'localhost\SQLEXPRESS' 这样的命名实例也可以工作,但我强烈建议您使用下面的 :host 和 :port 选项。如果您使用命名实例,请谷歌如何找到您的主机端口或转到此处。
于 2014-02-11T09:59:28.127 回答