Modify ↓
Opened 17 years ago
Closed 17 years ago
#7553 closed defect (invalid)
OSError: [Errno 13] Permission denied: '/var/cache/trac/sejuspRedeInfra/attachments/wiki'
| Reported by: | eduardo scheidet | Owned by: | Leandro Dorileo |
|---|---|---|---|
| Priority: | highest | Milestone: | |
| Component: | general | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
How to Reproduce
While doing a POST operation on /attachment/wiki/RegrasdeFirewall/, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'__FORM_TOKEN': u'b4df04e8b21d08afdc95e7ef',
'action': u'new',
'attachment': FieldStorage('attachment', 'WAN---LAN-SEJUSP.txt', 'WAN > LAN-SEJUSP\r\n\r\nPriority \tSource\t\tDestination\tService\t\tAction\tUsers\tComment\tEnable\r\n\r\n1\t\tDataNorte\tSSP-SSP-04\tREMOTE-DESKTOP\tAllow\tAll\tok\t*\r\n\r\n2\t\tFW-PJC\t\tSSP-SSP-02\tNetbios\t\tAllow\tAll\tok\t*\r\n\r\n3\t\tPuma\t\tSEJUSP-Subnets\tAny\t\tAllow\tAll\tok\t*\r\n\r\n4\t\tLanDesk\t\tSEJUSP-Subnets\tAny\t\tAllow\tAll\tok\t*\r\n\r\n5\t\tTRAIRA\t\tAny\t\tAny\t\tAllow\tAll\tok\t*\r\n\r\n6\t\tAny\t\tAny\t\tAny\t\tDeny\tAll\tok\t*'),
'description': u'',
'id': u'RegrasdeFirewall',
'path': u'RegrasdeFirewall/',
'realm': u'wiki'}
User Agent was: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
System Information
| Trac | 0.12multirepos
|
| Python | 2.4.4 (#1, Apr 15 2008, 23:37:53) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)]
|
| setuptools | 0.6c3
|
| SQLite | 3.3.8
|
| pysqlite | 2.3.2
|
| Genshi | 0.5
|
| mod_python | 3.2.10
|
| jQuery: | 1.2.3
|
Python Traceback
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/Trac-0.12multirepos-py2.4.egg/trac/web/main.py", line 447, in _dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.4/site-packages/Trac-0.12multirepos-py2.4.egg/trac/web/main.py", line 206, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.4/site-packages/Trac-0.12multirepos-py2.4.egg/trac/attachment.py", line 393, in process_request
self._do_save(req, attachment)
File "/usr/lib/python2.4/site-packages/Trac-0.12multirepos-py2.4.egg/trac/attachment.py", line 582, in _do_save
attachment.insert(filename, upload.file, size)
File "/usr/lib/python2.4/site-packages/Trac-0.12multirepos-py2.4.egg/trac/attachment.py", line 217, in insert
os.makedirs(self.path)
File "os.py", line 156, in makedirs
makedirs(head, mode)
File "os.py", line 159, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/cache/trac/sejuspRedeInfra/attachments/wiki'
Attachments (0)
Note:
See TracTickets
for help on using tickets.



This is a configuration problem and not a Trac bug.
Make sure the web server user has write permission to the
/var/cache/trac/sejuspRedeInfradirectory (and subdirectories).