Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout when running in docker #113

Open
ByEmke opened this issue Mar 6, 2018 · 1 comment
Open

Timeout when running in docker #113

ByEmke opened this issue Mar 6, 2018 · 1 comment

Comments

@ByEmke
Copy link

ByEmke commented Mar 6, 2018

When running cassandra and django in docker swarm, creating an object from a model times out without any errors.

I know the connection works because sync_cassandra successfully creates keyspace and table.

# models.py
class Temp(DjangoCassandraModel):
    id = columns.UUID(primary_key=True, default=uuid.uuid4)
    requested_at = columns.DateTime(default=datetime.datetime.now)


# settings.py
'ENGINE': 'django_cassandra_engine',
'NAME': 'rest_api',
'HOST': 'cas',
'OPTIONS': {
  'replication': {
    'strategy_class': 'SimpleStrategy',
    'replication_factor': 1
  }
}

# cqlsh
$ cqlsh:rest_api> desc tables;
> temp

I have Temp.objects.create() in my view, and that part times out silently

Any ideas or pointers as to where I should start digging ?

@r4fek
Copy link
Owner

r4fek commented Jun 10, 2021

I'd start with enabling logging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants