cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Create Secret Scope in Databricks – “Fetch request failed due to expired user session”

SuMiT1
New Contributor III

I’m trying to create an Azure Key Vault-backed Secret Scope in Databricks, but when I click Create, I get this error:

Fetch request failed due to expired user session

I’ve already verified my login, permissions. I also tried refreshing and re-signing in, but the issue still persists.

6 REPLIES 6

ManojkMohan
Honored Contributor II

@SuMiT1  

Root Cause:

The Databricks workspace UI requires an active authentication session for sensitive operations like creating Secret Scopes.

  • Extended browser inactivity, resulting in token expir

  • Browser cache interfering with refresh token mechanisms.

  • SSO session mismatches, (multiple sign-ins  )

Solution thinking: 

i would suggest to try the following steps

StepExpected OutcomeContext
Full sign-out + browser cache clearRefreshed, valid session token, no errorhttps://community.databricks.com/t5/user/viewprofilepage/user-id/25639
Incognito/private tabNo session cross-talk, successful API fetchhttps://community.databricks.com/t5/user/viewprofilepage/user-id/25639
Use CLI/API with fresh loginVerifies if UI vs API session is at faulthttps://community.databricks.com/t5/user/viewprofilepage/user-id/25639
Workspace admin confirmationRules out backend config changeshttps://community.databricks.com/t5/user/viewprofilepage/user-id/25639

saurabh18cs
Honored Contributor III

Hi @SuMiT1 are you using any iac tool like terraform etc. or you want to try out manually using your own identity?

AnandGNR
New Contributor III

HI @SuMiT1 :

I’m facing the exact same issue. Were you able to figure out the root cause? I’d appreciate any pointers to resolve this! I 

 

SuMiT1
New Contributor III

Hi @AnandGNR,

This appears to be a network-related issue. Please check with the networking team that configured the Databricks resource. Also, since this process is outdated, you can consider using the Databricks Access Connector, which is a more efficient approach.

AnandGNR
New Contributor III

Hi @SuMiT1 ,

Certainly seems to be a networking issue but not able to zero down on what precisely needs to be done. I added the control plane ips to the firewall but still no luck.

How do we use  Databricks Access Connector to create scopes. Could you give me any pointers/resource links on its usage. I could not find any related info on how we could leverage this approach for KV scopes. We use it for setting the UC etc for Databricks but what would be the steps here. I can certainly give it a try!

Thanks

 

 

SuMiT1
New Contributor III

Hi @AnandGNR 
Here is the youtube link refer this 

https://www.youtube.com/watch?v=6HQCZNW7XwY&t=800s