Bug 46921 - pg_upgradecluster aborts during update prep for UCS 4.3 if locale is special
pg_upgradecluster aborts during update prep for UCS 4.3 if locale is special
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: PostgreSQL
UCS 4.3
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
https://help.univention.com/t/postgre...
:
Depends on: 44160
Blocks:
  Show dependency treegraph
 
Reported: 2018-05-02 13:15 CEST by Arvid Requate
Modified: 2021-05-14 16:34 CEST (History)
8 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.086
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2018-05-02 13:15:04 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
Comment 1 Ingo Steuwer univentionstaff 2021-05-14 15:43:26 CEST
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.