[Bug 1134036] Re: Failure when using ssh with a locale that is not configured on the server
Robie Basak
1134036 at bugs.launchpad.net
Mon Jun 3 12:50:33 UTC 2013
@Julian
Do you have a ~/.cloud-locale-test.skip file present? If not, do you see
a /etc/profile.d/Z99-cloud-locale-test.sh file? The warning is provided
by cloud-init; I wonder what version provides it, and if we need to SRU
it? What version of cloud-init do you have?
I think the root cause is:
1. A user remote to the system has a different locale set that isn't
configured on the system. This seems reasonable to me, and perhaps is
going to become even more common that it is now.
2. This user uses ssh to install maas.
3. The postgresql-9.1 postinst fails with:
Error: The locale requested by the environment is invalid.
Error: could not create default cluster. Please create it manually with
pg_createcluster 9.1 main --start
or a similar command (see 'man pg_createcluster').
4. The subsequent DB initialisation needed by maas fails.
Solutions (one more added):
1) Tell the user to generate the locale, and do nothing else.
2) Switch the locale to C or C.UTF-8 (not sure which) so that at least
things will work until the system locale is configured as required.
3) Require that everything functions correctly with an invalid locale
set, including the postgresql-9.1 postinst.
The second option would require a modification to cloud-init, so adding
a task for that and for feedback.
** Also affects: cloud-init (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to maas in Ubuntu.
https://bugs.launchpad.net/bugs/1134036
Title:
Failure when using ssh with a locale that is not configured on the
server
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1134036/+subscriptions
More information about the Ubuntu-server-bugs
mailing list