dkuk / global_roles

Plugin for Redmine which provides standart Roles privelegies usage without of projects
4 stars 5 forks source link

Installation error #1

Closed dani-sanchez-dorado closed 10 years ago

dani-sanchez-dorado commented 10 years ago

When i try to install the plug-in, i get this error:

host:/home/soft/redmine # rake redmine:plugins:migrate NAME=global_roles 
rake aborted!
database configuration does not specify adapter
/home/soft/redmine-2.3.3/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in '
/home/soft/redmine-2.3.3/config/initializers/00-core_plugins.rb:12:in `eval'
/home/soft/redmine-2.3.3/config/initializers/00-core_plugins.rb:12:in `block in '
/home/soft/redmine-2.3.3/config/initializers/00-core_plugins.rb:2:in `each'
/home/soft/redmine-2.3.3/config/initializers/00-core_plugins.rb:2:in `'
/home/soft/redmine-2.3.3/config/environment.rb:14:in `'
Tasks: TOP => redmine:plugins:migrate => environment
(See full trace by running task with --trace)

I get more information, I run the command with trace:

host:/home/soft/redmine # rake redmine:plugins:migrate NAME=global_roles --trace 
** Invoke redmine:plugins:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
database configuration does not specify adapter
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:47:in `resolve_hash_connection'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in `resolve_string_connection'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:25:in `spec'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.13/lib/active_record/railtie.rb:82:in `block (2 levels) in '
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:42:in `each'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.13/lib/active_record/base.rb:720:in `'
/home/soft/redmine-2.3.3/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in '
/home/soft/redmine-2.3.3/config/initializers/00-core_plugins.rb:12:in `eval'
/home/soft/redmine-2.3.3/config/initializers/00-core_plugins.rb:12:in `block in '
/home/soft/redmine-2.3.3/config/initializers/00-core_plugins.rb:2:in `each'
/home/soft/redmine-2.3.3/config/initializers/00-core_plugins.rb:2:in `'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `block in load'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:588:in `block (2 levels) in '
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:587:in `each'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:587:in `block in '
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/soft/redmine-2.3.3/config/environment.rb:14:in `'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/application.rb:103:in `require_environment!'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/application.rb:297:in `block (2 levels) in initialize_tasks'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/home/soft/ruby-2.0.0-p247/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:197:in `block in invoke_prerequisites'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:195:in `each'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:195:in `invoke_prerequisites'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:174:in `block in invoke_with_call_chain'
/home/soft/ruby-2.0.0-p247/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:149:in `invoke_task'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:106:in `each'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:106:in `block in top_level'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:115:in `run_with_threads'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:100:in `top_level'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:78:in `block in run'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/home/soft/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/bin/rake:33:in `'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `
' Tasks: TOP => redmine:plugins:migrate => environment

My redmine version is

Environment:
  Redmine version                2.3.3.stable
  Ruby version                   2.0.0-p247 (2013-06-27) [x86_64-linux]
  Rails version                  3.2.13
  Environment                    production
  Database adapter               Mysql2
Redmine plugins:
  clipboard_image_paste          1.8
  global_roles                   0.0.1
  redmine_add_subversion_links   0.3.0
  redmine_issue_checklist        2.0.5
  redmine_ldap_sync              2.0.3.devel
  redmine_monitoring_controlling 0.1.1
  redmine_rubycas                0.0.6
  redmine_tab                    0.4.0

And my ruby version:

:/home/soft/redmine/plugins> rails --version 
Rails 3.2.13

Any idea?

dani-sanchez-dorado commented 10 years ago

I have fix the problem! I have just to set the enviroment ...

 
export RAILS_ENV=production 

All works fine now. May be interesting to put explicitly in the documentation

Thank you