Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pg6vS-0003J9-GQ for pgsql-admin@arkaria.postgresql.org; Sat, 25 Mar 2023 16:39:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pg6vR-0007L7-DP for pgsql-admin@arkaria.postgresql.org; Sat, 25 Mar 2023 16:39:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pg6vR-0007Ko-2X for pgsql-admin@lists.postgresql.org; Sat, 25 Mar 2023 16:39:29 +0000 Received: from mout-u-107.mailbox.org ([80.241.59.207]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pg6vL-00015j-Kp for pgsql-admin@lists.postgresql.org; Sat, 25 Mar 2023 16:39:28 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4PkPtH0jNdz9sPy; Sat, 25 Mar 2023 17:39:19 +0100 (CET) Date: Sat, 25 Mar 2023 17:39:18 +0100 (CET) From: Erik Wienhold To: Matt Gibbins , pgsql-admin@lists.postgresql.org Message-ID: <1684230080.452693.1679762358599@office.mailbox.org> In-Reply-To: <93809259-173b-9bf0-acb8-d6e0b5c06b87@fastmail.com.au> References: <93809259-173b-9bf0-acb8-d6e0b5c06b87@fastmail.com.au> Subject: Re: Debian PostgreSQL 15 pg_createcluster - could not open collator for locale MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 25/03/2023 01:55 CET Matt Gibbins wrote: > > I am having trouble with a fresh installation of PostgreSQL 15 from the apt > repository 'http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main'. > After installing the packages the following locations were empty: > * /etc/postgresql/15/main/ > * /var/lib/postgresql/ > Searching for information suggested running 'sudo pg_createcluster 15 main --start' > to initialise the database. > The process failed with the message 'could not open collator for locale "yue-Hans"'. > > Following is the stdout for the process. Any suggestions welcome > Matt. > > ------------------------------ > Creating new PostgreSQL cluster 15/main ... > /usr/lib/postgresql/15/bin/initdb -D /var/lib/postgresql/15/main --auth-local peer --auth-host scram-sha-256 --no-instructions > The files belonging to this database system will be owned by user "postgres". > This user must also own the server process. > > The database cluster will be initialized with locale "en_AU.UTF-8". > The default database encoding has accordingly been set to "UTF8". > The default text search configuration will be set to "english". > > Data page checksums are disabled. > > fixing permissions on existing directory /var/lib/postgresql/15/main ... ok > creating subdirectories ... ok > selecting dynamic shared memory implementation ... posix > selecting default max_connections ... 100 > selecting default shared_buffers ... 128MB > selecting default time zone ... Australia/Canberra > creating configuration files ... ok > running bootstrap script ... ok > performing post-bootstrap initialization ... 2023-03-25 11:50:31.124 AEDT [12104] FATAL: could not open collator for locale "yue-Hans": U_INVALID_FORMAT_ERROR > 2023-03-25 11:50:31.124 AEDT [12104] STATEMENT: SELECT pg_import_system_collations('pg_catalog'); > > child process exited with exit code 1 > initdb: removing contents of data directory "/var/lib/postgresql/15/main" > Error: initdb failed Looks like an issue with libicu. What version is installed? dpkg -l 'libicu*' ls -l /usr/lib/x86_64-linux-gnu/libicu* -- Erik