Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error - databricks.sdk.errors.mapping.NotFound: Files in Repos must be enabled for AUTO ExportFormat #576

Closed
dipankarkush-db opened this issue Nov 14, 2023 · 5 comments
Assignees

Comments

@dipankarkush-db
Copy link
Contributor

Here is the stack trace -

Enter a number between 0 and 2: 2
Comma-separated list of workspace group names to migrate. If not specified, we'll use all account-level groups with matching names to workspace-level groups. (default: <ALL>): 
Backup prefix (default: db-temp-): 
Log level (default: INFO): 
Number of threads (default: 8): INFO [__main__] Creating configuration file: /Users/XXXXX.XXXXX@domain.com/.ucx/config.yml
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/m3210483/source/ucx/src/databricks/labs/ucx/install.py", line 837, in <module>
    installer.run()
  File "/home/m3210483/source/ucx/src/databricks/labs/ucx/install.py", line 107, in run
    self._configure()
  File "/home/m3210483/source/ucx/src/databricks/labs/ucx/install.py", line 367, in _configure
    self._write_config()
  File "/home/m3210483/source/ucx/src/databricks/labs/ucx/install.py", line 383, in _write_config
    self._ws.workspace.upload(self.config_file, config_bytes, format=ImportFormat.AUTO)
  File "/tmp/tmp.RALkKV481G/lib/python3.10/site-packages/databricks/sdk/mixins/workspace.py", line 90, in upload
    raise e
  File "/tmp/tmp.RALkKV481G/lib/python3.10/site-packages/databricks/sdk/mixins/workspace.py", line 84, in upload
    return self._api.do('POST', '/api/2.0/workspace/import', files={'content': content}, data=data)
  File "/tmp/tmp.RALkKV481G/lib/python3.10/site-packages/databricks/sdk/core.py", line 1070, in do
    return retryable(self._perform)(method,
  File "/tmp/tmp.RALkKV481G/lib/python3.10/site-packages/databricks/sdk/retries.py", line 47, in wrapper
    raise err
  File "/tmp/tmp.RALkKV481G/lib/python3.10/site-packages/databricks/sdk/retries.py", line 29, in wrapper
    return func(*args, **kwargs)
  File "/tmp/tmp.RALkKV481G/lib/python3.10/site-packages/databricks/sdk/core.py", line 1162, in _perform
    raise self._make_nicer_error(response=response, **payload) from None
databricks.sdk.errors.mapping.NotFound: Files in Repos must be enabled for AUTO ExportFormat
@nfx
Copy link
Collaborator

nfx commented Nov 16, 2023

@dipankarkush-db
Copy link
Contributor Author

Here are the steps for resolving this issue -

1) Enable/Disable Repos
If you are already use Repos on the workspace, you can skip this, if you are not, please ensure that Repos is enabled by follow these steps: https://gist.github.com/simonfl-db/e4dcbe75fae769304d2f7e0cd0e734dd

2) Enable/Disable Files
You can use a notebook and the SDK for this one as well or execute the call on the command line as shown below (you'll have to set your DB_TOKEN and DB_URL env variables first, btw) :

curl -n -X PATCH -H "Authorization: Bearer $DB_TOKEN" -d '{ "enableWorkspaceFilesystem": "true" }' $DB_URL/api/2.0/workspace-conf | jq

@github-project-automation github-project-automation bot moved this from Triage to Archive in UCX Nov 16, 2023
@nfx nfx reopened this Jan 9, 2024
@github-project-automation github-project-automation bot moved this from Archive to Refined in UCX Jan 9, 2024
@nfx
Copy link
Collaborator

nfx commented Jan 9, 2024

we need to enable WSFS from UCX automatically

@nfx
Copy link
Collaborator

nfx commented Mar 9, 2024

Fixed in databrickslabs/blueprint#42

@nfx nfx closed this as completed Mar 9, 2024
@github-project-automation github-project-automation bot moved this from Refined to Archive in UCX Mar 9, 2024
@P164-slalom
Copy link

We faced the similar issue. In addition to the above mentioned configs (enableProjectTypeInWorkspace, enableWorkspaceFilesystem), another config enableFilesInWorkspace has to be set to 'true'.

@ghost ghost mentioned this issue Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
5 participants