AzBuilder / terrakube

Open source IaC Automation and Collaboration Software.
https://docs.terrakube.io
Apache License 2.0
503 stars 39 forks source link

Unable to Create workspace #930

Closed jeinfra closed 1 month ago

jeinfra commented 3 months ago

Feedback

Hi, i am unable to create workspace, i keep getting a blank page on the terraform version side and when i add a new VCS (github) it redirects me to a blank page. attached screenshots, please help am i doing anything wrong? image image

alfespa17 commented 3 months ago

I guess is a network issue, double check if you have connectivity to this endpoint from inside the API pod.

https://releases.hashicorp.com/terraform/index.json

And for the VCS issue make sure you use the correct "callback redirect" in your github oauht application

image

jeinfra commented 3 months ago

yeah. am using the correct call back redirect, i cant reach the terraform url

cnb@terrakube-api-884969c8c-bbz5q:/workspace$ wget -qO- https://releases.hashicorp.com/terraform/index.json bash: wget: command not found cnb@terrakube-api-884969c8c-bbz5q:/workspace$

alfespa17 commented 3 months ago

wget command is not installed in the API container but if you are deploying the executor in the same k8s you could try running curl in the executor just to double check

cnb@terrakube-executor-5d74845c5f-gxsz2:/workspace$ curl https://releases.hashicorp.com/terraform/index.json

Maybe you can share some API pod logs when you are creating the workspace to check if you see some network issue

jeinfra commented 3 months ago

curl works on the executor pod, i am using same k8s cluster and no log from the api pod when i am trying to create a workspace

image

image

alfespa17 commented 3 months ago

Try creating one workspaces and check the logs, there should be a message inside the API logs like:

Using terraform releases URL

Maybe you see some error there and check the browser logs when you are creating the workspace