https://prefect.io logo
Title
h

Hafsa Junaid

08/01/2022, 9:44 PM
any guide on this error message for prefect 1.0 cloud
HTTPSConnectionPool(host='34.66.191.39', port=443): Max retries exceeded with url: /apis/batch/v1/namespaces/default/jobs (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3196f62eb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
m

Mason Menges

08/01/2022, 11:19 PM
Hey @Hafsa Junaid I can't say I'm certain what could be causing this, could you elaborate more on your config and where you're submitting the jobs? i.e agent/run config
h

Hafsa Junaid

08/02/2022, 10:03 AM
Hello @Mason Menges starting agent: prefect agent kubernetes start --label xyz CODE:
STORAGE = GitHub(
    repo="xyz/ADM",
    path=f"code/xaimpl/feat/prefect_beta/flows/{FLOW_NAME}.py",
    access_token_secret="xyz",  # required with private repositories
    ref = "master"
)

@task(log_stdout=True, result=LocalResult())
def hello_world():
    text = f"hello to {FLOW_NAME}"
    print(text)
    return text

    

with Flow(
    FLOW_NAME, storage=STORAGE, run_config=KubernetesRun(labels=["xyz"],image=imagename)
) as flow:
    data = hello_world()
m

Mason Menges

08/02/2022, 5:04 PM
Hmm Nothing looks out of place there, it does seem like a refusal on the kubernetes side @Christopher Boyd do you have any ideas on this?
👀 1
c

Christopher Boyd

08/02/2022, 5:08 PM
Failed to establish a new connection: [Errno 110] Connection timed out'))
• Did this work previously and stopped working, or is this a new issue that you are testing? • Do you have a firewall or proxy in place blocking connections? This looks like a pretty generic network error in hitting the target - I would verify that you can reach that IP address (seems like 34.66.191.39) from in cluster and out of cluster