I am getting the below error while Installing UCX. But Installation is done in the workspace.I have admin privileges on the workspace. The below error suggests to check token or URL of workspace.They are provided correctly.Then why below error is showing.
Traceback (most recent call last):
File "C:\databricks\labs\ucx\lib\src\databricks\labs\ucx\install.py", line 831, in <module>
account_installer.join_collection(
File "C:\.databricks\labs\ucx\lib\src\databricks\labs\ucx\install.py", line 695, in join_collection
ids_to_workspace = self._get_workspace_info(current_workspace_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\databricks\labs\ucx\lib\src\databricks\labs\ucx\install.py", line 678, in _get_workspace_info
workspace = account_client.workspaces.get(current_workspace_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\.databricks\labs\ucx\state\venv\Lib\site-packages\databricks\sdk\service\provisioning.py", line 2626, in get
res = self._api.do('GET',
^^^^^^^^^^^^^^^^^^^
File "C:\.databricks\labs\ucx\state\venv\Lib\site-packages\databricks\sdk\core.py", line 131, in do
response = retryable(self._perform)(method,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\.databricks\labs\ucx\state\venv\Lib\site-packages\databricks\sdk\retries.py", line 54, in wrapper
raise err
File "C:\databricks\labs\ucx\state\venv\Lib\site-packages\databricks\sdk\retries.py", line 33, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\.databricks\labs\ucx\state\venv\Lib\site-packages\databricks\sdk\core.py", line 242, in _perform
raise self._make_nicer_error(response=response, **payload) from None
databricks.sdk.errors.platform.Unauthenticated: Cannot complete request; user is unauthenticated. Config: host=https://***********, account_id=*********, token=***, databricks_cli_path=C:\AppData\Local\Microsoft\WinGet\Packages\Databricks.DatabricksCLI_Microsoft.Winget.Source_8wekyb3d8bbwe\databricks.exe, auth_type=pat. Env: DATABRICKS_HOST, DATABRICKS_TOKEN, DATABRICKS_CLI_PATH
Error: installer: exit status 1