I am doing a step-by-step upgrade of the postgresql-server port (12.8 -> 13.4_1) as described in /usr/ports/UPDATING. Everything works fine. But the command under root
OS: FreeBSD 12.2-RELEASE-p7 GENERIC amd64
The last two upgrades of the postgresql-server port on two different hosts worked properly (10 -> 12, 11 -> 12).
How can we solve this issue?
WBR, alexxis.
# su -l postgres -c "/usr/local/bin/initdb --encoding=utf-8 --lc-collate=C -D /var/db/postgres/data13 -U postgres"
returns error:
Code:
# su -l postgres -c "/usr/local/bin/initdb --encoding=utf-8 --lc-collate=C -D /var/db/postgres/data13 -U postgres"
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 "C".
The default text search configuration will be set to "english".
Data page checksums are disabled.
creating directory /var/db/postgres/data13 ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... W-SU
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... 2021-10-31 12:17:41.051 MSK [93380] FATAL: could not open collator for locale "und": U_FILE_ACCESS_ERROR
2021-10-31 12:17:41.051 MSK [93380] STATEMENT: SELECT pg_import_system_collations('pg_catalog');
child process exited with exit code 1
initdb: removing data directory "/var/db/postgres/data13"
OS: FreeBSD 12.2-RELEASE-p7 GENERIC amd64
The last two upgrades of the postgresql-server port on two different hosts worked properly (10 -> 12, 11 -> 12).
How can we solve this issue?
WBR, alexxis.