Hi,
I am struggling with the upgrade from the obsolete 4.4-9 to the 5.x version.
I followed this upgrade procedure here: Updating from PostgreSQL 9.4 to PostgreSQL 9.6
however, the step pg_upgradecluster 9.4 main fails with the following message:
Job for postgresql@9.4-main.service failed because the control process exited with error code.
See “systemctl status postgresql@9.4-main.service” and “journalctl -xe” for details.
Error: Could not restart old cluster
When looking at the journalctl for more details, I get the following output:
Sep 21 21:48:57 server-dc01 postgresql@9.4-main[3901]: The PostgreSQL server failed to start. Please check the log output:
Sep 21 21:48:57 server-dc01 postgresql@9.4-main[3901]: 2023-09-21 21:48:56 CEST [3906-1] LOG: invalid value for parameter “lc_messages”: “fr_FR.UTF-8”
Sep 21 21:48:57 server-dc01 postgresql@9.4-main[3901]: 2023-09-21 21:48:56 CEST [3906-2] LOG: invalid value for parameter “lc_monetary”: “fr_FR.UTF-8”
Sep 21 21:48:57 server-dc01 postgresql@9.4-main[3901]: 2023-09-21 21:48:56 CEST [3906-3] LOG: invalid value for parameter “lc_numeric”: “fr_FR.UTF-8”
Sep 21 21:48:57 server-dc01 postgresql@9.4-main[3901]: 2023-09-21 21:48:56 CEST [3906-4] LOG: invalid value for parameter “lc_time”: “fr_FR.UTF-8”
Sep 21 21:48:57 server-dc01 postgresql@9.4-main[3901]: 2023-09-21 21:48:56 CEST [3906-5] FATAL: configuration file "/etc/postgresql/9.4/main/postgresql.
Sep 21 21:48:57 server-dc01 systemd[1]: postgresql@9.4-main.service: Control process exited, code=exited status=1
Sep 21 21:48:57 server-dc01 systemd[1]: Failed to start PostgreSQL Cluster 9.4-main.
– Subject: Unit postgresql@9.4-main.service has failed
It looks loke a locale-related issue. Honestly I don’t understand how this would impact the postgresql DB, but maybe you guys have a clue?
shall I just modify the /etc/postgresql/9.4/main/postgresql config file? what is the expected locale parameter set?
thanks a lot!
Cheers
Denis