Open marc0olo opened 12 months ago
the problem is definitely related to WSL2 and Docker on Windows. if somebody managed to solve it please let me know. I am sticking with the marketplace installer for now instead of CLI. wasted too much time on this "little issue" 😅
@marc0olo: both a colleague, and myself were not able to reproduce this issue on Windows 11, and WSL2 using Civo with v2.3.5 and GitHub/GitLab. It may be something about Windows 10, which I doubt.
I assume John's solution didn't work for you?
What is the result of running dig kubefirst.kubefirst.dev
?
mhh 🤔 right now I am avoiding to test this again by using the marketplace installer of Civo instead. will check again if I find some time. but I saw another person posting on slack about this problem, maybe it is the same or related.
John's solution is clear, but there is some strange config to be considered when running the whole stack on Windows via WSL2. so I wasn't able to solve it easily.
Having an identical issue with Civo. Will be testing with DigitalOcean to confirm that this is Civo exclusive:
Logs for context:
{"level":"debug","time":"2024-09-02T10:59:21-07:00","message":"unable to reach \"https://console.kubefirst.dev/api/proxyHealth\" (57/60)"}
{"level":"debug","time":"2024-09-02T10:59:26-07:00","message":"unable to reach \"https://console.kubefirst.dev/api/proxyHealth\" (58/60)"}
{"level":"debug","time":"2024-09-02T10:59:31-07:00","message":"unable to reach \"https://console.kubefirst.dev/api/proxyHealth\" (59/60)"}
{"level":"debug","time":"2024-09-02T10:59:36-07:00","message":"unable to reach \"https://console.kubefirst.dev/api/proxyHealth\" (60/60)"}
{"level":"info","time":"2024-09-02T10:59:41-07:00","message":"error Get \"https://console.kubefirst.dev/api/proxy?url=/cluster/civo-phx1-cscloud\": dial tcp 127.0.0.1:443: connect: connection refused"}
{"level":"info","time":"2024-09-02T10:59:41-07:00","message":"cluster not found"}
{"level":"info","time":"2024-09-02T10:59:41-07:00","message":"error Post \"https://console.kubefirst.dev/api/proxy\": dial tcp 127.0.0.1:443: connect: connection refused"}
Update: was having this issue when testing with DigitalOcean as well. However, managed to get it working.
More context on what was done to resolve it here in this comment: https://github.com/ssotops/k1space/issues/10#issuecomment-2325330556
@alechp: I think your issue isn't related to what @marc0olo was experimenting since it is specific to the move we are doing.
As for @marc0olo, I wasn't able to replicate last time I tried, so we'll need to debug this together once you have the time. We can also consider this issue as closed if, as you mentioned, using only the marketplace now, and won't replicate.
Which version of kubefirst are you using?
v2.3.5
Which cloud provider?
Civo
Which DNS?
Cloud ones (default)
Which installation type?
CLI
Which distributed Git provider?
GitHub
Which Operating System?
Windows
What is the issue?
We have discussed this already on Slack. I have tested multiple scenarios. In this specific case I used my own custom gitops-template which is based on the latest commit of the main branch. I don't think that the gitops-template causes the error.
My current assumption is that this is related to my local setup. I am running on Windows 10 and Docker is running with WLS2 (Ubuntu).
For whatever reason the kubefirst cluster for running cannot resolve the DNS names.
Logs
Possible solution
I just saw that other users faced this issue and I saw that @johndietz posted (https://kubefirst.slack.com/archives/C03U34WJ7FW/p1699204416688779?thread_ts=1699009556.005929&cid=C03U34WJ7FW) following solution:
Code of Conduct