Syntax Error trying to do a fresh install of Redmine 2.0.3
Added by Paul Harrison about 12 years ago
Greetings;
I'm trying to install Redmine 2.0.3 Following the instructions here:
http://www.redmine.org/projects/redmine/wiki/RedmineInstall
I'm using MySQL. All goes well until I get to this:
RAILS_ENV=production rake db:migrate
root@mte [/home/foobar/redmine-2.0.3]# RAILS_ENV=production rake db:migrate --trace
- Invoke db:migrate (first_time)
- Invoke environment (first_time)
- Execute environment
rake aborted!
(<unknown>): could not find expected ':' while scanning a simple key at line 10 column 3
/opt/ruby19/lib/ruby/1.9.1/psych.rb:203:in `parse'
/opt/ruby19/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
/opt/ruby19/lib/ruby/1.9.1/psych.rb:151:in `parse'
/opt/ruby19/lib/ruby/1.9.1/psych.rb:127:in `load'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/application/configuration.rb:115:in `database_configuration'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/railtie.rb:78:in `block (2 levels) in <class:Railtie>'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:42:in `each'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/base.rb:721:in `<top (required)>'
/home/foobar/redmine-2.0.3/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in <top (required)>'
/home/foobar/redmine-2.0.3/config/initializers/00-core_plugins.rb:12:in `eval'
/home/foobar/redmine-2.0.3/config/initializers/00-core_plugins.rb:12:in `block in <top (required)>'
/home/foobar/redmine-2.0.3/config/initializers/00-core_plugins.rb:2:in `each'
/home/foobar/redmine-2.0.3/config/initializers/00-core_plugins.rb:2:in `<top (required)>'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in `load'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in `block in load'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in `load'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:587:in `each'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:587:in `block in <class:Engine>'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `instance_exec'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `run'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `each'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/application.rb:136:in `initialize!'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/foobar/redmine-2.0.3/config/environment.rb:14:in `<top (required)>'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/application.rb:103:in `require'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/application.rb:103:in `require_environment!'
/opt/ruby19/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/application.rb:292:in `block (2 levels) in initialize_tasks'
/opt/ruby19/lib/ruby/1.9.1/rake/task.rb:205:in `call'
/opt/ruby19/lib/ruby/1.9.1/rake/task.rb:205:in `block in execute'
/opt/ruby19/lib/ruby/1.9.1/rake/task.rb:200:in `each'
/opt/ruby19/lib/ruby/1.9.1/rake/task.rb:200:in `execute'
/opt/ruby19/lib/ruby/1.9.1/rake/task.rb:158:in `block in invoke_with_call_chain'
/opt/ruby19/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/opt/ruby19/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'
/opt/ruby19/lib/ruby/1.9.1/rake/task.rb:176:in `block in invoke_prerequisites'
/opt/ruby19/lib/ruby/1.9.1/rake/task.rb:174:in `each'
/opt/ruby19/lib/ruby/1.9.1/rake/task.rb:174:in `invoke_prerequisites'
/opt/ruby19/lib/ruby/1.9.1/rake/task.rb:157:in `block in invoke_with_call_chain'
/opt/ruby19/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/opt/ruby19/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'
/opt/ruby19/lib/ruby/1.9.1/rake/task.rb:144:in `invoke'
/opt/ruby19/lib/ruby/1.9.1/rake/application.rb:116:in `invoke_task'
/opt/ruby19/lib/ruby/1.9.1/rake/application.rb:94:in `block (2 levels) in top_level'
/opt/ruby19/lib/ruby/1.9.1/rake/application.rb:94:in `each'
/opt/ruby19/lib/ruby/1.9.1/rake/application.rb:94:in `block in top_level'
/opt/ruby19/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/opt/ruby19/lib/ruby/1.9.1/rake/application.rb:88:in `top_level'
/opt/ruby19/lib/ruby/1.9.1/rake/application.rb:66:in `block in run'
/opt/ruby19/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/opt/ruby19/lib/ruby/1.9.1/rake/application.rb:63:in `run'
/opt/ruby19/bin/rake:32:in `<main>'
Tasks: TOP => db:migrate => environment
My Ruby environment
CentOS 5 64 bit
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
gem 1.8.23
actionmailer-3.2.6
actionpack-3.2.6
activemodel-3.2.6
activerecord-3.2.6
activeresource-3.2.6
activesupport-3.2.6
arel-3.0.2
builder-3.0.0
bundler-1.1.4
coderay-1.0.6
daemon_controller-1.0.0
erubis-2.7.0
fastthread-1.0.7
hike-1.2.1
i18n-0.6.0
journey-1.0.4
json-1.7.3
mail-2.4.4
mime-types-1.19
multi_json-1.3.6
mysql2-0.3.11
net-ldap-0.3.1
passenger-3.0.13
pg-0.13.2
polyglot-0.3.3
prototype-rails-3.2.1
rack-1.4.1
rack-cache-1.2
rack-openid-1.3.1
rack-ssl-1.3.2
rack-test-0.6.1
rails-3.2.6
railties-3.2.6
rake-0.9.2.2
rdoc-3.12
rdoc-3.9.4
rmagick-2.13.1
ruby-openid-2.1.8
sprockets-2.1.3
sqlite3-1.3.6
thor-0.15.3
tilt-1.3.3
treetop-1.4.10
tzinfo-0.3.33
Following the instructions: 'How to request help' is helping to define my problem. I tried this suggestion: RAILS_ENV=YOUR_ENVIRONMENT script/about and got a similar, but hopefully more detailed error:
/opt/ruby19/lib/ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): could not find expected ':' while scanning a simple key at line 10 column 3 (Psych::SyntaxError)
I don't know if this is relevant, but I had an issue installing rmagick, because my centos version of ImageMagick was only 6.2.8. I had it upgraded to ImageMagick 6.7.3-2 2011-11-02 Q16.
Could this be a psych or ImageMagick issue?
Thanks in advance!
P
Replies (1)
RE: Syntax Error trying to do a fresh install of Redmine 2.0.3
-
Added by Paul Harrison about 12 years ago
I found the answer. It was a simple syntax error. I failed to put a space between password: and my_password. So it threw the same error for both the rake command, and script/about command. I Googled "could not find expected ':' while scanning a simple key at line 10 column 3" and found a lots of comments here:
http://stackoverflow.com/questions/4980877/rails-error-couldnt-parse-yaml
Moral of the story: Make sure what you (I) did is correct, then check the code. Hope this helps someone else!
P