After install, can't access /MaaS, there is a permission error with the log
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas (Ubuntu) |
Fix Released
|
High
|
Andres Rodriguez |
Bug Description
After installing maas 0.1+bzr266+
[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/
[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/
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1] self.load_
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1] File "/usr/lib/python2.7
/dist-packages/
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1] for middleware_path in
settings.
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1] File "/usr/lib/
[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/
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1] self._wrapped = Settings(
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1] File "/usr/lib/
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1] logging_
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1] File "/usr/lib/
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1] dictConfigClass
[Wed Mar 14 19:25:43 2012] [error] [client 127.0.0.1] File "/usr/lib/
[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/
Doing:
$ sudo touch /var/log/
$ sudo chown root.www-data /var/log/
$ sudo chmod 620 /var/log/
fixes the issue.
Related branches
- Francis J. Lacoste (community): Approve
-
Diff: 320 lines (+136/-37)16 files modifieddebian/changelog (+18/-5)
debian/control (+1/-0)
debian/extras/maas (+2/-2)
debian/maas.install (+1/-0)
debian/maas.logrotate (+9/-0)
debian/maas.maas-pserv.upstart (+1/-1)
debian/maas.maas-txlongpoll.upstart (+14/-0)
debian/maas.postinst (+14/-5)
debian/maas.postrm (+15/-2)
debian/maas.prerm (+11/-0)
debian/maas.templates (+0/-12)
debian/patches/01-fix-database-settings.patch (+6/-6)
debian/patches/02-pserv-config.patch (+20/-4)
debian/patches/03-txlongpoll-config.patch (+19/-0)
debian/patches/series (+1/-0)
debian/rules (+4/-0)
- Francis J. Lacoste (community): Approve
-
Diff: 238 lines (+33/-71)12 files modifieddebian/changelog (+8/-2)
debian/control (+1/-1)
debian/maas.config (+4/-1)
debian/maas.install (+2/-2)
debian/maas.links (+1/-1)
debian/maas.maas-pserv.upstart (+4/-4)
debian/maas.maas-txlongpoll.upstart (+2/-2)
debian/maas.postinst (+5/-5)
debian/patches/01-fix-database-settings.patch (+4/-4)
debian/po/POTFILES.in (+0/-1)
debian/po/templates.pot (+0/-46)
debian/rules (+2/-2)
Changed in maas (Ubuntu): | |
assignee: | nobody → Andres Rodriguez (andreserl) |
status: | New → In Progress |
Changed in maas (Ubuntu): | |
importance: | Undecided → High |
Changed in maas (Ubuntu): | |
status: | In Progress → Fix Released |
Note that the /var/log/maas/oops directory is also owned by root.root and doesn't allow www-data to write to it, which it will need to write OOPSes.