Skip to content

🐞 Database connection does not retry after server restart #340

@rahulkumarsingh73690

Description

@rahulkumarsingh73690

What happened?

When the database server restarts (or there’s a temporary DB outage), the app fails to reconnect automatically. It remains disconnected until the entire usesend app is manually restarted.

Expected behavior
The application should automatically retry the database connection and recover once the database is available again, without requiring a full app restart.

Actual behavior
The app stays disconnected and does not retry connecting to the database until the app is manually restarted.

Environment

  • Hosting: EasyPanel
  • Deployment: Docker (via EasyPanel)
  • Database: PostgreSQL
  • App: usesend
  • OS: Linux (server)

Additional context
This can cause downtime in production if the database restarts due to maintenance, scaling, or temporary failures. A retry/backoff mechanism or persistent connection handling would improve reliability.

Replication Steps

  1. Deploy the app using EasyPanel
  2. Start the application normally
  3. Restart the database server (or cause a temporary DB outage)
  4. Observe that the app does not reconnect to the database
  5. Restart the app container → connection works again

Self hosted or Cloud?

Self hosted

What browsers are you seeing the problem on?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions