<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to fix postgres sidecar collation errors in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-fix-postgres-sidecar-collation-errors/m-p/761818#M24366</link>
    <description>&lt;P&gt;I got a response from Support, that solved my problem.&lt;/P&gt;&lt;P&gt;A: Recreating the exisiting DB:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Navigate to /opt/splunk/var/packages/data/postgres/&lt;/LI&gt;&lt;LI&gt;Rename db folder as db.backup&lt;/LI&gt;&lt;LI&gt;Restart Splunk.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;B: If above does not help:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;1. Connect to template1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;\c template1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ALTER DATABASE template1 REFRESH COLLATION VERSION;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;2. Connect to postgres&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;\c postgres&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ALTER DATABASE postgres REFRESH COLLATION VERSION;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only needed to perform step A&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jun 2026 08:46:37 GMT</pubDate>
    <dc:creator>las</dc:creator>
    <dc:date>2026-06-22T08:46:37Z</dc:date>
    <item>
      <title>How to fix postgres sidecar collation errors</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-fix-postgres-sidecar-collation-errors/m-p/761567#M24342</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I recently upgraded my Deployment Server and thought I would look into the Edge Processor.&lt;/P&gt;&lt;P&gt;Unfortunately it is not very stable in my environment, and I see a lot of errors:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2026-06-10 16:45:57.523 CEST [53166] WARNING:  database "acies_config_service" has a collation version mismatch
2026-06-10 16:45:57.523 CEST [53166] DETAIL:  The database was created using collation version 2.28, but the operating system provides version 2.34.
2026-06-10 16:45:57.523 CEST [53166] HINT:  Rebuild all objects in this database that use the default collation and run ALTER DATABASE acies_config_service REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.

 error: error creating database -- Schema file for setting up database for sidecar service
--
-- Version: 1.3
-- Date: 02/09/2026
--
-- Change Log:
-- Version 1.3 (02/09/2026):
--   - Added database for ep_spl2_preview service.
-- Version 1.2 (02/26/2026):
--   - Added database for agent_manager service.
-- Version 1.1 (09/02/2025):
--   - Updated postgres server side per db connection limit for all databases.
-- Version 1.0 (05/17/2024):
--   - Initial schema creation for search_metadata, kvstore, acies_config_service, and opamp_service.

CREATE DATABASE search_metadata WITH OWNER = "do.root.splunk" CONNECTION LIMIT 10;
CREATE DATABASE kvstore WITH OWNER = "kvstore.pdl.splunk" TEMPLATE = template0 LC_COLLATE = 'C' LC_CTYPE = 'C' CONNECTION LIMIT 20;
CREATE DATABASE acies_config_service WITH OWNER = "acc.dbuser.splunk" CONNECTION LIMIT 10;
CREATE DATABASE opamp_service WITH OWNER = "oas.root.splunk" CONNECTION LIMIT 10;
CREATE DATABASE agent_manager WITH OWNER = "am.root.splunk" CONNECTION LIMIT 10;
CREATE DATABASE ep_spl2_preview WITH OWNER = "ep_preview.root.splunk" CONNECTION LIMIT 10;
: pq: template database "template1" has a collation version mismatch
	Failed to create database
	failed to create database
	Failed to bootstrap client artifact
   log_level: ERROR
   msg: Failed to bootstrap databases in standalone &lt;/LI-CODE&gt;&lt;P&gt;I have found a lot of suggestions that the databases shoul be rebuild - from&amp;nbsp;splunk.my.site.com/customer/s/article/database-has-a-collation-version-mismatch for instance, where they give these instructions:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;psql -h /tmp -p 6432 -d postgres -c "ALTER DATABASE postgres REFRESH COLLATION VERSION;"
psql -h /tmp -p 6432 -d postgres -c "REINDEX DATABASE postgres;"
psql -h /tmp -p 6432 -d phantom -c "ALTER DATABASE phantom REFRESH COLLATION VERSION;"
psql -h /tmp -p 6432 -d phantom -c "REINDEX DATABASE phantom;"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I'm unsure how to run these commands (I do not have root nor sudo for anythin outside /opt/splunk and even there limited) and exactly for which databases should these commands be run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully someone out here has an answer, otherwise I'll create a case and post their answer.&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;las&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2026 15:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-fix-postgres-sidecar-collation-errors/m-p/761567#M24342</guid>
      <dc:creator>las</dc:creator>
      <dc:date>2026-06-10T15:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix postgres sidecar collation errors</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-fix-postgres-sidecar-collation-errors/m-p/761699#M24357</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/36534"&gt;@las&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The article you referenced is for Splunk SOAR, but if you want to explore the PostgreSQL environment shipped with Splunk Enterprise, you can install PostgreSQL 17 tools on your Linux server.&lt;/P&gt;&lt;P&gt;Make a backup of your Splunk Enterprise installation before proceeding. I recommend using a restored backup running in a sandbox. I wouldn't do any of this on a production deployment server.&lt;/P&gt;&lt;P&gt;This process is for Red Hat Enterprise Linux 10. It's similar for other distributions. PostgreSQL publishes a handy guide at&amp;nbsp;&lt;A href="https://www.postgresql.org/download/linux/" target="_blank" rel="noopener"&gt;https://www.postgresql.org/download/linux/&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;1. Disable the RHEL postgresql module:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;sudo dnf module disable postgresql&lt;/LI-CODE&gt;&lt;P&gt;2. Install the PostgreSQL repository:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;sudo dnf install https://download.postgresql.org/pub/repos/yum/reporpms/EL-10-x86_64/pgdg-redhat-repo-latest.noarch.rpm&lt;/LI-CODE&gt;&lt;P&gt;3. Install PostgreSQL 17 tools:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;sudo dnf install postgresql17&lt;/LI-CODE&gt;&lt;P&gt;4. Connect to PostgreSQL:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;psql "host=localhost port=5432 dbname=postgres user=postgres_admin"&lt;/LI-CODE&gt;&lt;P&gt;Your local postgres_admin password is encrypted in $SPLUNK_HOME/etc/system/local/passwords.conf.&lt;/P&gt;&lt;P&gt;You can decrypt the value with:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;$SPLUNK_HOME/bin/splunk show-decrypted --value '&amp;lt;password&amp;gt;'&lt;/LI-CODE&gt;&lt;P&gt;where &amp;lt;password&amp;gt; is the encrypted value in passwords.conf.&lt;/P&gt;&lt;P&gt;Or all together:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;psql "host=localhost port=5432 dbname=postgres user=postgres_admin password=$($SPLUNK_HOME/bin/splunk show-decrypted --value "$($SPLUNK_HOME/bin/splunk btool passwords list credential:postgres:postgres_admin: | grep '^password\s*=' | sed 's/^password[[:space:]]*=[[:space:]]*//')")"&lt;/LI-CODE&gt;&lt;P&gt;From here, you can list databases with \l, list users with \du, or run other commands as needed.&lt;/P&gt;&lt;P&gt;Can you damage the installation beyond repair? YES. Verify your backup before making changes.&lt;/P&gt;&lt;P&gt;It would be best to proceed with the help of Splunk support. If the issue you have is reproducible, they can fix it for other customers, too.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2026 20:23:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-fix-postgres-sidecar-collation-errors/m-p/761699#M24357</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2026-06-16T20:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix postgres sidecar collation errors</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-fix-postgres-sidecar-collation-errors/m-p/761716#M24358</link>
      <description>&lt;P&gt;Thanks tscroggins, I better activate Support.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2026 12:44:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-fix-postgres-sidecar-collation-errors/m-p/761716#M24358</guid>
      <dc:creator>las</dc:creator>
      <dc:date>2026-06-17T12:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix postgres sidecar collation errors</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-fix-postgres-sidecar-collation-errors/m-p/761818#M24366</link>
      <description>&lt;P&gt;I got a response from Support, that solved my problem.&lt;/P&gt;&lt;P&gt;A: Recreating the exisiting DB:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Navigate to /opt/splunk/var/packages/data/postgres/&lt;/LI&gt;&lt;LI&gt;Rename db folder as db.backup&lt;/LI&gt;&lt;LI&gt;Restart Splunk.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;B: If above does not help:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;1. Connect to template1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;\c template1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ALTER DATABASE template1 REFRESH COLLATION VERSION;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;2. Connect to postgres&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;\c postgres&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ALTER DATABASE postgres REFRESH COLLATION VERSION;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only needed to perform step A&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2026 08:46:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-fix-postgres-sidecar-collation-errors/m-p/761818#M24366</guid>
      <dc:creator>las</dc:creator>
      <dc:date>2026-06-22T08:46:37Z</dc:date>
    </item>
  </channel>
</rss>

