Permission dened and lock runtime error with multiprocess logging

Jun 11, 2011
Reaction score
Hi Guys,

When i am running the implementation of multiprocess logging through queue handler, i get this error. It is the same with sockethandler as well as with pipe handler if multiprocesses are involved. Any idea to help??

Appreciate the help!!
Platform: AIX
Python version:2.6.5

sem_trywait: Permission denied
sem_post: Permission denied
sem_destroy: Permission denied
sem_wait: Permission denied
Process Process-1:
Traceback (most recent call last):
File "/opt/freeware/lib/python2.6/multiprocessing/", line 232, in _bootstrap
File "/opt/freeware/lib/python2.6/multiprocessing/", line 88, in run
self._target(*self._args, **self._kwargs)
File "", line 108, in listener_process
File "", line 99, in listener_configurer
h = logging.handlers.RotatingFileHandler('/tmp/mptest.log', 'a', 300, 10)
File "/opt/freeware/lib/python2.6/logging/", line 107, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/opt/freeware/lib/python2.6/logging/", line 59, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/opt/freeware/lib/python2.6/logging/", line 819, in __init__
StreamHandler.__init__(self, self._open())
File "/opt/freeware/lib/python2.6/logging/", line 744, in __init__
File "/opt/freeware/lib/python2.6/logging/", line 605, in __init__
File "/opt/freeware/lib/python2.6/logging/", line 208, in _releaseLock
File "/opt/freeware/lib/python2.6/", line 138, in release
raise RuntimeError("cannot release un-acquired lock")
RuntimeError: cannot release un-acquired lock
sem_trywait: Permission denied


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question