cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Articles
Dive into a collaborative space where members like YOU can exchange knowledge, tips, and best practices. Join the conversation today and unlock a wealth of collective wisdom to enhance your experience and drive success.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Databricks Apps Crashes Unexpectedly Without Showing any Logs

sahil_101
New Contributor II

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?

 

 

3 REPLIES 3

Khaja_Zaffer
Contributor III

Hello @sahil_101 

Good day!!

Are you trying to call something? can you share more details on this?

szymon_dybczak
Esteemed Contributor III

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.)?

 

sahil_101
New Contributor II

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?