GreptimeTeam / GreptimeTeam/gtctl

Fix to start k8s and baremetal clusters at the same time

Open
#166 0 comments 0 reactions 1 assignee Assigned to @zyy17 View on GitHub
Dominant language
Go
Stars
37
Forks
13
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/GreptimeTeam/gtctl/assets/64472425/d524b6e5-804f-4199-8644-1f0cc62e78ba)

4. Check the process frontend is not started:

![image](https://github.com/GreptimeTeam/gtctl/assets/64472425/44046b34-3107-408b-a3f0-8abebad92c4f)

5. 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)]
```
6. Try to connect mysql and dashboard, but fail:

![image](https://github.com/GreptimeTeam/gtctl/assets/64472425/97cfad6f-8c2a-4b5d-8847-7ce720720bb4)

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)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.