Hi everyone. I'm trying to deploy a prefect server...
# ask-community
l
Hi everyone. I'm trying to deploy a prefect server in ECS. The server works fine locally in a docker compose file. But in ECS, I got a time out error (see logs here https://gist.github.com/lucascr91/b5d833666d79601a86bdd2f2ec12962b) I use my local prefect server to test the connection to the RDS instance I created for the ECS deployment and it worked fine. But in the ECS task I always got this error. I thought it could be related to resource constraint but even after I increase the CPU and memory for the task it fails to start up the server. Any hint on what is possibly going on will be appreciated.
e
Hi @Lucas Cavalcanti Rodrigues 👋 it looks to me like the server is having trouble reaching your RDS instance. The stack trace has a lot of reference to alembic - which is the library we use to manage database migrations - and the error raised is
TimeoutError
. Probably something about your network setup. Maybe confirm that you can connect to your RDS instance from ECS independently of Prefect?
✅ 1
l
Hi, Emil. Thanks for the answer. You are right. The database was in a different subnet than the ECS service. I did the correction and is working now.