Databricks Apps Crashes Unexpectedly Without Showing any Logs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2025 07:49 AM
Hi All,
I coded up a Databricks app using fastapi which seems to be crashing on deployment. Databricks throws the error that "app crashed at startup" but the logging page is empty. So I do not know what went wrong. Any ideas on how to debug the problem?
- Labels:
-
Warehousing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2025 09:14 AM
Hello @sahil_101
Good day!!
Are you trying to call something? can you share more details on this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2025 10:31 AM
Hi @sahil_101 ,
If logs are not available at UI you can try another method. Append /logs to your app URL.
For example, if your app URL is https://my-app-1234567890.my-instance.databricksapps.com, logs are available at https://my-app-1234567890.my-instance.databricksapps.com/logz
Also if possible could you share code of your app (without private information etc.)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2025 01:36 PM
I want to update that I have been able to solve the problem and get the app running. The problem was related to trying to import from anoter folder instead of downloading the package using its wheel file. Just for the record, had already tried the logz method but that still gave a blank page.
However, I still have the problem of the logs not showing up. Maybe it has something to do with using uvicorn to run the app?
Consequently, I have no way of debugging code on my app, so if my api request returns an "internal server error", I do not know where my program failed.
So as a follow up question, anyone knows how to setup logging for a fastapi application run using uvicorn on Databricks?