txlongpoll oopses are recorded with the wrong permission, causing oops loader script to fail with a permission denied error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Gavin Panella | ||
Python OOPS Date-dir repository |
Fix Released
|
Critical
|
Robert Collins | ||
txlongpoll |
Fix Released
|
Critical
|
Gavin Panella |
Bug Description
update_db script from oops-tools is failing with permission denied error. The script can't access the oops directoris under txlongpoll-oopses. The permission for that dir is:
drwx------ 2 archvsync archvsync 4.0K 2011-11-13 22:22 2011-11-13
One easy workaround is to make the directory r-x by everyone. This bug report is to fix the LP code that's recording those oops directories with the wrong permission
Traceback (most recent call last):
File "bin/update_db", line 49, in <module>
oopstools.
File "/srv/lp-
for oops in oops_store.
File "/srv/lp-
oops_files = set(os.
OSError: [Errno 13] Permission denied: '/srv/launchpad
make: *** [update_db] Error 1
Related branches
- William Grant (community): Approve (code)
-
Diff: 198 lines (+85/-23)5 files modifiedNEWS (+7/-0)
oops_datedir_repo/__init__.py (+1/-1)
oops_datedir_repo/repository.py (+10/-6)
oops_datedir_repo/tests/test_repository.py (+66/-15)
setup.py (+1/-1)
- Gavin Panella: Approve
- Diff: 0 lines
- Gavin Panella (community): Approve
-
Diff: 21 lines (+2/-2)1 file modifiedversions.cfg (+2/-2)
summary: |
txlongpoll oopses are recorded with the wrong permission, causing oops - loader script to fail with an invalid permission + loader script to fail with a permission denied error |
Changed in python-oops-datedir-repo: | |
status: | Triaged → In Progress |
assignee: | nobody → Robert Collins (lifeless) |
Changed in txlongpoll: | |
status: | Triaged → In Progress |
assignee: | nobody → Gavin Panella (allenap) |
Changed in launchpad: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Gavin Panella (allenap) |
Changed in txlongpoll: | |
status: | In Progress → Fix Committed |
Changed in txlongpoll: | |
status: | Fix Committed → Fix Released |
Changed in launchpad: | |
status: | In Progress → Fix Released |
txlongpoll will need a dependency bump to require oops-datedir-repo 0.0.13 (the next release) once thats put together.