Following an upgrade from Splunk Enterprise 10.2.x to 10.6.x, the automatic background migration of the KV Store from MongoDB to PostgreSQL fails during startup. KV Store remains operational on the legacy MongoDB engine rather than transitioning to the cohosted PostgreSQL backend. During this failure, splunkd.log repeatedly logs errors indicating that migration prechecks failed because the KV Store service is unable to discover the PostgreSQL Data Layer (PDL) service port from the IPC broker due to connection refused errors.
A. Run the below commands to verify the migration and KVStore status.
splunk show kvstore-postgres-migration-status
This returns: Migration_Failed (0.00%)
splunk show kvstore-status
This returns: migrationStatus: NotStarted
B. Check local configuration overrides:
$SPLUNK_HOME/bin/splunk btool server list teleport_supervisor --debug
$SPLUNK_HOME/bin/splunk btool server list postgres --debug
Cause 1
A. Local configuration overrides the disabled = true setting under the [teleport_supervisor] or [postgres] stanzas in etc/system/local/server.conf.
As these settings persists before and after the upgrade. Hence, the teleport supervisor and IPC broker fails to start on port 8194 and PostgreSQL fails to launch on port 5433. Without an active IPC broker, the KV Store service cannot discover the PDL port, which causes migration prechecks to fail with connection refused errors.
B. Check listening ports:
ss -ltnp | grep -E '8194|5433
(Missing port 8194 confirms Cause 1).
Cause 2
A. PostgreSQL Administrative Credential Mismatch.
A pre-existing PostgreSQL database directory remains from an earlier installation or setup under $SPLUNK_HOME/var/packages/data/postgres. The authentication credentials stored within this existing database no longer matches the generated credentials that are expected by the sidecar, leading to password authentication failed for user "postgres_admin" in sup-pkg-postgres-stdout.log. As a result, PostgreSQL terminates during startup and the required kvstore.pdl endpoint cannot be initialized.
B. Review $SPLUNK_HOME/var/log/splunk/sup-pkg-postgres-stdout.log for:
password authentication failed for user "postgres_admin"
Confirms Cause 2
Cause 1
1. Follow the below steps to Re-enable Services by editing the stanzas.
A. In $SPLUNK_HOME/etc/system/local/server.conf, add the below setting:
[teleport_supervisor]
disabled = false
[postgres]
disabled = false
B. Restart Splunk and verify port 8194:
$SPLUNK_HOME/bin/splunk restart
ss -ltnp | grep 8194
Cause 2
2. Follow the below steps to recreate PostgreSQL DB Directory.
"Prerequisite: Ensure PostgreSQL data is not in use (SPL2, Edge Processor, OpAMP)."
A. Stop Splunk and verify child processes terminated:
$SPLUNK_HOME/bin/splunk stop
ps -ef | grep -Ei 'postgres|pgbouncer'
B. Backup data directory and move only the db subdirectory aside:
cp -rp $SPLUNK_HOME/var/packages/data/postgres $SPLUNK_HOME/var/packages/data/postgres.bak
mv $SPLUNK_HOME/var/packages/data/postgres/db $SPLUNK_HOME/var/packages/data/postgres/db.old
(Do not delete .deployment_id, .pgpass, or postgres:postgres_admin in passwords.conf).
C. Start Splunk:
$SPLUNK_HOME/bin/splunk start
3. To attain a Clear State and Retry Migration
A. Clear failed migration state:
curl -k -u <admin>:<password> -X POST 'https://localhost:8089/services/kvstore/migrateToPostgres/cleanup?output_mode=json'
B. Restart Splunk to trigger migration:
$SPLUNK_HOME/bin/splunk restart
4. Verification to check the migration process is successful.
A. Run the below migration check and kvstore status command
$SPLUNK_HOME/bin/splunk show kvstore-postgres-migration-status
$SPLUNK_HOME/bin/splunk show kvstore-status
B. Expected Output:
status: Migration_Succeeded (100.00%)
status: ready, type: Pdl
kv-store-mongo-to-postgresql-migration-failure
Upgrade to a cohosted KV store in Splunk Enterprise
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
16-Nov-2026
|
Initial Release |