| <type 'exceptions.IOError'> | Python 2.5.2: /usr/bin/python Tue Sep 7 02:18:04 2010 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /var/www/wegi.net/py/wegicms.py in |
| 402 print_starthtml() |
| 403 print_header(curdir) |
| 404 if cgivars.has_key('album'): print_pics(curdir) |
| 405 print_body(curdir) |
| 406 print_footer() |
| cgivars = FieldStorage(None, None, [MiniFieldStorage('album', 'gallery/albumcats/family//740/')]), cgivars.has_key = <bound method FieldStorage.has_key of FieldStora...age('album', 'gallery/albumcats/family//740/')])>, print_pics = <function print_pics at 0x98851b4>, curdir = 'gallery/albumcats/family//740/' |
| /var/www/wegi.net/py/wegicms.py in print_pics(curdir='gallery/albumcats/family//740/') |
| 346 title = re.sub(r'\s', '_', title) |
| 347 title = re.sub(r'\W', '', title) |
| 348 logfd = open(gallerylogfile, 'a') |
| 349 logfd.write(os.environ['REMOTE_ADDR'] + ' - - ' + datetime.datetime.today().strftime('[%d/%b/%Y:%H:%M:%S +0200]') + ' "' + os.environ['REQUEST_METHOD'] + ' ' + title + ' ' + os.environ['SERVER_PROTOCOL'] + '" 200 0' + ' "-" ' + '"' + os.environ['HTTP_USER_AGENT'] + '"\n') |
| 350 logfd.close() |
| logfd undefined, builtin open = <built-in function open>, global gallerylogfile = '/var/log/apache2/galleries.log' |
<type 'exceptions.IOError'>: [Errno 13] Permission denied: '/var/log/apache2/galleries.log'
args =
(13, 'Permission denied')
errno =
13
filename =
'/var/log/apache2/galleries.log'
message =
''
strerror =
'Permission denied'