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 1pfsCF-0004KQ-4h for pgsql-admin@arkaria.postgresql.org; Sat, 25 Mar 2023 00:55:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pfsCD-0007Q2-6D for pgsql-admin@arkaria.postgresql.org; Sat, 25 Mar 2023 00:55:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pfsCA-0007Ps-Pe for pgsql-admin@lists.postgresql.org; Sat, 25 Mar 2023 00:55:48 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pfsC6-0001Po-OX for pgsql-admin@lists.postgresql.org; Sat, 25 Mar 2023 00:55:46 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8CE585C0117 for ; Fri, 24 Mar 2023 20:55:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 24 Mar 2023 20:55:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com.au; h=cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1679705740; x=1679792140; bh=v5/X+8YMxoq7wVlodEg88ojjs tfkr8PT1dz+9knhJbI=; b=gXVKb9o92ZR3ZAE1Yc9Dgm+0OQFL/S1jE/IYQ+HN5 AeVFRxuHwpcIi6kI1sy/3gO1fSEfVdBUxAnp2RBHZ/15VHL23IlFYnuQgSOIkJEl 7xOVvJeC31ZogQ+wPRQcwQHLwaYF8dewuPuvFMhXJl2aqNlahQTmN5rgiv7tHQuS 9q7iXiwv0aA83vAZ1ELTSsVrZaAdZLP7TJ8HW7HeZkskVO+ypxJp+3kndp/JHHGU 0m8aweP1wO/bIxzyTHjPygG7Pg5D/gpRfgltJ7qB6dEAz2HTfKusRnp2K1tLwODg TgTRZ9fcYlSZXoJ2gHsmMIPXFbWniAP03OI97Vl5SurCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1679705740; x=1679792140; bh=v5/X+8YMxoq7wVlodEg88ojjstfkr8PT1dz +9knhJbI=; b=KPwG2KbxkeBLbIJx1Cv5hgm4Pt6BP/cFBQVDkNr78dOQsDshAuA zhUC4b6fZn7rxOTzqGJfd+chy5d1T4UkQMp3KSUnpfYnYUYMOjN4SL3wFVujMgCj EpuNHEzx0qLVxBjYsJhPb9piPTtCD9TRFQ5DcH2wbVoWbNiSir92agmS/7I94Zcv 2Vb+9gElAaemR5rzy1D6SYO8XtTlRYpaaAX1LUgLvTszo9G6t8+3EUp0o3WtuCZa xC1UoWdlRHlHKuAnNYoyzIH1ZFDgxKaASIjhf2naP1PyD24blJoK6Csn9j+Ykx2m IZ4lXOpiwIsv7strV66R0itcDFLEvvetRJQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdegjedgvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpegtkfffgggfvffhufesrgdtreertd efjeenucfhrhhomhepofgrthhtucfiihgssghinhhsuceomhgrthhtpghgihgssghinhhs sehfrghsthhmrghilhdrtghomhdrrghuqeenucggtffrrghtthgvrhhnpefgudeigeetje evudegvedukeeghefghfekveejiefgueekteduffeiueeuleffueenucffohhmrghinhep phhoshhtghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepmhgrthhtpghgihgssghinhhssehfrghsthhmrghilhdrtgho mhdrrghu X-ME-Proxy: Feedback-ID: i6d194797:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 24 Mar 2023 20:55:39 -0400 (EDT) Content-Type: multipart/alternative; boundary="------------ADENinWfNeVHs15dq0Nlk0l7" Message-ID: <93809259-173b-9bf0-acb8-d6e0b5c06b87@fastmail.com.au> Date: Sat, 25 Mar 2023 11:55:35 +1100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 To: pgsql-admin@lists.postgresql.org From: Matt Gibbins Content-Language: en-AU Subject: Debian PostgreSQL 15 pg_createcluster - could not open collator for locale List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------ADENinWfNeVHs15dq0Nlk0l7 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------ADENinWfNeVHs15dq0Nlk0l7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

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

--------------ADENinWfNeVHs15dq0Nlk0l7--