WebUI do not work after fresh install

Bug #1311158 reported by moimael
40
This bug affects 8 people
Affects Status Importance Assigned to Milestone
maas (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After installing a fresh ubuntu 14.04 (twice), following every step of this doc :

http://maas.ubuntu.com/docs/install.html#disc-install

I can't access the webui on http://<ip_address>/MAAS

I always get the error :

"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log."

Here is the apache error log, the error keep repeating :

[Tue Apr 22 16:38:35.959444 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] mod_wsgi (pid=1933): Exception occurred processing WSGI script '/usr/share/maas/wsgi.py'.
[Tue Apr 22 16:38:35.959625 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] Traceback (most recent call last):
[Tue Apr 22 16:38:35.959700 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 187, in __call__
[Tue Apr 22 16:38:35.959842 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] self.load_middleware()
[Tue Apr 22 16:38:35.959881 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 49, in load_middleware
[Tue Apr 22 16:38:35.959923 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] mw_instance = mw_class()
[Tue Apr 22 16:38:35.959955 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] File "/usr/lib/python2.7/dist-packages/maasserver/middleware.py", line 87, in __init__
[Tue Apr 22 16:38:35.960022 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] reverse('login'),
[Tue Apr 22 16:38:35.960051 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 528, in reverse
[Tue Apr 22 16:38:35.960099 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))
[Tue Apr 22 16:38:35.960137 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 399, in _reverse_with_prefix
[Tue Apr 22 16:38:35.960172 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] self._populate()
[Tue Apr 22 16:38:35.960205 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 286, in _populate
[Tue Apr 22 16:38:35.960258 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] for name in pattern.reverse_dict:
[Tue Apr 22 16:38:35.960597 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 311, in reverse_dict
[Tue Apr 22 16:38:35.961326 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] self._populate()
[Tue Apr 22 16:38:35.961358 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 286, in _populate
[Tue Apr 22 16:38:35.961411 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] for name in pattern.reverse_dict:
[Tue Apr 22 16:38:35.961473 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 311, in reverse_dict
[Tue Apr 22 16:38:35.961529 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] self._populate()
[Tue Apr 22 16:38:35.961556 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 272, in _populate
[Tue Apr 22 16:38:35.961602 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] lookup_str = callback.__module__ + "." + callback.__class__.__name__
[Tue Apr 22 16:38:35.961699 2014] [:error] [pid 1933:tid 140611374012160] [remote 192.168.16.44:3014] AttributeError: 'functools.partial' object has no attribute '__module__'

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in maas (Ubuntu):
status: New → Confirmed
Revision history for this message
Jonathan (jfrancis-p) wrote :

I've found that if I perform a fresh install, without internet access (while still having a fully configured network), that the install works and I have full access to the web ui.

Revision history for this message
JP (jungjphi) wrote :

Thanks Jonathan for the work around.
I tried the MAAS install option with a network connected machine, I got the error.
I tried a server base install, then adding MAAS components (apt-get) with a network connected machine, I got the error.
But installing from ISO with network card configured and cable unplugged delivered a working solution.

Revision history for this message
Zack Parrish (munson3333) wrote :

I can also get what appears to be a functioning MAAS controller with web UI following Jonathan's work around. However, I'm still having a heck of a time getting the web UI to recognize the boot images I've imported through MAAS command line. It's also proving quite difficult to get a node to show up in the web UI nodes page.

For the record, I'm testing all of this on VMs. The controller and all nodes will be virtualized.

Also, if I run:

sudo apt-get update
sudo apt-get upgrade

it breaks my working installation and goes right back to the "Internal Server error" message from Apache. Updating does pull down an update to:

python-django

which appears to be tied to a lot of the originally posted errors.

Revision history for this message
Torkel Lyng (torkel-lyng) wrote :

Encountered the same error here, unable to import functools.partial after fresh installation. Current state of 14.04 Server MAAS installation is broken.

Revision history for this message
Alessandro Pilotti (alexpilotti) wrote :

As a temporary workaround, I got it working with:

sudo apt-get install -y python-django=1.6.1-2

Revision history for this message
TechnicalAbuse (c-ubuutu-f) wrote :

The python-django=1.6.1-2 downgrade worked on my installation.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

This is likely because of the python-django security update, see #1311433

Revision history for this message
Jean-Daniel Bussy (silversurfer972) wrote :

I confirm the workaround. I got it working with:

sudo apt-get install -y --force-yes python-django=1.6.1-2
sudo dpkg-reconfigure maas-region-controller

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.