New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updateed database.yml.template #153

Merged
merged 2 commits into from Aug 16, 2017

Conversation

Projects
None yet
2 participants
@R3dy
Contributor

R3dy commented Aug 15, 2017

Summary

There was a rogue "+" and "-" that snuck into this file causing installation errors on:

./bin/setup

Error Message

For reference here is the error:

== Preparing database ==
rails aborted!
YAML syntax error occurred while parsing /root/github/dradis-ce/config/database.yml. Please note that YAML must be consistently indented using spaces. Tabs are not allowed. Error: (): did not find expected key while parsing a block mapping at line 7 column 1
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/application/configuration.rb:144:in `rescue in database_configuration'
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/application/configuration.rb:127:in `database_configuration'
/root/github/dradis-ce/ruby/2.3.0/gems/activerecord-5.1.3/lib/active_record/railtie.rb:34:in `block (3 levels) in '
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/commands/rake/rake_command.rb:21:in `block in perform'
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/command.rb:46:in `invoke'
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/commands.rb:16:in `'
bin/rails:4:in `require'
bin/rails:4:in `'
Psych::SyntaxError: (): did not find expected key while parsing a block mapping at line 7 column 1
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/application/configuration.rb:133:in `database_configuration'
/root/github/dradis-ce/ruby/2.3.0/gems/activerecord-5.1.3/lib/active_record/railtie.rb:34:in `block (3 levels) in '
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/commands/rake/rake_command.rb:21:in `block in perform'
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/command.rb:46:in `invoke'
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/commands.rb:16:in `'
bin/rails:4:in `require'
bin/rails:4:in `'
Tasks: TOP => db:setup => db:schema:load_if_ruby => db:create => db:load_config
(See full trace by running task with --trace)

== Command ["bin/rails db:setup"] failed ==

R3dy and others added some commits Aug 15, 2017

Updateed database.yml.template
There was a rogue "+" and "-" that snuck into this file causing installation errors on:

<pre>
./bin/setup
</pre>

For reference here is the error:
<pre>
== Preparing database ==
rails aborted!
YAML syntax error occurred while parsing /root/github/dradis-ce/config/database.yml. Please note that YAML must be consistently indented using spaces. Tabs are not allowed. Error: (<unknown>): did not find expected key while parsing a block mapping at line 7 column 1
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/application/configuration.rb:144:in `rescue in database_configuration'
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/application/configuration.rb:127:in `database_configuration'
/root/github/dradis-ce/ruby/2.3.0/gems/activerecord-5.1.3/lib/active_record/railtie.rb:34:in `block (3 levels) in <class:Railtie>'
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/commands/rake/rake_command.rb:21:in `block in perform'
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/command.rb:46:in `invoke'
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/commands.rb:16:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Psych::SyntaxError: (<unknown>): did not find expected key while parsing a block mapping at line 7 column 1
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/application/configuration.rb:133:in `database_configuration'
/root/github/dradis-ce/ruby/2.3.0/gems/activerecord-5.1.3/lib/active_record/railtie.rb:34:in `block (3 levels) in <class:Railtie>'
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/commands/rake/rake_command.rb:21:in `block in perform'
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/command.rb:46:in `invoke'
/root/github/dradis-ce/ruby/2.3.0/gems/railties-5.1.3/lib/rails/commands.rb:16:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Tasks: TOP => db:setup => db:schema:load_if_ruby => db:create => db:load_config
(See full trace by running task with --trace)

== Command ["bin/rails db:setup"] failed ==
</pre>

@etdsoft etdsoft merged commit 28a2a5d into dradis:master Aug 16, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment