Univention Bugzilla – Bug 46921
pg_upgradecluster aborts during update prep for UCS 4.3 if locale is special
Last modified: 2021-05-14 16:34:52 CEST
Forum feedback: Error during upgrade from 4.2 to 4.3 after following instructions for postgresql upgrade "Updating from PostgreSQL 9.1 to PostgreSQL 9.4": pg_upgradecluster 9.1 main fails when the locale is special: Stopping old cluster... Disabling connections to the old cluster during upgrade... Restarting old cluster with restricted connections... perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US.UTF-8", LC_ALL = (unset), LC_CTYPE = "UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Error: The locale requested by the environment is invalid. Error: Could not create target cluster``` Workaround: export LC_CTYPE=en_US.UTF-8 export LC_ALL=en_US.UTF-8 pg_upgradecluster 9.1 main
This issue has been filed against UCS 4.3. UCS 4.3 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.