Connection to the database terminated - channelInactive

We are new to Neo4j Aura. And we are facing below problem from time to time in our servers. we tried with differrent configurations, but still no luck. Any help/clue to solve this issue is highly appreciated.

org.neo4j.bolt.connection.exception.BoltServiceUnavailableException: Connection to the database terminated. Please ensure that your database is listening on the correct host and port and that you have compatible encryption settings both on the Neo4j server and driver. Note that the default encryption setting has changed in Neo4j 4.0.

Our project details:
Spring version:- Spring boot 3.4.5 with spring-boot-starter-data-neo4j

application.yml:-

neo4j:

uri: ${GC3.NEO4J.DB_URI}

authentication:

username: ${GC3.NEO4J.DB_USER}

password: ${GC3.NEO4J.DB_PASSWORD}

pool:

max-connection-pool-size: 40

idle-time-before-connection-test: 30s

connection-liveness-check-timeout: 5s

connection-acquisition-timeout: 60s

encrypted: true

FYI:- We are connecting to both Neo4J & MongoDB from the same service

Check your logs - if the problem occurs after 60 minutes, it is likely due to the driver (default 1 hour) timing out.

Seems happening randomely

I assume those are Java logs ??

You’ll probably need to do some testing via CLI to figure out if the problem is the client/server/network …

Thanks for your response.

Logs are from AWS clouwatch

We were manage to solve this with belwo cinfigurations.

max-connection-lifetime: 240s

max-connection-pool-size: 100

connection-acquisition-timeout: 60s