Right after installation, /var/log/apache2/error.log contains a stacktrace "FATAL: password authentication failed for user "maas"

Bug #1317958 reported by Raphaël Badin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Critical
Unassigned
maas (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Here is the full stacktrace from /var/log/apache2/error.log: http://paste.ubuntu.com/7422017/.

The MAAS server is functional but this is still a crash.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

I am assigning this to packaging. It is restarting Apache before the PG user has been set up.

Changed in maas:
status: Triaged → Invalid
Gavin Panella (allenap)
Changed in maas (Ubuntu):
status: New → Confirmed
Revision history for this message
Gavin Panella (allenap) wrote :

Observed again today. It results in 100s of lines of errors and
stack-traces in Apache's error.log. It would be good to fix this in
packaging, but we can also help in MAAS itself, by retrying in
start_up.py every second or two, and handling the exception ourselves.

A recent example of the error, running on Trusty, using packages from
trunk r3243:

mod_wsgi (pid=28482): Target WSGI script '/usr/share/maas/wsgi.py' cannot be loaded as Python module.
mod_wsgi (pid=28482): Exception occurred processing WSGI script '/usr/share/maas/wsgi.py'.
Traceback (most recent call last):
  File "/usr/share/maas/wsgi.py", line 32, in <module>
    start_up()
  File "/usr/lib/python2.7/dist-packages/maasserver/start_up.py", line 53, in start_up
    security.get_shared_secret()
  File "/usr/lib/python2.7/dist-packages/provisioningserver/utils/twisted.py", line 108, in wrapper
    return func_in_reactor(*args, **kwargs).wait(timeout)
  File "/usr/lib/python2.7/dist-packages/crochet/_eventloop.py", line 219, in wait
    result.raiseException()
  File "/usr/lib/python2.7/dist-packages/twisted/python/threadpool.py", line 191, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
    return func(*args,**kw)
  File "/usr/lib/python2.7/dist-packages/provisioningserver/utils/twisted.py", line 143, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/maasserver/utils/async.py", line 152, in call_within_transaction
    with transaction.atomic():
  File "/usr/lib/python2.7/dist-packages/django/db/transaction.py", line 237, in __enter__
    if not connection.get_autocommit():
  File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 324, in get_autocommit
    self.ensure_connection()
  File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 124, in ensure_connection
    self.connect()
  File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 99, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 124, in ensure_connection
    self.connect()
  File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 112, in connect
    self.connection = self.get_new_connection(conn_params)
  File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 116, in get_new_connection
    return Database.connect(**conn_params)
  File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 179, in connect
    connection_factory=connection_factory, async=async)
OperationalError: FATAL: password authentication failed for user "maas"
FATAL: password authentication failed for user "maas"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.