Another terminal try to create user by the given command.
The following traceback occurs
Traceback (most recent call last):
File "/home/fhackdroid/.virtualenvs/python3/lib/python3.5/site-packages/aiozmq-0.7.1-py3.5.egg/aiozmq/rpc/base.py", line 236, in try_log
fut.result()
File "/usr/lib64/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/home/fhackdroid/.virtualenvs/python3/lib/python3.5/site-packages/aiozmq-0.7.1-py3.5.egg/aiozmq/rpc/pubsub.py", line 223, in process_call_result
if fut.result() is not None:
File "/usr/lib64/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/usr/lib64/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/home/fhackdroid/waarta/ircb/ircb/lib/dispatcher/init.py", line 49, in register_sub
self._lock.release()
File "/usr/lib64/python3.5/asyncio/locks.py", line 201, in release
raise RuntimeError('Lock is not acquired.')
RuntimeError: Lock is not acquired.
[2016-09-30 15:33:19][ stores DEBUG] UserStore CREATE: store-user-create {'password': '', 'username': 'farhaan', 'email': 'farhaan.bukhsh@gmail.com'} 1d0db124-86f5-11e6-b9e4-$
0fd61ea064c
[2016-09-30 15:33:19][ stores DEBUG] UserStore CREATED: <ircb.models.user.User object at 0x7f8a3edc07b8>
[2016-09-30 15:33:19][dispatcher DEBUG] SEND: store-user-create {'password': '', 'username': 'farhaan', 'email': 'farhaan.bukhsh@gmail.com'} 1d0db124-86f5-11e6-b9e4-90fd61ea064c
[2016-09-30 15:33:19][dispatcher DEBUG] PUBLISH from stores: ('store-user-created', {'last_name': '', 'created': 1475209999.469223, 'id': 1, 'confirmed_at': None, 'first_name': $
', 'email': 'farhaan.bukhsh@gmail.com', 'username': 'farhaan', 'reset_password_token': '', 'last_updated': 1475209999.469235, 'is_active': False}, '1d0db124-86f5-11e6-b9e4-90fd61e$
064c')
An exception RuntimeError('Lock is not acquired.',) from method 'register_sub' call occurred.
Steps to replicate
After setting up ircb :
Run:
ircb run stores
Another terminal try to create user by the given command.
The following traceback occurs
Traceback (most recent call last): File "/home/fhackdroid/.virtualenvs/python3/lib/python3.5/site-packages/aiozmq-0.7.1-py3.5.egg/aiozmq/rpc/base.py", line 236, in try_log fut.result() File "/usr/lib64/python3.5/asyncio/futures.py", line 274, in result raise self._exception File "/home/fhackdroid/.virtualenvs/python3/lib/python3.5/site-packages/aiozmq-0.7.1-py3.5.egg/aiozmq/rpc/pubsub.py", line 223, in process_call_result if fut.result() is not None: File "/usr/lib64/python3.5/asyncio/futures.py", line 274, in result raise self._exception File "/usr/lib64/python3.5/asyncio/tasks.py", line 239, in _step result = coro.send(None) File "/home/fhackdroid/waarta/ircb/ircb/lib/dispatcher/init.py", line 49, in register_sub self._lock.release() File "/usr/lib64/python3.5/asyncio/locks.py", line 201, in release raise RuntimeError('Lock is not acquired.') RuntimeError: Lock is not acquired. [2016-09-30 15:33:19][ stores DEBUG] UserStore CREATE: store-user-create {'password': '', 'username': 'farhaan', 'email': 'farhaan.bukhsh@gmail.com'} 1d0db124-86f5-11e6-b9e4-$ 0fd61ea064c [2016-09-30 15:33:19][ stores DEBUG] UserStore CREATED: <ircb.models.user.User object at 0x7f8a3edc07b8> [2016-09-30 15:33:19][dispatcher DEBUG] SEND: store-user-create {'password': '', 'username': 'farhaan', 'email': 'farhaan.bukhsh@gmail.com'} 1d0db124-86f5-11e6-b9e4-90fd61ea064c [2016-09-30 15:33:19][dispatcher DEBUG] PUBLISH from stores: ('store-user-created', {'last_name': '', 'created': 1475209999.469223, 'id': 1, 'confirmed_at': None, 'first_name': $ ', 'email': 'farhaan.bukhsh@gmail.com', 'username': 'farhaan', 'reset_password_token': '', 'last_updated': 1475209999.469235, 'is_active': False}, '1d0db124-86f5-11e6-b9e4-90fd61e$ 064c') An exception RuntimeError('Lock is not acquired.',) from method 'register_sub' call occurred.