https://prefect.io logo
#prefect-community
Title
# prefect-community
n

Naimesh Chaudhari

04/11/2022, 5:28 PM
Hi all - I am trying to get prefect to work on Kubernetes hosted on aws EKS. I can access the UI and it in turn is able to access the graphql pod. I am having an issue where whenever i create a project it fails. Can anyone help resolve this. Is it related to the RDS postgresql database I connected? How would I go about debugging this
k

Kevin Kho

04/11/2022, 5:29 PM
Is there an error? You can go in the interactive API tab of the UI and try querying to see if the API works
n

Naimesh Chaudhari

04/11/2022, 5:30 PM
what query would i type
k

Kevin Kho

04/11/2022, 5:31 PM
Copy code
query {
  hello
}
n

Naimesh Chaudhari

04/11/2022, 5:31 PM
that works fine
Uh oh! There's a problem It looks like your project wasn't added. Please try again. If you still need help, visit our Support Page.
thats the error I get
k

Kevin Kho

04/11/2022, 5:33 PM
How about like this?
Copy code
query {
  tenant{
    name
    id
  }
}
n

Naimesh Chaudhari

04/11/2022, 5:34 PM
that works fine as well
got the default tenant with id
k

Kevin Kho

04/11/2022, 5:35 PM
That’s pretty weird. How do you create the project? UI or CLI?
n

Naimesh Chaudhari

04/11/2022, 5:35 PM
through the UI
k

Kevin Kho

04/11/2022, 5:37 PM
Can you try querying the projects to see if it may have gone through in one of the attempts?
Copy code
query {
  project{
    name
    id
  }
}
n

Naimesh Chaudhari

04/11/2022, 5:37 PM
Copy code
{
  "data": {
    "project": []
  }
}
comes blank
k

Kevin Kho

04/11/2022, 5:40 PM
Hmm this is pretty weird. What happens when you do it through the CLI pointing to your API?
prefect create project name
prefect create project "name"
n

Naimesh Chaudhari

04/11/2022, 5:40 PM
hmm let me try that. I havent set up the CLI on my PC yet
how to i set the backend server in the cli
k

Kevin Kho

04/11/2022, 5:44 PM
prefect backend server
n

Naimesh Chaudhari

04/11/2022, 5:45 PM
how do i point to to the server link
sorry verry new to this cli
k

Kevin Kho

04/11/2022, 5:47 PM
export PREFECT___SERVER___ENDPOINT=<YOUR-IP>:4200/graphql
n

Naimesh Chaudhari

04/11/2022, 5:47 PM
got it ok
that worked
it was able to create the project
k

Kevin Kho

04/11/2022, 5:48 PM
And then you can view it in the UI?
n

Naimesh Chaudhari

04/11/2022, 5:48 PM
yup
i see it in the UI
k

Kevin Kho

04/11/2022, 5:49 PM
I don’t know what’s up with the UI then, you’d have to dig in the pod logs if it continues to persist
n

Naimesh Chaudhari

04/11/2022, 5:50 PM
OK - i can try that. Our debugging confirms that its connected to the RDS server though right.
k

Kevin Kho

04/11/2022, 5:50 PM
Yeah and the API is working
n

Naimesh Chaudhari

04/11/2022, 5:51 PM
OK thank you!
9 Views