MuleSoft · Database Connector

Could not obtain connection from data source

Short answer

Could not obtain connection from data source appears when a Mule app with a CloudHub static IP runs its database connectivity test at deployment before the static IP is assigned. Set the system property -DdoTestConnectivity=false.

VerifiedLast verified

01Error text

MuleSoft error
Could not obtain connection from data source

02Likely causes

  • The app is deployed to CloudHub with a static IP, and the connectivity test runs before the static IP is assigned.
  • The database only accepts connections from that static IP, so the test connection is refused.

03How to fix it

  1. Confirm the app uses a CloudHub static IP and that the database allowlists it.
  2. Set the system property -DdoTestConnectivity=false so the connectivity test is skipped at deployment.
  3. Deploy the app again.

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.