After upgrading Splunk Enterprise to 10.6.1.1, the automatic migration of the existing MongoDB-backed KV Store to PostgreSQL fails. The original MongoDB-backed KV Store may remain operational, while PostgreSQL and PDL fail to initialize.
Observed symptoms include:
KV Store migration status remains Migration_Failed, with zero collections migrated in the failed attempt.
The PostgreSQL sidecar repeatedly fails during PgBouncer authentication bootstrap.
PostgreSQL starts and accepts connections but subsequently receives authentication rejections.
The PostgreSQL sidecar exits with status 1 and is restarted by the supervisor.
The PDL sidecar cannot retrieve its required database credentials and fails to initialize.
IPC broker discovery or PDL ping requests may fail because the dependent service is unavailable.
Apps > Manage Apps may return HTTP 404. The page recovered after the upgrade, although a shared root cause was not established.
The following errors can appear in sup-pkg-postgres-stdout.log:
PgBouncer auth bootstrap: failed to pingpq: no pg_hba.conf entry for host "127.0.0.1",
user "postgres_admin", database "postgres",
SSL encryptionPgBouncer auth bootstrap: exhausted retries for IPFailed PgBouncer auth bootstrap in standalone
The readiness status repeatedly returns to:
Readiness status updated
status: Starting
In supervisor.log, the PostgreSQL and PDL sidecars may exit with:
Process returned with value
process: postgres
error: exit status 1Stop event
reason: process-exit
PostgreSQL logs can also show:
database system is ready to accept connectionsreceived fast shutdown request
In splunkd_access.log, database credential retrieval requests may return HTTP 404:
GET /servicesNS/nobody/system/storage/passwords/postgres:postgres_admin?output_mode=json
HTTP 404
GET /servicesNS/nobody/system/storage/passwords/postgres:kvstore.pdl?output_mode=json
HTTP 404
The PDL logs can report:
Encountered error, while fetching the db secret
response code=404PDL config setup failed
Other secondary errors may include failures to retrieve the PDL control-plane address through the IPC broker, local connection refusals, or HTTP 502 responses during PDL health checks.
A separate SSL configuration issue may also produce certificate-decryption errors such as:
bad decrypt
Correcting an sslPassword mismatch can eliminate certificate-decryption errors, but does not necessarily resolve the PostgreSQL bootstrap failure.
1. Confirm the installed version and migration state.
Open PowerShell and replace <SPLUNK_HOME> with the Splunk installation directory.
$SplunkHome = '<SPLUNK_HOME>'& "$SplunkHome\bin\splunk.exe" version& "$SplunkHome\bin\splunk.exe" show kvstore-status& "$SplunkHome\bin\splunk.exe" show kvstore-postgres-migration-status
Determine whether migration has failed and whether the original MongoDB-backed KV Store remains available.
2. Check PostgreSQL initialization errors.
Review the following files under $SPLUNK_HOME\var\log\splunk:
sup-pkg-postgres-stdout.log
sup-pkg-postgres.log
sup-pkg-postgres-postgres.log
postgres-*.log
supervisor.log
Use PowerShell to locate relevant PostgreSQL bootstrap messages:
$LogDir = Join-Path $SplunkHome 'var\log\splunk'Select-String -Path (Join-Path $LogDir 'sup-pkg-postgres-stdout.log') `
-Pattern 'PgBouncer auth bootstrap',
'postgres_admin',
'Failed to setup users and databases',
'Database bootstrapping completed',
'Readiness status updated' |
Select-Object -Last 100
Look for repeated failed connections involving postgres_admin.
A successful PostgreSQL process startup does not guarantee that the sidecar has completed database and PgBouncer initialization.
3. Correlate the PostgreSQL shutdowns with supervisor events.
Examine supervisor.log around the time PostgreSQL reports:
received fast shutdown request
Determine whether the PostgreSQL sidecar exits after exhausting its bootstrap retries.
When comparing logs, account for differences between UTC (Z) and local timestamps with explicit offsets.
4. Check PDL and IPC broker initialization.
Review:
sup-pkg-kvstore-pdl.log
sup-pkg-kvstore-pdl-stdout.log
splunkd_access.log
splunkd.log
Look for repeated database-secret retrieval failures involving postgres:kvstore.pdl, PDL configuration failures, and unavailable PDL service endpoints.
A single HTTP 404 during credential lookup does not prove a permanent credential problem. Correlate the response with the subsequent initialization outcome.
5. Identify the PostgreSQL authentication configuration.
Identify the running PostgreSQL processes and their command lines:
Get-CimInstance Win32_Process -Filter "name='postgres.exe'" |
Select-Object ProcessId, CommandLine
Locate the PostgreSQL authentication configuration:
Get-ChildItem (Join-Path $SplunkHome 'var\packages\data\postgres') `
-Filter 'pg_hba.conf' -Recurse -Force |
Select-Object FullName, LastWriteTime, Length
Verify which configuration file PostgreSQL actually uses.
Inspect whether an applicable authentication rule exists for the postgres_admin user connecting to the postgres database over the loopback interface.
A possible matching rule is:
hostssl all postgres_admin 127.0.0.1/32 scram-sha-256
This is an example for identifying the relevant rule, not an instruction to modify the file.
Do not manually edit generated PostgreSQL authentication files without version-specific supported guidance.
6. Check PostgreSQL credential initialization.
Inspect the PostgreSQL package-data directory for the following files:
.pgpass
.deployment_id
Check file existence and metadata only. Do not expose passwords, access tokens, or credential contents.
The investigated environment had a .deployment_id file but no .pgpass at the checked location.
This finding can be relevant when investigating incomplete credential initialization, but does not independently establish why an HBA connection was rejected.
7. Distinguish OAuth configuration errors from PostgreSQL credential failures.
If OAuth bootstrap errors are also present, review the effective admin:authentication_group configuration using btool and verify whether internal-oauth-clients is included.
The presence of this REST configuration and successful subsequent OAuth initialization can help exclude a separate missing-route scenario.
8. Investigate TLS errors separately.
If server.pem reports certificate-decryption failures, verify that the effective [sslConfig] sslPassword matches the password protecting the configured private key.
A corrected password mismatch can resolve TLS errors without correcting PostgreSQL authentication or database bootstrap.
The following procedure resolved the reported issue on a standalone Windows Server 2025 instance running Splunk Enterprise 10.6.1.1.
1. Prepare for the upgrade.
Confirm that the existing KV Store remains accessible.
Take a verified backup of the KV Store and Splunk configuration.
Review the supported upgrade procedure, platform requirements, and maintenance-window requirements.
2. Upgrade Splunk Enterprise to 10.6.2.5.
Upgrade from version 10.6.1.1 to version 10.6.2.5 using the supported Windows upgrade procedure.
The successful resolution was verified specifically with 10.6.2.5. A later supported release containing the relevant corrections may also be appropriate.
3. Allow the PostgreSQL and KV Store services to initialize.
After the upgrade, allow the supported startup and migration workflow to proceed.
Do not manually modify pg_hba.conf, create PostgreSQL roles, grant service-role memberships, or reset database credentials as part of this resolution.
4. Verify the KV Store migration status.
Run:
& "$SplunkHome\bin\splunk.exe" show kvstore-postgres-migration-status
Then run:
& "$SplunkHome\bin\splunk.exe" show kvstore-status
A successful migration should report the equivalent of:
migrationStatus : Migration_Succeeded
status : readyCohosted KVStore Information:
status : ready
type : Pdl
Confirm that the migrated collections and applications relying on KV Store remain accessible.
5. Verify PostgreSQL and PDL health.
Review the latest sidecar and supervisor logs.
Confirm that the previous errors are no longer recurring:
Failed PgBouncer auth bootstrap in standalone
no pg_hba.conf entry for host,
user "postgres_admin"
PDL config setup failed
6. Verify Splunk Web functionality.
If the Manage Apps interface was previously affected, navigate to Apps > Manage Apps and confirm that the page loads.
7. Confirm the migration outcome.
After upgrading to Splunk Enterprise 10.6.2.5, the previously failing migration completed successfully, and the Manage Apps page became accessible again.
No manual PostgreSQL authentication or database role changes were required as part of the verified resolution.
Workaround
No validated manual workaround was established for this specific bootstrap failure in Splunk Enterprise 10.6.1.1.
Setting postgresMigrateOnStartup=false may postpone automatic KV Store migration in supported scenarios, but does not resolve the underlying PostgreSQL/PgBouncer initialization failure.
If migration remains unsuccessful after upgrading, collect updated diagnostics and follow the supported recovery procedure for the installed Splunk version. Avoid destructive cleanup or credential changes without an established recovery plan.
Additional SSL and credential considerations
Do not regenerate splunk.secret merely because the KV Store migration previously failed.
The sslPassword value must match the password protecting the configured server private key. Changing only the setting could reintroduce certificate-decryption failures.
Replacing default certificates with organization-managed certificates can be considered separately as part of planned security hardening.