Open xcelr opened 3 years ago
Running into this error, even ran it through a YML check, Everything looks to be in order.
`development: defaults adapter: mysql encoding: utf8 database: peatio_development username: root password:**** pool: 10 reconnect: true
test: <<: *defaults database: peatio_test
production: <<: *defaults database: peatio_production `
root@cointurret:~/peatio# bundle exec rake db:setup --trace Invoke db:setup (first_time) Invoke db:schema:load_if_ruby (first_time) Invoke db:create (first_time) Invoke db:load_config (first_time) ** Execute db:load_config rake aborted! YAML syntax error occurred while parsing /root/peatio/config/database.yml. Please note that YAML must be consistently indented using spaces. Tabs are not allowed. Error: (): mapping values are not allowed in this context at line 2 column 10 /root/peatio/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application/configuration.rb:113:in rescue in database_configuration' /root/peatio/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application/configuration.rb:103:indatabase_configuration' /root/peatio/vendor/bundle/ruby/2.2.0/gems/activerecord-4.0.12/lib/active_record/railtie.rb:46:in block (3 levels) in <class:Railtie>' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:240:incall' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:240:in block in execute' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:235:ineach' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:235:in execute' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:179:inblock in invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:172:ininvoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:201:in block in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:ineach' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:178:inblock in invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:172:ininvoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:201:in block in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:ineach' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:178:inblock in invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:172:ininvoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:201:in block in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:ineach' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:178:inblock in invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:172:ininvoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:165:in invoke' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:150:ininvoke_task' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:106:in block (2 levels) in top_level' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:106:ineach' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:106:in block in top_level' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:115:inrun_with_threads' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:100:in top_level' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:78:inblock in run' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:176:in standard_exception_handling' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:75:inrun' /root/.rbenv/versions/2.2.7/bin/rake:33:in <main>' Psych::SyntaxError: (<unknown>): mapping values are not allowed in this context at line 2 column 10 /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/psych.rb:370:inparse' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/psych.rb:370:in parse_stream' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/psych.rb:318:inparse' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/psych.rb:245:in load' /root/peatio/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application/configuration.rb:106:indatabase_configuration' /root/peatio/vendor/bundle/ruby/2.2.0/gems/activerecord-4.0.12/lib/active_record/railtie.rb:46:in block (3 levels) in <class:Railtie>' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:240:incall' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:240:in block in execute' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:235:ineach' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:235:in execute' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:179:inblock in invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:172:ininvoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:201:in block in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:ineach' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:178:inblock in invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:172:ininvoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:201:in block in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:ineach' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:178:inblock in invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:172:ininvoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:201:in block in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:ineach' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:178:inblock in invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:172:ininvoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:165:in invoke' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:150:ininvoke_task' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:106:in block (2 levels) in top_level' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:106:ineach' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:106:in block in top_level' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:115:inrun_with_threads' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:100:in top_level' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:78:inblock in run' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:176:in standard_exception_handling' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:75:inrun' /root/.rbenv/versions/2.2.7/bin/rake:33:in `' Tasks: TOP => db:setup => db:schema:load_if_ruby => db:create => db:load_config
rescue in database_configuration' /root/peatio/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application/configuration.rb:103:in
block (3 levels) in <class:Railtie>' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:240:in
block in execute' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:235:in
execute' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:179:in
mon_synchronize' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:172:in
block in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:in
invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:178:in
invoke' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:150:in
block (2 levels) in top_level' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:106:in
block in top_level' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:115:in
top_level' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:78:in
standard_exception_handling' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:75:in
<main>' Psych::SyntaxError: (<unknown>): mapping values are not allowed in this context at line 2 column 10 /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/psych.rb:370:in
parse_stream' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/psych.rb:318:in
load' /root/peatio/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application/configuration.rb:106:in
Running into this error, even ran it through a YML check, Everything looks to be in order.
`development: defaults adapter: mysql encoding: utf8 database: peatio_development username: root password:**** pool: 10 reconnect: true
test: <<: *defaults database: peatio_test
production: <<: *defaults database: peatio_production `
root@cointurret:~/peatio# bundle exec rake db:setup --trace Invoke db:setup (first_time) Invoke db:schema:load_if_ruby (first_time) Invoke db:create (first_time) Invoke db:load_config (first_time) ** Execute db:load_config rake aborted! YAML syntax error occurred while parsing /root/peatio/config/database.yml. Please note that YAML must be consistently indented using spaces. Tabs are not allowed. Error: (): mapping values are not allowed in this context at line 2 column 10
/root/peatio/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application/configuration.rb:113:in '
Tasks: TOP => db:setup => db:schema:load_if_ruby => db:create => db:load_config
rescue in database_configuration' /root/peatio/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application/configuration.rb:103:in
database_configuration' /root/peatio/vendor/bundle/ruby/2.2.0/gems/activerecord-4.0.12/lib/active_record/railtie.rb:46:inblock (3 levels) in <class:Railtie>' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:240:in
call' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:240:inblock in execute' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:235:in
each' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:235:inexecute' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:179:in
block in invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/monitor.rb:211:inmon_synchronize' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:172:in
invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:201:inblock in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:in
each' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:ininvoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:178:in
block in invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/monitor.rb:211:inmon_synchronize' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:172:in
invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:201:inblock in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:in
each' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:ininvoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:178:in
block in invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/monitor.rb:211:inmon_synchronize' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:172:in
invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:201:inblock in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:in
each' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:ininvoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:178:in
block in invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/monitor.rb:211:inmon_synchronize' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:172:in
invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:165:ininvoke' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:150:in
invoke_task' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:106:inblock (2 levels) in top_level' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:106:in
each' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:106:inblock in top_level' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:115:in
run_with_threads' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:100:intop_level' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:78:in
block in run' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:176:instandard_exception_handling' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:75:in
run' /root/.rbenv/versions/2.2.7/bin/rake:33:in<main>' Psych::SyntaxError: (<unknown>): mapping values are not allowed in this context at line 2 column 10 /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/psych.rb:370:in
parse' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/psych.rb:370:inparse_stream' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/psych.rb:318:in
parse' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/psych.rb:245:inload' /root/peatio/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application/configuration.rb:106:in
database_configuration' /root/peatio/vendor/bundle/ruby/2.2.0/gems/activerecord-4.0.12/lib/active_record/railtie.rb:46:inblock (3 levels) in <class:Railtie>' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:240:in
call' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:240:inblock in execute' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:235:in
each' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:235:inexecute' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:179:in
block in invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/monitor.rb:211:inmon_synchronize' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:172:in
invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:201:inblock in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:in
each' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:ininvoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:178:in
block in invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/monitor.rb:211:inmon_synchronize' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:172:in
invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:201:inblock in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:in
each' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:ininvoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:178:in
block in invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/monitor.rb:211:inmon_synchronize' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:172:in
invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:201:inblock in invoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:in
each' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:199:ininvoke_prerequisites' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:178:in
block in invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/monitor.rb:211:inmon_synchronize' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:172:in
invoke_with_call_chain' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/task.rb:165:ininvoke' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:150:in
invoke_task' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:106:inblock (2 levels) in top_level' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:106:in
each' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:106:inblock in top_level' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:115:in
run_with_threads' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:100:intop_level' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:78:in
block in run' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:176:instandard_exception_handling' /root/.rbenv/versions/2.2.7/lib/ruby/2.2.0/rake/application.rb:75:in
run' /root/.rbenv/versions/2.2.7/bin/rake:33:in `