Project

General

Profile

v2.0.3 on CentOS with cPanel Passenger Deployment Problems (ActiveRecord::AdapterNotSpecified)

Added by marco deluca almost 12 years ago

Issue below is resolved. Was using htaccess to activate the app and there was a typo in the file.


I've got redmine 2.0.3 up and running on my dedicated CentOs server. Problem I'm having is with deployment. You can see the issue when you try to load the app, we get this error message: database configuration does not specify adapter (ActiveRecord::AdapterNotSpecified)

See for yourself: http://tracker.worklabs.org/

I am able to use redmine just fine when I run it through WEBrick, so I know the setup and data are fine. We manually updated ruby, rails and gems to redmine requirements because they go beyond what cPanel supports. According to cPanel this shouldnt cause any issues, except for things like the fact we can't use cPanel scripts to deploy rails apps.

database.yml is setup as per instructions:

production:
adapter: mysql2
database: db_name
host: localhost
username: db_username
password: ***
encoding: utf8

here's the results of script/about:

/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead.

Environment:
  Redmine version                          2.0.1.stable
  Ruby version                             1.9.3 (x86_64-linux)
  Rails version                            3.2.3
  Environment                              production
  Database adapter                         Mysql2
Redmine plugins:
  no plugin installed

We followed the steps on the redmine install wiki:

- rake generate_secret_token
- rake db:migrate RAILS_ENV=production

Anyone have any thoughts / experience / suggestions with this issue?


Replies (2)

RE: v2.0.3 on CentOS with cPanel Passenger Deployment Problems (ActiveRecord::AdapterNotSpecified) - Added by Erald dh over 11 years ago

I have exactly the same problems but then with

script/about
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead.

Environment:
Redmine version 2.0.3.stable
Ruby version 1.9.3 (i686-linux)
Rails version 3.2.6
Environment production
Database adapter Mysql2
Redmine plugins:
no plugin installed

this on a Centos 5 server.

output of
public/dispatch.fcgi
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:45:in `resolve_hash_connection': database configuration does not specify adapter (ActiveRecord::AdapterNotSpecified)
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:39:in `resolve_string_connection'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:23:in `spec'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:127:in `establish_connection'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.6/lib/active_record/railtie.rb:82:in `block (2 levels) in <class:Railtie>'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.6/lib/active_record/base.rb:721:in `<top (required)>'
from /opt/redmine-2.0.3/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in <top (required)>'
from /opt/redmine-2.0.3/config/initializers/00-core_plugins.rb:12:in `eval'
from /opt/redmine-2.0.3/config/initializers/00-core_plugins.rb:12:in `block in <top (required)>'
from /opt/redmine-2.0.3/config/initializers/00-core_plugins.rb:2:in `each'
from /opt/redmine-2.0.3/config/initializers/00-core_plugins.rb:2:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in `load'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in `block in load'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in `load'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/engine.rb:587:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/engine.rb:587:in `block in <class:Engine>'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `run'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/application.rb:136:in `initialize!'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /opt/redmine/config/environment.rb:14:in `<top (required)>'
from public/dispatch.fcgi:7:in `require'
from public/dispatch.fcgi:7:in `<main>'

Who can help??

    (1-2/2)