Installation failed on rake db:migrate
Added by Stéphane MORIN over 11 years ago
Hi,
the rake db:migrate aborts for a first installation with a message :
rake aborted!
Application has been already initialized
Note : I have also identify that there is no ./db/schema.rb file
Can you help me to solve this issue ?
Version 2.2.4
The detailed message is :-bash-3.2$ RAILS_ENV=production rake --trace db:migrate
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
- Invoke db:migrate (first_time)
- Invoke environment (first_time)
- Execute environment
rake aborted!
Application has been already initialized.
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:135:in `initialize!'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
/appli_PP/Redmine/2.2.4/PDMS/redmine/config/environment.rb:17:in `<top (required)>'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:103:in `require'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:103:in `require_environment!'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:297:in `block (2 levels) in initialize_tasks'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/task.rb:205:in `call'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/task.rb:205:in `block in execute'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/task.rb:200:in `each'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/task.rb:200:in `execute'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/task.rb:158:in `block in invoke_with_call_chain'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/task.rb:176:in `block in invoke_prerequisites'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/task.rb:174:in `each'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/task.rb:174:in `invoke_prerequisites'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/task.rb:157:in `block in invoke_with_call_chain'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/task.rb:144:in `invoke'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/application.rb:116:in `invoke_task'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/application.rb:94:in `block (2 levels) in top_level'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/application.rb:94:in `each'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/application.rb:94:in `block in top_level'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/application.rb:88:in `top_level'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/application.rb:66:in `block in run'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/appli_PP/Redmine/2.2.4/PDMS/apache/lib/ruby/1.9.1/rake/application.rb:63:in `run'
/appli_PP/Redmine/2.2.4/PDMS/apache/bin/rake:32:in `<main>'
Tasks: TOP => db:migrate => environment
Replies (3)
RE: Installation failed on rake db:migrate
-
Added by Martin Denizet (redmine.org team member) over 11 years ago
What OS do you use and how did you install Ruby?
RE: Installation failed on rake db:migrate
-
Added by Stéphane MORIN over 11 years ago
My OS is Redhat 5.5.
The installation of Ruby has been done by the following commands:
Bash $ tar xjvf /data/Redmine/2.1.2/ruby-1.9.3-p286.tar.bz2
Bash $ cd ruby-1.9.3-p286/
Bash $ ./configure --prefix=/appli/Redmine/2.1.2/apache
Bash $ make
Bash $ make install
You focus on Ruby installation. What are the reasons ?
RE: Installation failed on rake db:migrate
-
Added by Stéphane MORIN over 11 years ago
Note : Redmine version is 2.2.4