Skip to main content

Error: A ResourcePool could not acquire a resource

Error Indicating a Lost Database Connection

Written by Petr Pech

What the error means

The application is unable to connect to the database.

👉 This is typically caused by a PostgreSQL outage or unavailability.


How the problem manifests

The following may appear in the log, for example:

class java.sql.SQLException:
Connections could not be acquired from the underlying database!

If applicable, pass this information on to your server administrator.


Possible causes

  • the database service is not running

  • the connection was interrupted (network issue, server restart)

  • the database is overloaded or not responding

  • available connections have been exhausted


How to resolve the issue

  1. Verify that the database (PostgreSQL) is running

  2. Check server availability (network, port)

  3. Review the server / PostgreSQL logs

  4. if necessary, restart the Flexi service / database

Did this answer your question?