Connection pool errors with Cassandra driver

546 views
Skip to first unread message

Ander Ustarroz

unread,
Sep 14, 2016, 6:03:34 PM9/14/16
to DataStax Python Driver for Apache Cassandra User Mailing List
I am running a web application with Python 3.5.2, uWSGI 2.0.11.2, cassandra-driver 3.6.0, cassandra 3.7. Using a Cassandra cluster  with 3 nodes: 
Node 1 (172.17.0.4), 
Node 2 (172.17.0.5), 
Node 3 (172.17.0.6)

And I am getting the following errors anytime I'am trying to connect to the site:

Respawned uWSGI worker 2 (new pid: 90)
mapping worker
2 to CPUs: 3 4 5
2016-09-14 21:00:47,434 WARNI [cassandra.cluster][Thread-2] Failed to create connection pool for new host 172.17.0.4:

Traceback (most recent call last):
 
File "cassandra/cluster.py", line 2232, in cassandra.cluster.Session.add_or_renew_pool.run_add_or_renew_pool (cassandra/cluster.c:38826)
 
File "cassandra/pool.py", line 328, in cassandra.pool.HostConnection.__init__ (cassandra/pool.c:6243)
 
File "cassandra/cluster.py", line 1107, in cassandra.cluster.Cluster.connection_factory (cassandra/cluster.c:14943)
 
File "cassandra/connection.py", line 330, in cassandra.connection.Connection.factory (cassandra/connection.c:5766)
cassandra
.OperationTimedOut: errors=Timed out creating connection (5 seconds), last_host=None

2016-09-14 21:00:47,437 WARNI [cassandra.cluster][Thread-1] Failed to create connection pool for new host 172.17.0.6:
Traceback (most recent call last):
 
File "cassandra/cluster.py", line 2232, in cassandra.cluster.Session.add_or_renew_pool.run_add_or_renew_pool (cassandra/cluster.c:38826)
 
File "cassandra/pool.py", line 328, in cassandra.pool.HostConnection.__init__ (cassandra/pool.c:6243)
 
File "cassandra/cluster.py", line 1107, in cassandra.cluster.Cluster.connection_factory (cassandra/cluster.c:14943)
 
File "cassandra/connection.py", line 330, in cassandra.connection.Connection.factory (cassandra/connection.c:5766)
cassandra
.OperationTimedOut: errors=Timed out creating connection (5 seconds), last_host=None

...The work of process 19 is done. Seeya!
worker
7 killed successfully (pid: 19)



I have posted more detailed information about this issue here.

Any help will be appreciated.

Adam Holmberg

unread,
Sep 15, 2016, 1:58:49 PM9/15/16
to python-dr...@lists.datastax.com
Thanks for linking SO and not leaving it to us to correlate. :) 
I responded there.

--
You received this message because you are subscribed to the Google Groups "DataStax Python Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-user+unsub...@lists.datastax.com.

Reply all
Reply to author
Forward
0 new messages