nkrode / RedisLive

Visualize your redis instances, analyze query patterns and spikes.
http://www.nkrode.com/article/real-time-dashboard-for-redis
MIT License
3.07k stars 644 forks source link

Exception throw while shutting down #13

Open reustle opened 12 years ago

reustle commented 12 years ago

This doesn't happen all the time (only once or twice), but I believe it was working on shutting itself down automatically when this was thrown.

$ ./redis-monitor.py --duration=120
shutting down...
Exception in thread Thread-5 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
  File "./redis-monitor.py", line 96, in run
  File "/home/ubuntu/RedisLive/src/dataprovider/redisprovider.py", line 69, in SaveMonitorCommand
  File "build/bdist.linux-x86_64/egg/redis/client.py", line 1532, in execute
  File "build/bdist.linux-x86_64/egg/redis/client.py", line 1389, in reset
  File "build/bdist.linux-x86_64/egg/redis/connection.py", line 354, in release
  File "build/bdist.linux-x86_64/egg/redis/connection.py", line 331, in _checkpid
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'getpid'
vsayer commented 11 years ago

I can confirm this too.

knightsamar commented 11 years ago

+1

remy1991 commented 10 years ago

I am getting the same error. Also the message,

shutting down... Exception in thread Thread-3 (most likely raised during interpreter shutdown):

is shown randomly and abruptly. Has anyone worker out why is it so ?

gdubicki commented 10 years ago

And I am gettin a similar, but not the same error:

root@monitor:/opt/redis-live/src# /opt/redis-live/src/redis-monitor.py --duration=10 shutting down... Exception in thread Thread-7 (most likely raised during interpreter shutdown):Exception in thread Thread-3 (most likely raised during interpreter shutdown): Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner File "/opt/redis-live/src/redis-monitor.py", line 139, in run File "/opt/redis-live/src/redis-monitor.py", line 103, in run File "/opt/nkrode-RedisLive-22e7051/src/dataprovider/redisprovider.py", line 95, in save_monitor_command File "/opt/redis-live/src/redis-monitor.py", line 59, in listen File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 2170, in execute File "/opt/redis-live/src/redis-monitor.py", line 53, in parse_response File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 1939, in reset File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 341, in read_response <type 'exceptions.TypeError'>: 'NoneType' object is not callable File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 309, in disconnect

<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'error'

I am using Redis 2.8.9 as a store and connection to 6 instances of redis 2.6.14.

popexizhi commented 9 years ago

I am getting the same error. Also the message,

shutting down...

+1

JervisPG commented 7 years ago

+1 @nkrode

reustle commented 7 years ago

This issue is from 2012 😄

Also, I think github added the :+1: reaction feature so we don't all get emails of "+1" anymore :)