postgres Plugin Stuck on "Attempting to Connect" - Cannot Reach Database from Backend Service
andrewrin05
FREEOP

5 months ago

Hola equipo de soporte de Railway,

Estoy experimentando un problema persistente con mi plugin Postgres en el proyecto [bahia-go-backend]. El plugin Postgres queda indefinidamente en "Attempting to connect to the database..." en la interfaz de la pestaña "Database". Como resultado, mi servicio backend (NestJS + Prisma) no puede conectarse a la base de datos y devuelve errores 500 con "PrismaClientInitializationError: Can't reach database server at postgres.railway.internal:5432".

Detalles Técnicos:

  • Proyecto ID: [Inserta tu project ID de Railway]
  • Servicio Backend: bahia-go-backend (NestJS, desplegado correctamente)
  • Plugin Postgres: [Nombre o ID del plugin, si lo tienes]
  • Variables de Entorno: DATABASE_URL está configurada correctamente y apunta a postgresql://postgres:[password]@postgres.railway.internal:5432/railway
  • Acciones Tomadas:
    • Reinicié el plugin Postgres múltiples veces desde la interfaz.
    • Redeployé el servicio backend varias veces.
    • Verifiqué logs del backend: La app se inicia bien, pero falla al intentar conectarse a la DB (ver logs adjuntos).
    • Intenté cambiar temporalmente DATABASE_URL a la URL pública-proxy, pero el problema persiste en la red interna.
Solved

1 Replies

sam-a
EMPLOYEE

5 months ago

Hello,

Apologies but we can only do support in English. Please re-submit this ticket using the English language.

Best,

The Railway Team


Status changed to Awaiting User Response Railway 5 months ago


Railway
BOT

5 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 5 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...