tutor icon indicating copy to clipboard operation
tutor copied to clipboard

Quickstart hangs on mongodb lookup

Open schko opened this issue 6 years ago • 3 comments

I just ran quickstart to get the latest release (upgrading from 3.6) and the last line here keeps repeating.

Applying xblock_config.0002_courseeditltifieldsenabledflag... OK
Initialising forum...
docker-compose -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.yml -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm forum-job sh -e -c export MONGOHQ_URL="mongodb://$MONGODB_AUTH$MONGODB_HOST:$MONGODB_PORT/cs_comments_service"

bundle exec rake search:initialize
bundle exec rake search:rebuild_index
Waiting for mongodb/elasticsearch...
2020/07/02 04:12:25 Waiting for: tcp://mongodb:27017
2020/07/02 04:12:25 Waiting for: http://elasticsearch:9200
2020/07/02 04:12:25 Received 200 from http://elasticsearch:9200
2020/07/02 04:12:25 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s

Eventually, I receive the following:

2020/07/02 04:22:25 Timeout after 10m0s waiting on dependencies to become available: [tcp://mongodb:27017 http://elasticsearch:9200]

Error: Command failed with status 1: docker-compose -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.yml -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm forum-job sh -e -c export MONGOHQ_URL="mongodb://$MONGODB_AUTH$MONGODB_HOST:$MONGODB_PORT/cs_comments_service"

bundle exec rake search:initialize
bundle exec rake search:rebuild_index

schko avatar Jul 02 '20 04:07 schko

Updated with some more information

schko avatar Jul 02 '20 04:07 schko

Please run the upgrade command indicated here: https://docs.tutor.overhang.io/install.html#upgrading

regisb avatar Jul 02 '20 06:07 regisb

Thanks very much Regis!

schko avatar Jul 02 '20 13:07 schko