Public bug reported: Installed MAAS fresh into an LXC container using stable PPA: https://launchpad.net/~maas-maintainers/+archive/ubuntu/stable
sudo apt-get install maas maas-dhcp maas-dns Then I check http://<host>/MAAS and get a 500 error: [Tue Apr 21 21:43:16.219698 2015] [:error] [pid 11958:tid 140276131022592] [remote 10.38.36.4:1205] ImportError: No module named apt_pkg [Tue Apr 21 21:43:18.218545 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] mod_wsgi (pid=11959): Exception occurred processing WSGI script '/usr/share/maas/wsgi.py'. [Tue Apr 21 21:43:18.218587 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] Traceback (most recent call last): [Tue Apr 21 21:43:18.218612 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 187, in __call__ [Tue Apr 21 21:43:18.218648 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] self.load_middleware() [Tue Apr 21 21:43:18.218663 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 47, in load_middleware [Tue Apr 21 21:43:18.218685 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] mw_instance = mw_class() [Tue Apr 21 21:43:18.218698 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/python2.7/dist-packages/maasserver/middleware.py", line 111, in __init__ [Tue Apr 21 21:43:18.218718 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] reverse('login'), [Tue Apr 21 21:43:18.218731 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 536, in reverse [Tue Apr 21 21:43:18.218751 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)) [Tue Apr 21 21:43:18.218775 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 403, in _reverse_with_prefix [Tue Apr 21 21:43:18.218798 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] self._populate() [Tue Apr 21 21:43:18.218811 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 267, in _populate [Tue Apr 21 21:43:18.218831 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] for pattern in reversed(self.url_patterns): [Tue Apr 21 21:43:18.218844 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 365, in url_patterns [Tue Apr 21 21:43:18.218887 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) [Tue Apr 21 21:43:18.218910 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 360, in urlconf_module [Tue Apr 21 21:43:18.218935 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] self._urlconf_module = import_module(self.urlconf_name) [Tue Apr 21 21:43:18.218949 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 40, in import_module [Tue Apr 21 21:43:18.218970 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] __import__(name) [Tue Apr 21 21:43:18.218983 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/share/maas/maas/urls.py", line 28, in <module> [Tue Apr 21 21:43:18.219003 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] url(r'^', include('maasserver.urls')), [Tue Apr 21 21:43:18.219016 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/python2.7/dist-packages/django/conf/urls/__init__.py", line 26, in include [Tue Apr 21 21:43:18.219037 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] urlconf_module = import_module(urlconf_module) [Tue Apr 21 21:43:18.219049 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 40, in import_module [Tue Apr 21 21:43:18.219069 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] __import__(name) [Tue Apr 21 21:43:18.219081 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/python2.7/dist-packages/maasserver/urls.py", line 329, in <module> [Tue Apr 21 21:43:18.219101 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] (r'^api/1\\.0/', include('maasserver.urls_api')) [Tue Apr 21 21:43:18.219114 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/python2.7/dist-packages/django/conf/urls/__init__.py", line 26, in include [Tue Apr 21 21:43:18.219133 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] urlconf_module = import_module(urlconf_module) [Tue Apr 21 21:43:18.219145 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 40, in import_module [Tue Apr 21 21:43:18.219164 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] __import__(name) [Tue Apr 21 21:43:18.219177 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/python2.7/dist-packages/maasserver/urls_api.py", line 101, in <module> [Tue Apr 21 21:43:18.219197 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] from maasserver.api.version import VersionHandler [Tue Apr 21 21:43:18.219218 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/python2.7/dist-packages/maasserver/api/version.py", line 23, in <module> [Tue Apr 21 21:43:18.219241 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] from maasserver.utils.version import get_maas_version_subversion [Tue Apr 21 21:43:18.219254 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/python2.7/dist-packages/maasserver/utils/version.py", line 21, in <module> [Tue Apr 21 21:43:18.219274 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] import apt_pkg [Tue Apr 21 21:43:18.219296 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] ImportError: No module named apt_pkg I can then install python-apt and fix this issue. ** Affects: maas (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/1446878 Title: maas django app won't start "ImportError: No module named apt_pkg" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/maas/+bug/1446878/+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