How to Request Help -- Problem
Added by Barry Reddy over 16 years ago
The how to request help page recommends running scripts/about
in the $REDMINE (/opt/redmine)directory in order to preface
any help requests with a system snapshot.
Executing
hostname:~# _$REDMINE/script/about_
Produces the following result
_/opt/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:217:in `establish_connection': development database is not configured (ActiveRecord::AdapterNotSpecified)
from /opt/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:208:in `establish_connection'
from /opt/redmine/vendor/rails/railties/lib/initializer.rb:234:in `initialize_database'
from /opt/redmine/vendor/rails/railties/lib/initializer.rb:94:in `process'
from /opt/redmine/vendor/rails/railties/lib/initializer.rb:49:in `send'
from /opt/redmine/vendor/rails/railties/lib/initializer.rb:49:in `run'
from /opt/redmine/config/environment.rb:17
from /opt/redmine/vendor/rails/railties/lib/commands/about.rb:1:in `require'
from /opt/redmine/vendor/rails/railties/lib/commands/about.rb:1
from /opt/redmine/script/about:3:in `require'
from /opt/redmine/script/about:3
_
Likely I'm missing some $ENVIRONMENT setting required to execute this
ruby script. In any case, is there a recommended way to make this
$REDMINE/scripts/about produce the expected results ?
Replies (3)
RE: How to Request Help -- Problem
-
Added by Eric Davis over 16 years ago
Thanks for catching that, I've updated my post in How to request help.
To solve your problem, try running RAILS_ENV=production script/about
. By default it will use the development environment, hence the "development database is not configured" it printed out.
Eric
RE: How to Request Help -- Problem
-
Added by Barry Reddy over 16 years ago
Executing /opt/redmine/RAILS_ENV=production script/about produces the following result
/opt/redmine/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:263:in `load_missing_constant': uninitialized constant Rails::Info (NameError) from /opt/redmine/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:453:in `const_missing' from /opt/redmine/vendor/rails/railties/lib/commands/about.rb:2 from script/about:3:in `require' from script/about:3
RE: How to Request Help -- Problem
-
Added by Eric Davis over 16 years ago
Executing /opt/redmine/RAILS_ENV=production script/about produces the following result
You need to change into your Redmine directory first.
/$ cd /opt/redmine /opt/redmine$ RAILS_ENV=production script/about