cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Machine Learning
Dive into the world of machine learning on the Databricks platform. Explore discussions on algorithms, model training, deployment, and more. Connect with ML enthusiasts and experts.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

`mlflow.login()` failed with error: Failed to validate databricks credentials: Basic Authentication

cwij95
New Contributor III

I have been using mlflow with Databricks community edition for 3 months without any issue. However, today when I tried to login to the mlflow host (https://community.cloud.databricks.com/), using this code, I keep getting the error below.

 

# Setup MLflow
mlflow.login() # host: https://community.cloud.databricks.com/
mlflow.set_tracking_uri("databricks")
mlflow.set_experiment("/test")

 

`mlflow.login()` failed with error: Failed to validate databricks credentials: Basic Authentication is disabled for your user.

I am using Databricks Community Edition for personal experiments; however, I am no longer able to use it now. Is there any other way I can access Databricks Community Edition for mlflow now, without basic authentication (username/ password)?

8 REPLIES 8

Walter_C
Databricks Employee
Databricks Employee

I can see the following steps in docs, have you tried those approaches too: https://docs.databricks.com/en/mlflow/access-hosted-tracking-server.html#step-1-configure-your-envir...

Indeed as basic authentication has been deprecated this might affect your community edition set up as PAT tokens are also not available in CE, let me check with the internal teams if this means mlflow is no longer supported on CE and will get back to you

cwij95
New Contributor III

Thank you for your prompt response @Walter_C. I tried the recommended steps given in the shared reference (for Community Edition), and due to basic authentication being deprecated, I am no longer able to login successfully.

Walter_C
Databricks Employee
Databricks Employee

Got it, thanks for reviewing, i will make you aware as soon as I have response from my team.

cwij95
New Contributor III

Hi @Walter_C, any update on this? Please let us know if this feature is no longer provided in Databricks CE.

Walter_C
Databricks Employee
Databricks Employee

Hello, I really apologize for the delay this is taking, I am still looking to confirm this with our internal teams

Walter_C
Databricks Employee
Databricks Employee

Our team has confirmed that MLflow is still supported in CE, and OAuth should work, so you could try using similar step of using PAT token listed in the doc I shared above, but the token you need to use needs to be generated by using steps in https://docs.databricks.com/en/dev-tools/auth/oauth-u2m.html 

Walter_C
Databricks Employee
Databricks Employee

Have you been able to test it by using the Oauth as authenticator process?

cwij95
New Contributor III

Thank you for the update. It seems the provided reference https://docs.databricks.com/en/dev-tools/auth/oauth-u2m.html discusses authenticating access to the Databricks Platform (not the Databricks CE), where we need an Account ID to proceed with the authentication process. In Databricks CE, I am unable to find the Account ID attribute. I have also tried to manually generate the workspace-level access token as mentioned in the above reference, but still I am unable to generate the access token. Appreciate if you could share a reference code I could use with Databricks CE for the authentication process.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group