imo, this is either a bug in postgres because it fails to install when locale 
is set to invalid, or its user error.
I'm not sure if whether or not it will become more or less common.

More generally, there is a question of:
 is installing packages on ubuntu with an invalid locale a supported operation?

If so, then postgres has a bug (as do some other packages).

If not, then I'm not really sure what to do.

Martin Pitt (postgres maintainer for ubuntu) clearly stated it is not
when closing bug 969462 as 'Invalid'


** Description changed:

  If LC_ALL is not set (which seems to be the default on a few server
  installations I've done now), mid way through installing, you get this
  backtrace and then the installation just hangs.  You can ctrl-c out of
  it but the package is left half configured.
  
  Traceback (most recent call last):
-   File "/usr/bin/django-admin", line 5, in <module>
-     management.execute_from_command_line()
-   File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 443, in execute_from_command_line
-     utility.execute()
-   File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 382, in execute
-     self.fetch_command(subcommand).run_from_argv(self.argv)
-   File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", 
line 196, in run_from_argv
-     self.execute(*args, **options.__dict__)
-   File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", 
line 232, in execute
-     output = self.handle(*args, **options)
-   File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", 
line 371, in handle
-     return self.handle_noargs(**options)
-   File 
"/usr/lib/python2.7/dist-packages/south/management/commands/syncdb.py", line 
90, in handle_noargs
-     syncdb.Command().execute(**options)
-   File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", 
line 232, in execute
-     output = self.handle(*args, **options)
-   File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", 
line 371, in handle
-     return self.handle_noargs(**options)
-   File 
"/usr/lib/python2.7/dist-packages/django/core/management/commands/syncdb.py", 
line 57, in handle_noargs
-     cursor = connection.cursor()
-   File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", 
line 308, in cursor
-     cursor = util.CursorWrapper(self._cursor(), self)
-   File 
"/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py",
 line 177, in _cursor
-     self.connection = Database.connect(**conn_params)
-   File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 179, in 
connect
-     connection_factory=connection_factory, async=async)
+   File "/usr/bin/django-admin", line 5, in <module>
+     management.execute_from_command_line()
+   File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 443, in execute_from_command_line
+     utility.execute()
+   File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 382, in execute
+     self.fetch_command(subcommand).run_from_argv(self.argv)
+   File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", 
line 196, in run_from_argv
+     self.execute(*args, **options.__dict__)
+   File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", 
line 232, in execute
+     output = self.handle(*args, **options)
+   File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", 
line 371, in handle
+     return self.handle_noargs(**options)
+   File 
"/usr/lib/python2.7/dist-packages/south/management/commands/syncdb.py", line 
90, in handle_noargs
+     syncdb.Command().execute(**options)
+   File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", 
line 232, in execute
+     output = self.handle(*args, **options)
+   File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", 
line 371, in handle
+     return self.handle_noargs(**options)
+   File 
"/usr/lib/python2.7/dist-packages/django/core/management/commands/syncdb.py", 
line 57, in handle_noargs
+     cursor = connection.cursor()
+   File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", 
line 308, in cursor
+     cursor = util.CursorWrapper(self._cursor(), self)
+   File 
"/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py",
 line 177, in _cursor
+     self.connection = Database.connect(**conn_params)
+   File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 179, in 
connect
+     connection_factory=connection_factory, async=async)
  psycopg2.OperationalError: FATAL:  password authentication failed for user 
"maas"
  FATAL:  password authentication failed for user "maas"
+ 
+ 
+ Related bugs:
+  * bug 969462: [postgres] fails to start after install if invalid locale is 
set

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init 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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to