Skip to content
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

Unknown MySQL server host 'db' (-2) #69

Closed
uguracar opened this issue May 5, 2018 · 6 comments
Closed

Unknown MySQL server host 'db' (-2) #69

uguracar opened this issue May 5, 2018 · 6 comments

Comments

@uguracar
Copy link

uguracar commented May 5, 2018

Hi,
Trying to login http://peatio:8000/admin with the user id: admin@barong.io but I'm getting "Unknown MySQL server host 'db' (-2)" error.

is anyone knows why it might be failing,(in fact db is the docker image host name of the mysql server)?

thanks
Ugur

@shal
Copy link
Contributor

shal commented Jun 30, 2018

@uguracar I can't reproduce same, now everything works correctly.

@shal shal closed this as completed Jun 30, 2018
@ghost
Copy link

ghost commented Aug 24, 2018

@uguracar how did you solve that?Mysql2::Error: Unknown MySQL server host 'db' (-2)
/opt/vendor/bundle/ruby/2.5.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:89:in connect' /opt/vendor/bundle/ruby/2.5.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:89:in initialize'
/opt/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in new' /opt/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in mysql2_connection'
/opt/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:438:in new_connection' /opt/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:448:in checkout_new_connection'
/opt/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:422:in acquire_connection' /opt/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:349:in block in checkout'
/opt/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:348:in checkout' /opt/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:263:in block in connection'
/opt/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:262:in connection' /opt/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:571:in retrieve_connection'
/opt/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.10/lib/active_record/connection_handling.rb:113:in retrieve_connection' /opt/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.10/lib/active_record/connection_handling.rb:87:in connection'
/opt/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:941:in initialize' /opt/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:823:in new'
/opt/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:823:in up' /opt/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:801:in migrate'
/opt/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.10/lib/active_record/tasks/database_tasks.rb:139:in migrate' /opt/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.10/lib/active_record/railties/databases.rake:44:in block (2 levels) in <top (required)>'
/opt/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/exe/rake:27:in <top (required)>' /usr/local/bundle/bin/bundle:104:in load'
/usr/local/bundle/bin/bundle:104:in `

'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
Makefile:42: recipe for target 'setup-apps' failed
make: *** [setup-apps] Error 1

@ghost
Copy link

ghost commented Aug 24, 2018

This is the only program that i have spent four days to setup.

@shal
Copy link
Contributor

shal commented Aug 24, 2018

Hi @laugh26

It is very sadly, how we can help you?

Did you change files or something in workbench source code, because seems like this problem not related to current version of workbench.

I can just suggest to try update your system, docker, docker-compose to latest versions.

@ghost
Copy link

ghost commented May 1, 2019

Also having this issue, am curious if anyone has found a resolution to this.

@ysoup
Copy link

ysoup commented Sep 2, 2019

I also have this error. Any solution?

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

No branches or pull requests

3 participants