PAReplicate - ITATS663E Database dump process did not complete successfully. Error message: error: 1040: Too many connections
Symptom
PAReplicate backup fails with the below error:
CASTM003E Vault transaction failed. Reason: ITATS663E Database dump process did not complete successfully. Error message: error: 1040: Too many connections when trying to connect
Environment
Privileged Access Manager (PAM, self-hosted) Vault
Cause
There are not enough DB connections available for the Backup user to create a replication task on the Vault.
The value of max_connections set in my.ini should always be:
TasksCount + 50 (but no less than 100)
This means that any time we set a value of TasksCount (in dbparm.ini) higher than 50, we must adjust the max_conections value in my.ini accordingly.
Resolution
Set the value of max_connections in my.ini according to the TasksCount value in dbparm.ini:
max_connections=TasksCount + 50 (but no less than 100)
For example:
In dbparm.ini we have-
TasksCount=64
We will set in my.ini max connections of 64 + 50:
max_connections=114