a week ago
I am experiencing an error when trying to commit output and Databricks notebook to GitHub. The error message states, "Error creating or updating commit outputs config file."
Could you please assist me in resolving this issue?
a week ago
Hi @2nonto,
That message comes from the step that creates the .databricks/commit_outputs file, which controls whether the outputs of .ipynb notebooks are committed. Please check these points in order. 1) Committing outputs is off by default. A workspace admin must open Settings > Workspace admin > Development and, in the Repos section, set "Allow repos to export IPYNB output" to "Allow: IPYNB outputs can be toggled on". 2) The notebook must be in IPYNB format and inside a Git folder, because only IPYNB notebooks can carry outputs. You can convert it with File > Notebook format > Jupyter (.ipynb). 3) Then create the file again from the Git dialog with "Create commit_outputs config file", or with File > Commit notebook outputs > Include Outputs. 4) The file is created inside your Git folder, so also check that you can edit that folder. If it still fails after these checks, please share the full error text and tell us if the admin setting is on.
Docs: https://docs.databricks.com/aws/en/notebooks/notebook-format
Tuesday
Wednesday
Hi @2nonto
The steps given by @Yougasundar should fix the issue, if still it is not resolved Please check below causes.
These are common causes from how Git folders work:
If it still fails, share the full error text, whether the admin setting is enabled, and whether the Git folder uses sparse checkout. That should pin down which of these it is.
Friday
This error comes from the step before anything is sent to GitHub. Databricks is trying to create or update the commit_outputs config file inside the Git folder's working tree and failing. That points to the workspace setting, your permissions on the folder, or the state of the folder, much more than to your GitHub token.
When you commit notebook outputs, the notebook has to be in .ipynb format. Databricks also keeps a small config file under .databricks/ in the Git folder that records that outputs should be committed. The banner means that write failed, which is why retrying doesn't help. The message is generic, so work through the checks below from most to least likely.
Workspace admin setting. Committing .ipynb outputs is gated by an admin setting. A workspace admin needs to open Settings โ Workspace admin โ Advanced and enable the option that lets Git folders export and commit IPYNB notebook outputs. Admin settings are reached from your username menu โ Settings [1]. If it was off, or someone toggled it recently, reload the page after it's enabled and try again.
Your permission on the Git folder. Creating the config file writes into the folder, so you need at least Can Edit on it. With only Can Read or Can Run, the write is rejected and you get this kind of generic error. Ask the owner or an admin to raise your access, or test with a Git folder you own.
Notebook format. Outputs are only preserved for .ipynb notebooks. If the notebook is a Databricks source-format notebook (.py, .sql), there are no outputs to commit. Convert or re-import it as a Jupyter notebook and try again.
State of the folder. Look for anything that could block writing .databricks/commit_outputs:
.databricks at the repo root.databricks/commit_outputsPull the latest branch, resolve any conflicts, and retry. The quickest isolation test is to clone the repo into a new Git folder under your own user folder, open the notebook there, and commit with outputs. If that works, the original folder's state is the problem, so remove or fix the stray .databricks entry or recreate the folder.
Git credentials. I'd rule this out last, because a bad token normally fails at push or pull time with an authentication error, not while writing a config file. It's still a 30-second check:
repo scope for a classic GitHub PAT [2].Open a ticket if the error still happens after you've confirmed all of these:
.ipynbAt that point it's a server-side failure you can't fix from the UI. The Request ID is what lets support find the exact backend error, so include:
2290261c-72f3-4795-a450-a89b4b5f1ba6For general Git folder connectivity and troubleshooting pages, start from the Git folders overview [3].
[1] Manage your workspace | Databricks on AWS โ https://docs.databricks.com/aws/en/admin/workspace-settings
[2] Configure Git integration for Git folders | Databricks on AWS โ https://docs.databricks.com/aws/en/repos/repos-setup
[3] Databricks Git folders | Databricks on AWS โ https://docs.databricks.com/aws/en/repos