Jason
04/22/2022, 4:47 PMraise InterruptedError(line.get("error"))
InterruptedError: no basic auth credentials
Kevin Kho
aws ecr get-login-password
?Jason
04/22/2022, 5:43 PMKevin Kho
Jason
04/22/2022, 5:46 PMKevin Kho
docker push
worksJason
04/22/2022, 5:55 PMKevin Kho
client.push()
and if it fails, we can look into why docker-py
isn’t getting the credentialsJason
04/22/2022, 6:03 PMAWS_PROFILE=github make docker-login
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin <http://EDITED.dkr.ecr.us-east-1.amazonaws.com|EDITED.dkr.ecr.us-east-1.amazonaws.com>
WARNING! Your password will be stored unencrypted in /home/EDITED/.docker/config.json.
Configure a credential helper to remove this warning. See
<https://docs.docker.com/engine/reference/commandline/login/#credentials-store>
Login Succeeded
Successfully tagged <http://EDITED.DKR.ECR.US-EAST-1.AMAZONAWS.COM/EDITED-prod-platform-prefect:latest|EDITED.DKR.ECR.US-EAST-1.AMAZONAWS.COM/EDITED-prod-platform-prefect:latest>
[2022-04-22 13:03:59-0500] INFO - prefect.Docker | Pushing image to the registry...
Error building storage:
Traceback (most recent call last):
File "/home/EDITED/.local/share/virtualenvs/data-vrc-T2jvyYmD/lib/python3.9/site-packages/prefect/cli/build_register.py", line 457, in build_and_register
storage.build()
File "/home/EDITED/.local/share/virtualenvs/data-vrc-T2jvyYmD/lib/python3.9/site-packages/prefect/storage/docker.py", line 325, in build
self._build_image(push=push)
File "/home/EDITED/.local/share/virtualenvs/data-vrc-T2jvyYmD/lib/python3.9/site-packages/prefect/storage/docker.py", line 399, in _build_image
self.push_image(full_name, self.image_tag)
File "/home/EDITED/.local/share/virtualenvs/data-vrc-T2jvyYmD/lib/python3.9/site-packages/prefect/storage/docker.py", line 613, in push_image
raise InterruptedError(line.get("error"))
InterruptedError: no basic auth credentials
Registering 'hello-flow'... Error
================== 0 registered, 1 errored ==================
Kevin Kho
docker-py
isn’t picking it up. This is a widely used setup among Prefect users though so this is very weirdJason
04/22/2022, 6:30 PMKevin Kho
Anna Geller
Marvin
04/22/2022, 7:04 PMJason
04/22/2022, 7:09 PMKevin Kho
Anna Geller
Kevin Kho
Jason
04/22/2022, 7:13 PMKevin Kho