djangoamazon-ec2cassandracqlengine

CQLEngineException when running inside VPN


I keep getting this error when using django-cassandra-engine on a EC2 instance inside a VPN.

CQLEngineException: It is required to setup() cqlengine before executing queries.

It seems to run properly when running on a EC2 instance outside the VPN. The configuration I'm using is this:

DATABASES = {
    'default': {
        'ENGINE': 'django_cassandra_engine',
        'NAME': 'stgks',
        'TEST_NAME': 'test_db',
        'HOST': '172.95.95.343',
    }
}

There are two other nodes in the ring that contain the specified host.


Solution

  • Turns out I was using the incompatible versions of Django, cassandra-driver and Django-cassandra-engine. Correcting the versions worked out