algobasket / PeatioCryptoExchange

An open-source Crypto-Currency exchange. Peatio v3.0 Coming Soon !
https://www.peatio.info
186 stars 205 forks source link

Error with /config/database.yml #106

Open xcelr opened 3 years ago

xcelr commented 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