astro-cli icon indicating copy to clipboard operation
astro-cli copied to clipboard

Error when Authenticating to Astronomer Software

Open ReadytoRocc opened this issue 3 years ago • 1 comments

Describe the bug When I run astro login BASE_DOMAIN to authenticate to an Astronomer Software instance (v0.28.4), I receive the following error:

Failed to authenticate to the registry. Do you have Docker running?
You will not be able to push new images to your Airflow Deployment unless Docker is running.
If Docker is running and you are seeing this message, the registry is down or cannot be reached.

What CLI Version did you experience this bug? Astro CLI Version: 1.0.1

What Operating System is the above CLI installed on? macOS 12.3.1

ReadytoRocc avatar Jun 10 '22 12:06 ReadytoRocc

Do we have docker running in the machine and accessible because, during astro login to Astronomer Software, it also login to the registry hosted by the platform? I have tried astro 1.0.1 and it seems to be working fine.

neel@Neels-MacBook-Pro astro-cli % astro login qa.astronomer.io                                         
 CLUSTER                             WORKSPACE                           
 qa.astronomer.io                    ckyk0sxsh385116lmaiti3m636          
Username (leave blank for oAuth): [email protected]
Password: 
 CONTEXT DOMAIN                      WORKSPACE                           
 qa.astronomer.io                    ckyk0sxsh385116lmaiti3m636          

 Switched context

"neel-test" Workspace found. This is your default Workspace.

Successfully authenticated to registry.qa.astronomer.io
neel@Neels-MacBook-Pro astro-cli % astro version               
Astro CLI Version: 1.0.1
neel@Neels-MacBook-Pro astro-cli %

If docker is running in your machine then can you share the output with astro login BASE_DOMAIN --verbosity=debug

neel-astro avatar Jun 10 '22 13:06 neel-astro

Closing this because I am not able to replicate the issue. Feel free to reopen if the issue persists @ReadytoRocc, but based on the error message most likely it is just because of docker not running during astro login

neel-astro avatar Nov 24 '22 04:11 neel-astro