[2.0a4] Web GUI [Internal Server Error]

Bug #1564418 reported by garyx
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
New
Undecided
Unassigned

Bug Description

A completely fresh install of MAAS using the Ubuntu 16.04 Beta 2 Iso selecting the MAAS option as well as a Daily ISO from yesterday.

Accessing the Webgui fails with the following error in regiond.log with default install. No packages were added after the install. With Beta 2 install the packages were updated to Alpha2. With the daily iso the alpha to packages were installed automatically end resulted in the same error.

2016-03-31 11:08:50 [-] /usr/lib/python3/dist-packages/django/templatetags/future.py:25: django.utils.deprecation.RemovedInDjango19Warning: Loading the `url` tag from the `future` library is deprecated and will be removed in Django 1.9. Use the default `url` tag instead.2016-03-31 11:08:50 [HTTPChannel,2,127.0.0.1] 500 Error - /MAAS/accounts/login/
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/django/core/handlers/wsgi.py", line 189, in __call__
        response = self.get_response(request)
      File "/usr/lib/python3/dist-packages/maasserver/utils/views.py", line 227, in get_response
        response = get_response(request)
      File "/usr/lib/python3/dist-packages/maasserver/utils/views.py", line 201, in get_response
        return django_get_response(request)
      File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 218, in get_response
        response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
    --- <exception caught here> ---
      File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 164, in get_response
        response = response.render()
      File "/usr/lib/python3/dist-packages/django/template/response.py", line 158, in render
        self.content = self.rendered_content
      File "/usr/lib/python3/dist-packages/django/template/response.py", line 135, in rendered_content
        content = template.render(context, self._request)
      File "/usr/lib/python3/dist-packages/django/template/backends/django.py", line 74, in render
        return self.template.render(context)
      File "/usr/lib/python3/dist-packages/django/template/base.py", line 209, in render
        with context.bind_template(self):
      File "/usr/lib/python3.5/contextlib.py", line 59, in __enter__
        return next(self.gen)
      File "/usr/lib/python3/dist-packages/django/template/context.py", line 241, in bind_template
        updates.update(processor(self.request))
      File "/usr/lib/python3/dist-packages/maasserver/context_processors.py", line 27, in global_options
        version = get_maas_version_ui()
      File "/usr/lib/python3/dist-packages/maasserver/utils/version.py", line 87, in wrapped
        _cache[key] = fun(*args, **kwargs)
      File "/usr/lib/python3/dist-packages/maasserver/utils/version.py", line 123, in get_maas_version_ui
        version, subversion = get_maas_version_subversion()
      File "/usr/lib/python3/dist-packages/maasserver/utils/version.py", line 87, in wrapped
        _cache[key] = fun(*args, **kwargs)
      File "/usr/lib/python3/dist-packages/maasserver/utils/version.py", line 108, in get_maas_version_subversion
        branch_version = get_maas_branch_version()
      File "/usr/lib/python3/dist-packages/maasserver/utils/version.py", line 62, in get_maas_branch_version
        revno = shell.call_and_check(("bzr", "revno", __file__))
      File "/usr/lib/python3/dist-packages/provisioningserver/utils/shell.py", line 125, in call_and_check
        process = Popen(command, *args, stdout=PIPE, stderr=PIPE, **kwargs)
      File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
        restore_signals, start_new_session)
      File "/usr/lib/python3.5/subprocess.py", line 1541, in _execute_child
        raise child_exception_type(errno_num, err_msg)
    builtins.FileNotFoundError: [Errno 2] No such file or directory: 'bzr'

2016-03-31 11:08:50 [-] 127.0.0.1 - - [31/Mar/2016:11:08:49 +0000] "GET /MAAS/accounts/login/?next=%2FMAAS%2F HTTP/1.1" 500 223 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"

dpkg -l '*maas*'|cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===============================-=============================-============-=================================================
ii maas 2.0.0~alpha4+bzr4843-0ubuntu1 all "Metal as a Service" is a physical cloud and IPAM
ii maas-cli 2.0.0~alpha4+bzr4843-0ubuntu1 all MAAS client and command-line interface
un maas-cluster-controller <none> <none> (no description available)
ii maas-common 2.0.0~alpha4+bzr4843-0ubuntu1 all MAAS server common files
ii maas-dhcp 2.0.0~alpha4+bzr4843-0ubuntu1 all MAAS DHCP server
ii maas-dns 2.0.0~alpha4+bzr4843-0ubuntu1 all MAAS DNS server
ii maas-proxy 2.0.0~alpha4+bzr4843-0ubuntu1 all MAAS Caching Proxy
ii maas-rack-controller 2.0.0~alpha4+bzr4843-0ubuntu1 all Rack Controller for MAAS
ii maas-region-api 2.0.0~alpha4+bzr4843-0ubuntu1 all Region controller API service for MAAS
ii maas-region-controller 2.0.0~alpha4+bzr4843-0ubuntu1 all Region Controller for MAAS
un maas-region-controller-min <none> <none> (no description available)
un python-django-maas <none> <none> (no description available)
un python-maas-client <none> <none> (no description available)
un python-maas-provisioningserver <none> <none> (no description available)
ii python3-django-maas 2.0.0~alpha4+bzr4843-0ubuntu1 all MAAS server Django web framework (Python 3)
ii python3-maas-client 2.0.0~alpha4+bzr4843-0ubuntu1 all MAAS python API client (Python 3)
ii python3-maas-provisioningserver 2.0.0~alpha4+bzr4843-0ubuntu1 all MAAS server provisioning libraries (Python 3)

Revision history for this message
garyx (garyx) wrote :
Revision history for this message
garyx (garyx) wrote :

Sorry it's supposed to be upgraded to Alpha 4 not 2 in the details.

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi Hlini,

As a work around, please install 'bzr' (sudo apt-get install bzr). Howver, this is already fixed in trunk and will be released as part of beta to. Marking this bug as duplicate of 223948

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Argh, sorry, duplicate of 1563094

Revision history for this message
garyx (garyx) wrote :

Ahh thanks, did try searching and didn't see 1563094.

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

Other bug subscribers

Bug attachments

Remote bug watches

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