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

docker-compose mysql connection refused #302

Closed
TikWind opened this issue Jul 10, 2020 · 13 comments
Closed

docker-compose mysql connection refused #302

TikWind opened this issue Jul 10, 2020 · 13 comments

Comments

@TikWind
Copy link
Contributor

TikWind commented Jul 10, 2020

Descripe

Hi everyone, I follow https://github.com/apache/incubator-apisix-dashboard/blob/master/compose/README.md to deploy this project, but when I visit http://127.0.0.1/dashboard/ in the browser, it redirect http://127.0.0.1/dashboard/setting :

image

When I use docker logs to look image name "dashboard_manager" and container name "dashboard_manager_1" :

image

Question

There is a error panic: fail to connect to DB: dial tcp 192.17.5.14:3306: connect: connection refused for root:123456@tcp(192.17.5.14:3306)/manager?charset=utf8&parseTime=True&loc=Local. Why? How to solve this problem? Thanks.

Environment

System: CentOS Linux release 7.8.2003 (Core)
CPU: 4 core
Memory: 8G

@TikWind
Copy link
Contributor Author

TikWind commented Jul 10, 2020

@juzhiyuan hello, can u help me to have a look? Thanks.

@juzhiyuan
Copy link
Member

Hi, this may be related to a issue we found those days, and it will be fixed this weekend. Once it’s fixed, I will notify you here.

@TikWind
Copy link
Contributor Author

TikWind commented Jul 10, 2020

OK, thanks. @juzhiyuan

@juzhiyuan
Copy link
Member

Please have a try in the new Dashboard :)

@imjoey
Copy link
Member

imjoey commented Jul 13, 2020

+1 for same issue.

@juzhiyuan May I ask which pull request fixed this or what the cause was? Thanks.

@TikWind
Copy link
Contributor Author

TikWind commented Jul 13, 2020

I hava tried again in master branch, but it is the same. @juzhiyuan

@juzhiyuan juzhiyuan reopened this Jul 13, 2020
@juzhiyuan
Copy link
Member

@TikWind Hi, would you mind adding my WeChat (JuShaoyao) and have a remote screen share?

@imjoey I will update here once this issue is fixed.

@imjoey
Copy link
Member

imjoey commented Jul 13, 2020

@juzhiyuan @TikWind For your information, the mysql connection error has gone with the latest code and everything worked in my case.

My environment is:

Operating system: macOS
Docker version: macOS docker desktop v2.3.0.2

@juzhiyuan
Copy link
Member

ok

@juzhiyuan
Copy link
Member

Feel free to reopen this issue when the error occurred again

@imjoey
Copy link
Member

imjoey commented Jul 13, 2020

Feel free to reopen this issue when the error occurred again

@juzhiyuan many thanks.

@TikWind
Copy link
Contributor Author

TikWind commented Jul 20, 2020

This bug is not mysql connect problem, at the begining, mysql start slowly, so other can' connect(so it will output error logs ), but when mysql start success, it is OK.

The real problem may be incompatibility problem, #322 #324 can resolve this bug.

@imjoey
Copy link
Member

imjoey commented Jul 20, 2020

This bug is not mysql connect problem, at the begining, mysql start slowly, so other can' connect(so it will output error logs ), but when mysql start success, it is OK.

The real problem may be incompatibility problem, #322 #324 can resolve this bug.

@TikWind Good catch. Thanks for your work.

While I have one more question that, everything is fine with my macOS docker desktop environment, is this bug OS dependent? Thanks.

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

No branches or pull requests

3 participants