Content
Error with configuration.yml file
Added by Andrew Irwin over 10 years ago
When I run this command I get this message, but I have tried a number of email format and no luck. I have even double check the white space in the file.
Anyone have any suggestions?
openproject@cbceg-proj1:~/openproject/config$ bundle exec rake db:create:all
(in /home/openproject/openproject)
require ‘rails/all’… 0.310s
Bundler.require… 1.230s
rake aborted!
(/home/openproject/openproject/config/configuration.yml): did not find expected key while parsing a block mapping at line 115 column 3
/home/openproject/openproject/lib/open_project/configuration.rb:145:in `load_config_from_file’
/home/openproject/openproject/lib/open_project/configuration.rb:79:in `load’
/home/openproject/openproject/lib/open_project/configuration.rb:104:in `[]’
/home/openproject/openproject/config/application.rb:152:in `class:Application’
/home/openproject/openproject/config/application.rb:63:in `module:OpenProject’
/home/openproject/openproject/config/application.rb:62:in `<top (required)>’
/home/openproject/openproject/Rakefile:33:in `require’
/home/openproject/openproject/Rakefile:33:in `<top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval’
/home/openproject/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `
’
(See full trace by running task with —trace)
openproject@cbceg-proj1:~/openproject/config$
Replies (1)
When I had this error, it was because of tabs or extra spaces in front of lines within the configuration.yml file.
At most, put 2 spaces in front of each line and make sure there are no tabs.