Public bug reported:

After installing maas 0.1+bzr266+dfsg-0+267+20~precise1, I try to access
http://localhost/MaaS and I get an Internal Server Error. Relevant part
of the error_log:

[Wed Mar 14 19:02:10 2012] [notice] Apache/2.2.22 (Ubuntu) mod_python/3.3.1 Pyth
on/2.7.3rc1 mod_wsgi/3.3 configured -- resuming normal operations
[Wed Mar 14 19:25:38 2012] [error] [client 127.0.0.1] File does not exist: /var/
www/Maas
[Wed Mar 14 19:25:38 2012] [error] [client 127.0.0.1] File does not exist: /var/
www/favicon.ico
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1] mod_wsgi (pid=26497): Exce
ption occurred processing WSGI script '/usr/share/maas/wsgi.py'.
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1] Traceback (most recent cal
l last):
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1]   File "/usr/lib/python2.7
/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1]     self.load_middleware()
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1]   File "/usr/lib/python2.7
/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1]     for middleware_path in
 settings.MIDDLEWARE_CLASSES:

[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1]   File 
"/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in 
__getattr__
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1]     self._setup()
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1]   File 
"/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1]     self._wrapped = 
Settings(settings_module)
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1]   File 
"/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 139, in 
__init__
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1]     
logging_config_func(self.LOGGING)
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1]   File 
"/usr/lib/python2.7/logging/config.py", line 777, in dictConfig
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1]     
dictConfigClass(config).configure()
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1]   File 
"/usr/lib/python2.7/logging/config.py", line 575, in configure
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1]     '%r: %s' % (name, e))
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1] ValueError: Unable to 
configure handler 'log': [Errno 2] No such file or directory: 
'/var/log/maas/maas.log'

Doing:

$ sudo touch /var/log/maas/maas.log
$ sudo chown root.www-data  /var/log/maas/maas.log
$ sudo chmod 620   /var/log/maas/maas.log

fixes the issue.

** Affects: maas (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/955400

Title:
  After install, can't access /MaaS, there is a permission error with
  the log

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/maas/+bug/955400/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to