Vault won't start start PrivateArk GUI: "Error Starting Server (Code: 1)" - PrivateArk Database Service won't start due to RAM Reduction post-install
146
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 15:56 PM
Symptom
When trying to start PrivateArk GUI:
- "Error Starting Server (Code: 1)
If starting services manually from Services.msc:
Error 1068: The dependency service or group failed to start
In VaultDB.log:
[ERROR] [MY-012956] [InnoDB] Cannot allocate memory for the buffer pool
[ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error.
[ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
[ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
[ERROR] [MY-010119] [Server] Aborting
Environment
14.2 Privileged Access Manager (PAM, self-hosted) Vault Server;Vault Vault Server
Cause
The value of innodb_buffer_pool_size in '\Server\Database\my.ini' is larger than the total amount of RAM the server currently has allocated.
This is more common in VM deployments:
The Vault was installed with a higher amount of RAM, and it was decreased later on to an amount lower than the value set in my.ini for innodb_buffer_pool_size.
Explanation with example:
When the vault software was installed, the VM had 32GB of RAM.
During installation, the installer calculates 80% of the allocated physical memory, and assigns the amount in my.ini under innodb_buffer_pool_size in binary format.
In our example that would be ~25GB:
---
innodb_buffer_pool_size=26214400K
---
This is done in order to cap the max amount of RAM the DB can use to 80% and leave enough RAM for the OS and other functions.
The issue was caused when the VM's total memory has been reduced to below this number, for example to 16GB.
When the DB service starts, it tries to allocate 25GB but is being blocked by the OS as this is higher than the total installed RAM.
Resolution
To correct this we have two options:
1. We can re-assign the original amount of RAM the server had when the vault software was installed, then reboot the server.
In our example above that would be to set it back to 32GB.
OR
2. We can change the value of innodb_buffer_pool_size in my.ini to 80% of our total RAM, then start the DB service again.
In our example above of 16GB total, 80% would be 12.8GB, so we would set innodb_buffer_pool_size=13421772K
Remember this has to be converted to binary format.
* The my.ini is under the PrivateArk\Server\Database folder