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

Problem creating index contact #2

Open
FlorentinCONGO opened this issue Sep 19, 2019 · 3 comments
Open

Problem creating index contact #2

FlorentinCONGO opened this issue Sep 19, 2019 · 3 comments

Comments

@FlorentinCONGO
Copy link

Hi Mr @cromulus ! i deployed Rapidpro docker but when i run docker-compose up i got this error : 'level=error msg="error creating new index" error="Get http://localhost:9200/contacts_2019_09_19: dial tcp 127.0.0.1:9200: connect: connection refused"
Could you help me please?

Thanks i advance.

@cromulus
Copy link
Owner

Looks like elasticsearch hadn't booted up yet.

A couple of things: could you past a docker-compose ps to share what the status of the containers and services is? Also, perhaps just wait a bit? It takes a while for things to boot up, and in the process, it throws a bunch of errors... That's OK, eventually ES boots, just takes time.

@FlorentinCONGO
Copy link
Author

Hi!
this is result of docker-compose ps:

WARNING: The MANAGEPY_IMPORT_GEOJSON variable is not set. Defaulting to a blank string.
WARNING: The OSM_RELATION_IDS variable is not set. Defaulting to a blank string.
WARNING: The AWS_S3_CUSTOM_DOMAIN variable is not set. Defaulting to a blank string.
WARNING: The BRANDING_SPLASH variable is not set. Defaulting to a blank string.
              Name                             Command               State                     Ports
----------------------------------------------------------------------------------------------------------------------
letsencrypt-nginx-proxy-companion   /bin/bash /app/entrypoint. ...   Up
nginx-proxy                         /app/docker-entrypoint.sh  ...   Up       0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp
rapidpro_celery_base_1              /venv/bin/celery --beat -- ...   Up       8000/tcp
rapidpro_celery_msgs_1              /venv/bin/celery --app=tem ...   Up       8000/tcp
rapidpro_courier_1                  courier                          Up       8080/tcp
rapidpro_elasticsearch_1            /usr/local/bin/docker-entr ...   Up       9200/tcp, 9300/tcp
rapidpro_mailroom_1                 mailroom                         Up       8090/tcp
rapidpro_nginx_1                    nginx -g daemon off;             Up       80/tcp
rapidpro_postgresql_1               docker-entrypoint.sh postgres    Up       5432/tcp
rapidpro_rapidpro_1                 /startup.sh                      Exit 1
rapidpro_redis_1                    docker-entrypoint.sh redis ...   Up       6379/tcp
rapidpro_rp-archiver_1              rp-archiver                      Exit 1
rapidpro_rp-indexer_1               rp-indexer                       Up       8080/tcp

@cromulus
Copy link
Owner

Hi! Sorry it took so long to get back to you. Likely you'll need to run the migrations.

docker-compose exec rapidpro /venv/bin/python manage.py migrate

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