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

Fix to start k8s and baremetal clusters at the same time #166

Open
daviderli614 opened this issue Oct 10, 2023 · 0 comments
Open

Fix to start k8s and baremetal clusters at the same time #166

daviderli614 opened this issue Oct 10, 2023 · 0 comments
Assignees

Comments

@daviderli614
Copy link
Member

steps:

  1. Start the k8s greptimedb cluster gtctl cluster create mycluster
  2. After start up is complete, execute kubectl port-forward svc/mycluster-frontend -n default 4003:4003
  3. Start the baremetal mode ./bin/gtctl playground, success is as follows:

image

  1. Check the process frontend is not started:

image

  1. Looking at the frontend log, there is error:
2023-10-09T09:54:27.369938Z ERROR greptime: Fatal error occurs! err.msg=Failed to start frontend, source: Failed to start server, source: Tokio IO error: Postgres failed to bind addr 127.0.0.1:4003, source: Address already in use (os error 48) err.code=Internal err.source=Failed to start server, source: Tokio IO error: Postgres failed to bind addr 127.0.0.1:4003, source: Address already in use (os error 48) err.source.sources=[Tokio IO error: Postgres failed to bind addr 127.0.0.1:4003, source: Address already in use (os error 48), Address already in use (os error 48)]
  1. Try to connect mysql and dashboard, but fail:

image

view http://localhost:4000/dashboard/ is ERR_CONNECTION_REFUSED

mysql -h 127.0.0.1 -P 4002
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1:4002' (61)
@shawnh2 shawnh2 removed their assignment Dec 28, 2023
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