Project

General

Profile

problems

Added by Thomas Burgess over 12 years ago

I've got an older 1.0 install which has been working fine for awhile but lately started crashing every once in awhile.

I figured an upgrade would solve this. It didn't go well, i'm not considering wiping the jail and starting over. If i backup the working ruby install and my svn sites, is there a prefered method for getting it up again? I was using apache and phusion but i'm open to anything that works.


Replies (9)

RE: problems - Added by William Roush over 12 years ago

Thomas Burgess wrote:

I've got an older 1.0 install which has been working fine for awhile but lately started crashing every once in awhile.

I figured an upgrade would solve this. It didn't go well, i'm not considering wiping the jail and starting over. If i backup the working ruby install and my svn sites, is there a prefered method for getting it up again? I was using apache and phusion but i'm open to anything that works.

I figure a database restore and dropping the same Redmine install version/configs/plugins/modifications would get you back up and running.

RE: problems - Added by Thomas Burgess over 12 years ago

can you give me specific instructions (sorry, i'm a noob)

RE: problems - Added by Thomas Burgess over 12 years ago

when i try to upgrade to 2.0 i get this error:

rake aborted!
No database file specified. Missing argument: database

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
[root@svnjail /usr/local/www/redmine-2.0]# rake db:migrate RAILS_ENV=production --trace

CORRECT>rake db/migrate RAILS_ENV=production --trace (y|n|e|a)? no
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
No database file specified. Missing argument: database
/usr/local/lib/ruby/gems/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/sqlite3_adapter.rb:12:in `sqlite3_connection'
/usr/local/lib/ruby/gems/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:309:in `new_connection'
/usr/local/lib/ruby/gems/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:319:in `checkout_new_connection'
/usr/local/lib/ruby/gems/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:241:in `block (2 levels) in checkout'
/usr/local/lib/ruby/gems/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:236:in `loop'
/usr/local/lib/ruby/gems/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:236:in `block in checkout'
/usr/local/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize'
/usr/local/lib/ruby/gems/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:233:in `checkout'
/usr/local/lib/ruby/gems/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:96:in `block in connection'
/usr/local/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize'
/usr/local/lib/ruby/gems/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:95:in `connection'
/usr/local/lib/ruby/gems/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:404:in `retrieve_connection'
/usr/local/lib/ruby/gems/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:168:in `retrieve_connection'
/usr/local/lib/ruby/gems/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:142:in `connection'
/usr/local/lib/ruby/gems/1.9/gems/activerecord-3.2.6/lib/active_record/model_schema.rb:308:in `clear_cache!'
/usr/local/lib/ruby/gems/1.9/gems/activerecord-3.2.6/lib/active_record/railtie.rb:97:in `block (2 levels) in <class:Railtie>'
/usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:418:in `_run__3963181839191962377__prepare__1145483185703410894__callbacks'
/usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks'
/usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/lib/ruby/gems/1.9/gems/actionpack-3.2.6/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!'
/usr/local/lib/ruby/gems/1.9/gems/actionpack-3.2.6/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/application/finisher.rb:47:in `block in <module:Finisher>'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `instance_exec'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `run'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `each'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/application.rb:136:in `initialize!'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing'
/usr/local/www/redmine-2.0/config/environment.rb:14:in `<top (required)>'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/application.rb:103:in `require'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/application.rb:103:in `require_environment!'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/application.rb:292:in `block (2 levels) in initialize_tasks'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
Tasks: TOP => db:migrate => environment

RE: problems - Added by William Roush over 12 years ago

/usr/local/lib/ruby/gems/1.9/gems/activerecord-3.2.6/lib/active_record/connection_adapters/sqlite3_adapter.rb:12:in `sqlite3_connection'

Are you using a SQLLite database, or something else?

If you're using something else, you'll need to configure Redmine under config/database.yml.

RE: problems - Added by Thomas Burgess over 12 years ago

i'm using sqlite. Can't i copy the old config/database.yml? if not that's my issue

RE: problems - Added by William Roush over 12 years ago

Thomas Burgess wrote:

i'm using sqlite. Can't i copy the old config/database.yml? if not that's my issue

I don't remember the Redmine 1.0 config syntax off the top of my head, so it's best to reconfigure it instead of trying to copy the old config.

RE: problems - Added by Thomas Burgess over 12 years ago

i checked the database config and it's identical.

I was able to get 1.4 installed but i can't get 1.4 to upgrade to 2.0 either.....weird

RE: problems - Added by Tomoyuki Uemura over 12 years ago

Fix your old config/database.yml from

dbfile: db/redmine.sqlite3

to

database: db/redmine.sqlite3

"dbfile" entry can work on 1.4, but it cannot work on 2.0.

RE: problems - Added by Thomas Burgess over 12 years ago

now i get a new error:

rake aborted!
(<unknown>): mapping values are not allowed in this context at line 2 column 10

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

heres the trace:

** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
(<unknown>): mapping values are not allowed in this context at line 2 column 10
/usr/local/lib/ruby/1.9/psych.rb:203:in `parse'
/usr/local/lib/ruby/1.9/psych.rb:203:in `parse_stream'
/usr/local/lib/ruby/1.9/psych.rb:151:in `parse'
/usr/local/lib/ruby/1.9/psych.rb:127:in `load'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/application/configuration.rb:115:in `database_configuration'
/usr/local/lib/ruby/gems/1.9/gems/activerecord-3.2.6/lib/active_record/railtie.rb:78:in `block (2 levels) in <class:Railtie>'
/usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
/usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
/usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
/usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:42:in `each'
/usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
/usr/local/lib/ruby/gems/1.9/gems/activerecord-3.2.6/lib/active_record/base.rb:721:in `<top (required)>'
/usr/local/www/redmine-2.0/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in <top (required)>'
/usr/local/www/redmine-2.0/config/initializers/00-core_plugins.rb:12:in `eval'
/usr/local/www/redmine-2.0/config/initializers/00-core_plugins.rb:12:in `block in <top (required)>'
/usr/local/www/redmine-2.0/config/initializers/00-core_plugins.rb:2:in `each'
/usr/local/www/redmine-2.0/config/initializers/00-core_plugins.rb:2:in `<top (required)>'
/usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in `load'
/usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in `block in load'
/usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
/usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in `load'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/engine.rb:587:in `each'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/engine.rb:587:in `block in <class:Engine>'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `instance_exec'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `run'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `each'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/application.rb:136:in `initialize!'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing'
/usr/local/www/redmine-2.0/config/environment.rb:14:in `<top (required)>'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/application.rb:103:in `require'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/application.rb:103:in `require_environment!'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.2.6/lib/rails/application.rb:292:in `block (2 levels) in initialize_tasks'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
Tasks: TOP => db:migrate => environment
    (1-9/9)