Error loading ASGI app. Could not import module "main".
I'm trying to run a Fast API app on a Pod. I've followed this tutorial
https://www.runpod.io/articles/guides/deploy-fastapi-applications-gpu-cloud
My Docker Image runs locally fine.
The container gets created fine on RunPod. However I gett an error message in the Container Logs.
If I attempt to override the start CMD then I just get error messages saying a file can't be found, even if I enter the exact same CMD that is in the docker file.
This is my Docker FIle
How to Deploy FastAPI Applications with GPU Access in the Cloud
Deploying a FastAPI application that uses GPU acceleration (e.g. with PyTorch) can be achieved by containerizing the app and running it on a cloud GPU...
4 Replies
maybe its the way you import things in python, where is that error coming from?
which file
Actually I think the problem was that my changes weren't pushed to Docker Hub correctly.
Did you tried to use same tags?
Try other tag
The problem was just that I wasn't retagging the local container. It's working now.
Thank you