Here's a traceback:
Traceback (most recent call last): File "/usr/local/apache/cgi-bin/sf", line 82, in ? log_type(report, tracker) File "/usr/local/apache/cgi-bin/sf", line 42, in log_type os.unlink(idsfile+".lck") OSError: [Errno 2] No such file or directory: '/tmp/sourceforge-ids.txt.lck'
and here's the script. It looks like lock file creation is failing but log_type() isn't returning, so in the finally clause deletion fails.
Somebody took "world" write permission on /tmp away; I don't know whether this was intentional - I have restored them for a moment.
The script actually has two errors: it is not os.sleep, but time.sleep (so it would only try one time, not ten times); plus (and I'm glad you did not catch that, either :-) the finally block is always executed, even if the file was not created, and even if the function is left through return.
I've fixed the script, however, if somebody takes away o+w on /tmp again, it will mean that the caching silently stops.
Regards, Martin
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com