Postgresql installation for MAAS fails on locales missing language packs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
High
|
Unassigned | ||
dbconfig-common (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
maas (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
postgresql-common (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 14.04 with all updates as of time of the writing.
MAAS - 1.5.4+bzr2294-
# apt-get install maas
...
Setting up maas-dns (1.5.4+
* Stopping domain name service... bind9 waiting for pid 29580 to die
* Starting domain name service... bind9 [ OK ]
Setting up maas-region-
locale: Cannot set LC_ALL to default locale: No such file or directory
Considering dependency proxy for proxy_http:
Module proxy already enabled
Module proxy_http already enabled
Module expires already enabled
Module wsgi already enabled
rsyslog stop/waiting
rsyslog start/running, process 32763
squid-deb-proxy stop/waiting
squid-deb-proxy start/running, process 349
* Restarting message broker rabbitmq-server [ OK ]
Creating user "maas_longpoll" ...
...done.
Creating vhost "/maas_longpoll" ...
...done.
Setting permissions for user "maas_longpoll" in vhost "/maas_longpoll" ...
...done.
Creating user "maas_workers" ...
...done.
Creating vhost "/maas_workers" ...
...done.
Setting permissions for user "maas_workers" in vhost "/maas_workers" ...
...done.
* No PostgreSQL clusters exist; see "man pg_createcluster"
dbconfig-common: writing config to /etc/dbconfig-
Creating config file /etc/dbconfig-
unable to connect to postgresql server.
error encountered creating user:
psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Here's the environment:
# export
declare -x HOME="/root"
declare -x LANG="en_US.UTF-8"
declare -x LANGUAGE="en_US:en"
declare -x LC_ADDRESS=
declare -x LC_IDENTIFICATI
declare -x LC_MEASUREMENT=
declare -x LC_MONETARY=
declare -x LC_NAME=
declare -x LC_NUMERIC=
declare -x LC_PAPER=
declare -x LC_TELEPHONE=
declare -x LC_TIME=
declare -x LESSCLOSE=
declare -x LESSOPEN="| /usr/bin/lesspipe %s"
declare -x LOGNAME="root"
declare -x LS_COLORS=
declare -x MAIL="/
declare -x OLDPWD
declare -x PATH="/
declare -x PWD="/root"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SUDO_COMMAND=
declare -x SUDO_GID="1000"
declare -x SUDO_UID="1000"
declare -x SUDO_USER="ubuntu"
declare -x TERM="xterm"
declare -x USER="root"
declare -x USERNAME="root"
After installing language-pack-hr package, I was successful at installing MAAS. To fix it, I had to purge maas.* and postgresql.* packages and then install maas package again.
This could easily be postgresql packaging bug, but it also renders MAAS uninstallable.
tags: | added: cts |
summary: |
- MAAS can't connect to postgresql + Postgresql installation for MAAS fails on locales missing language packs |
Changed in maas: | |
milestone: | next → 1.7.1 |
tags: | added: cloud-installer |
Changed in maas: | |
importance: | Undecided → High |
Changed in maas: | |
milestone: | 1.7.1 → 1.7.2 |
Changed in maas: | |
milestone: | 1.7.2 → 1.7.3 |
Changed in maas: | |
status: | Confirmed → Triaged |
tags: |
added: tests removed: cts |
tags: |
added: sts removed: tests |
tags: | added: canonical-bootstack |
Changed in postgresql-common (Ubuntu): | |
status: | Incomplete → New |
tags: | added: internal |
Changed in postgresql-common (Ubuntu): | |
status: | New → Invalid |
I wonder if we should be installing with LANG=C -- do you think you want localized collation, float separators, currencies, etc for your MAAS installation?