Critical severityconfiguration
Power BI Refresh Error:
INIT_SCRIPT_FAILURE
What does this error mean?
A Databricks cluster failed to start because one or more cluster-scoped or global init scripts exited with a non-zero return code, causing the cluster initialization sequence to abort.
Common causes
- 1The init script installs a library version that is incompatible with the Databricks Runtime version on the cluster
- 2The init script references a file path or cloud storage location that no longer exists or the cluster instance role cannot access
- 3A network-dependent step in the init script (e.g., pip install from a private registry) fails due to a VPC or firewall configuration change
How to fix it
- 1Step 1: Locate the init script log in the cluster's event log (Compute > Cluster > Event Log) or in the DBFS path /databricks/init_scripts/<cluster-name>/.
- 2Step 2: Identify the failing command in the script output — look for the first non-zero exit code in the log.
- 3Step 3: Test the script in isolation on a temporary cluster with the Databricks Runtime version matching the failing cluster.
- 4Step 4: Pin library versions in the init script and add set -e to fail fast with a clear error on the first failing command.