Uberspace / lab

The Uberlab provides various tutorials - written by you! - on how to run software and tools on Uberspace 7.
https://lab.uberspace.de
Other
315 stars 414 forks source link

Update guide_postgresql.rst #1556

Closed Konafets closed 1 year ago

Konafets commented 1 year ago

Add export LC_ALL and LC_TYPE to prevent error

initdb --pwfile ~/pgpass.temp --auth=scram-sha-256 -E UTF8 -D ~/opt/postgresql/data/ The files belonging to this database system will be owned by user "nas". This user must also own the server process.

initdb: error: invalid locale settings; check LANG and LC_* environment variables

SalocinHB commented 1 year ago

This only leads to errors if your SSH client is sending an environment (SendEnv) which includes a locale not available on the server.

Konafets commented 1 year ago

How can I check if my SSH client does this?

SalocinHB commented 1 year ago

How can I check if my SSH client does this?

Check your client's config. On unix-like (Linux, macOS) systems, it's likely /etc/ssh/ssh_config

noave commented 1 year ago

I marked the PR as draft please change it back to ready if this is completed from your perspective

noave commented 1 year ago

I will close this now, if there is any more need for this you may reopen the PR