01-16-2024 02:03 AM
Creating a storage credential requires the contributor role over the corresponding access connector with ID
/subscriptions/655a2f34-****-****-b77d-f45e70210122/resourceGroups/sub-name/providers/Microsoft.Databricks/accessConnectors/connector-name.
Please contact your account admin.
databricks --log-level DEBUG --profile VNXSPT storage-credentials create --json '@.\storage-cred-vnx.json'
...
"error_code": "RESOURCE_DOES_NOT_EXIST",
"message": "Refresh token not found for userId: Some(4295475011008721)"
...
01-18-2024 09:03 AM
I have added the Contributor role to my Service principal and I still get the same error. I tried multiple auth options and multiple clients, including sending a request to the API itself. I know the token is correct as other API endpoints work just fine. Could you guys help?
03-12-2024 12:42 PM
Hi @maikelos272,
Did you manage to solve the problem? I have the same headache here...
I get the same error while trying to create the storage credentials. When I'm using my user token the credentials are successfully created but not with the SPN's token. The permissions are the same for me and the SPN.
04-02-2024 05:14 AM
Hi @Retired_mod
Can you elaborate on the error "Refresh token not found for userId"?
I have exactly the same problem as described in this thread. I am trying to create a storage credential using a Personal Access Token from a Service Principal. This results in 404 with the response body:
{
"error_code": "RESOURCE_DOES_NOT_EXIST",
"message": "Refresh token not found for userId: Some(2302042022180399)",
"details": [
{
"@type": "type.googleapis.com/google.rpc.RequestInfo",
"request_id": "d731471b-b6b8-41a9-bf77-993529733668",
"serving_data": ""
}
]
}
When I use a Personal Access Token from my own user, the storage credential is created without error. Both the Service Principal and I have admin rights in Databricks and the Service Principal is Contributor on the Subscription.
a month ago
Did someone find a solution?
{ "error_code": "RESOURCE_DOES_NOT_EXIST", "message": "Refresh token not found for userId: Some(2302042022180399)", "details": [ { "@type": "type.googleapis.com/google.rpc.RequestInfo", "request_id": "d731471b-b6b8-41a9-bf77-993529733668", "serving_data": "" } ] }
I am Also getting the same error which is giving me headache..
3 weeks ago
I don't remember exactly how I solved this issue but I think I've added the following permissions on the metastore for the SPN through the Databricks API (you may not need all of them): CREATE_CATALOG, CREATE_CONNECTION, CREATE_EXTERNAL_LOCATION, CREATE_PROVIDER, CREATE_RECIPIENT, CREATE_SHARE, CREATE_STORAGE_CREDENTIAL
Please confirm if this solves your issue.
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