AttributeError: 'NoneType' object has no attribute 'connection_pool'

Hi Guys,

I am try to run sentry 8.19 on debian jessie everything was install and met dependencies. But I get the following error:

File “/var/www/sentry2/local/lib/python2.7/site-packages/redis/”, line 2930, in init
encoder = registered_client.connection_pool.get_encoder()
AttributeError: ‘NoneType’ object has no attribute ‘connection_pool’
(sentry2) blankhost sentry2 # pip check
No broken requirements found.
(sentry2) blankhost sentry2 # redis-cli> ping
PONG> exit
(sentry2) blankhost sentry2 # netstat -ptan
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0* LISTEN 443/sshd
tcp 0 0* LISTEN 556/postgres
tcp 0 0* LISTEN 853/exim4
tcp 0 0* LISTEN 457/redis-server 12
tcp 0 0 TIME_WAIT -
tcp6 0 0 :::22 :::* LISTEN 443/sshd
tcp6 0 0 ::1:5432 :::* LISTEN 556/postgres
tcp6 0 0 ::1:25 :::* LISTEN 853/exim4
tcp6 0 0 :::80 :::* LISTEN 497/apache2

It seem’s sentry can’t work by some reason but I can’t find. So please give advise.


This is sue to a buggy version of redis-py that released an API change in a patch release. You can work around this by explicitly doing: pip install redis==2.10.5.

2.10.6 broke some compatibility with us unexpectedly.

See also Sentry upgrade fails using python install

Thank you for very fast reply.
Have a good day.