https://flyte.org logo
#ask-the-community
Title
# ask-the-community
e

Eric Peter Wairagala

03/27/2024, 11:25 AM
Hello guys i get this error
Failed to check if the image exists with error : Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
for this command
pyflyte --config ~/.flyte/config.yaml register ...
i am using GCP artifact for my registry .
d

David Espejo (he/him)

03/27/2024, 12:16 PM
@Eric Peter Wairagala does it work for other images? In the GCP reference implementation we use Access Tokens to authenticate the docker client to AR. It seems to be too a known Docker desktop error https://forums.docker.com/t/docker-errors-dockerexception-error-while-fetching-server[…]nderror-2-no-such-file-or-directory-error-in-python/135637/5 Let us know if any of this helps
e

Eric Peter Wairagala

03/27/2024, 12:17 PM
Thanks , yes it works locally
I followed the GCP reference implementation but when i do register i get this error
|
3/21/2024 9:20:44 AM UTC [ContainersNotReady|ErrImagePull]: containers with unready status: [fa3bd219837d8419fa3a-n0-1]|rpc error: code = Unknown desc = failed to pull and unpack image "<zone>-<http://docker.pkg.dev/|docker.pkg.dev/><project id>/flyte/flytekit:xF1cgf8oR_tem7zToRJ_Cw": failed to resolve reference "<zone>-<http://docker.pkg.dev/|docker.pkg.dev/><project id>/flyte/flytekit:xF1cgf8oR_tem7zToRJ_Cw": failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://<zone>-<http://docker.pkg.dev/v2/token?scope=repository%3A|docker.pkg.dev/v2/token?scope=repository%3A><project id>%2Fflyte%2Fflytekit%3Apull&service=<zone>-<http://docker.pkg.dev|docker.pkg.dev>: 403 Forbidden
d

David Espejo (he/him)

03/27/2024, 1:12 PM
can you verify that the Kubernetes Service Account used by your execution is annotated with the
imagePullSecret
?
e

Eric Peter Wairagala

03/27/2024, 1:45 PM
Yes i did .
d

David Espejo (he/him)

03/27/2024, 1:57 PM
I'm not able to repro. I have a deployment using the reference impl on GCP with AR and ImageSpec and it successfully push/pull images Maybe check you're logged in with
gcloud
?
e

Eric Peter Wairagala

03/27/2024, 2:04 PM
Are you using a command like this pyflyte --config ~/.flyte/config.yaml register
d

David Espejo (he/him)

03/27/2024, 2:07 PM
I just run it and works. It's just that I don't invoke the config file everytime you can export it to the
FLYTECTL_CONFIG
env var
Copy code
[✔] Registration example.get_data type TASK successful with version TkhqvkAkHrOGMDAt-uDADA==
[✔] Registration example.process_data type TASK successful with version TkhqvkAkHrOGMDAt-uDADA==
[✔] Registration example.train_model type TASK successful with version TkhqvkAkHrOGMDAt-uDADA==
[✔] Registration example.training_workflow type WORKFLOW successful with version TkhqvkAkHrOGMDAt-uDADA==
[✔] Registration example.training_workflow type LAUNCH_PLAN successful with version TkhqvkAkHrOGMDAt-uDADA==
Successfully registered 5 entities
e

Eric Peter Wairagala

03/27/2024, 2:13 PM
Is it okay for you to share how the commands look like and the imagespec
d

David Espejo (he/him)

03/27/2024, 2:26 PM
Attached is the workflow that uses AR and ImageSpec The command follows the
pyflyte register <file>
structure
e

Eric Peter Wairagala

03/27/2024, 2:27 PM
Thanks
My is in form of a poetry package
But i get this , something must be very wrong with my configurations.
s

Samhita Alla

03/29/2024, 6:40 AM
i'm guessing envd doesn't have access to the registry you specified in your imagespec.
e

Eric Peter Wairagala

03/31/2024, 10:57 AM
Yeah , maybe .
@Samhita Alla so how do i go around it .
s

Samhita Alla

04/02/2024, 4:32 PM
does your terminal have access to your registry? you should be setting that up for envd to be able to access it.
e

Eric Peter Wairagala

04/02/2024, 5:09 PM
Yeah it has
8 Views