I would like to get the below error solved
Cluster scoped init script dbfs:/FileStore/tables/***.sh failed: Script exit status is non-zero
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2022 04:46 AM
I am trying to run the databricks cluster, but at times the cluster takes long time to get set up & After some time it throws the below error.
Cluster scoped init script dbfs:/FileStore/tables/***.sh failed: Script exit status is non-zero
The init scripts run at certain times & fail at some times . Not sure why this is not a regular issue
Can you please help me with How I can resolve this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2022 06:50 AM
"Script exit status is non-zero," which means that the script returned some error. To debug, you need to identify what exactly.
The output of the bash script is in cluster logs. You can add some echo (timestamp and code executed) in the script to know what was processed.
You can also implement some error handling logic in bash, but it isn't pleasant https://linuxhint.com/bash_error_handling/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2022 11:45 PM
Hi @Vignesh Ravichandran
Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.
We'd love to hear from you.
Thanks!

