Help in setting up commcare via Docker

When i run $ ./scripts/docker runserver --bootstrapStarting
hqservice_postgres_1 …

The build process fails and produces the following errors:

Starting hqservice_elasticsearch_1 …

Starting hqservice_couch_1 …
Starting hqservice_postgres_1
Starting hqservice_couch_1search_1 … done
Starting hqservice_redis_1
Starting hqservice_kafka_1 …
Starting hqservice_postgres_1 … error

ERROR: for hqservice_postgres_1 Cannot start service postgres: driver
failed programming external connectivity on endpoint hqservice_postgres_1
(167de2d4c960b9c8531bcd43dd744bc8e4ab30d2f2144e566c86d450a01d14ce): Error
starting userland proStarting hqservice_couch_1 … error

ERROR: for hqservice_couch_1 Cannot start service couch: driver failed
programming external connectivity on endpoint hqservice_couch_1
(cd83ff569a63807e418a950fac6587d40c8220cbc580d9d11945cf6b91dbd9c0): Error
starting userland proxy: listeStarting hqservice_redis_1 … error

ERROR: for hqservice_redis_1 Cannot start service redis: driver failed
programming external connectivity on endpoint hqservice_redis_1
(9d3db525a4d865f59b47b2477779dc532ebd1a0d48c8cacc08e64dfb35019d71): Error
starting userland proxy: listen tcp 0.0.0.0:6379: bind: address already in
use

ERROR: for redis Cannot start service redis: driver failed programming
external connectivity on endpoint hqservice_redis_1
(9d3db525a4d865f59b47b2477779dc532ebd1a0d48c8cacc08e64dfb35019d71): Error
starting userland proxy: listen tcp 0.0.0.0:6379: bind: address already in
use

ERROR: for postgres Cannot start service postgres: driver failed
programming external connectivity on endpoint hqservice_postgres_1
(167de2d4c960b9c8531bcd43dd744bc8e4ab30d2f2144e566c86d450a01d14ce): Error
starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in
use

ERROR: for couch Cannot start service couch: driver failed programming
external connectivity on endpoint hqservice_couch_1
(cd83ff569a63807e418a950fac6587d40c8220cbc580d9d11945cf6b91dbd9c0): Error
starting userland proxy: listen tcp 0.0.0.0:5984: bind: address already in
use
ERROR: Encountered errors while bringing up the project.

I had previously set it up on a virtual machine and after setting it up it
failed. I have already installed elasticserver, postgres, redis and couchdb
which has been having issues setting up. Please, how do i go about this?

It looks like there are already processes bound to ports that docker is
attempting to connect those services to. Try killing the processes that are
already using those ports first. Perhaps the instance of CommCareHQ that
you previously set up in a VM is still running and using those ports?

··· On Mon, Jul 3, 2017 at 4:47 AM, Mr. G wrote:

When i run $ ./scripts/docker runserver --bootstrapStarting
hqservice_postgres_1 …

The build process fails and produces the following errors:

Starting hqservice_elasticsearch_1 …

Starting hqservice_couch_1 …
Starting hqservice_postgres_1
Starting hqservice_couch_1search_1 … done
Starting hqservice_redis_1
Starting hqservice_kafka_1 …
Starting hqservice_postgres_1 … error

ERROR: for hqservice_postgres_1 Cannot start service postgres: driver
failed programming external connectivity on endpoint hqservice_postgres_1 (
167de2d4c960b9c8531bcd43dd744bc8e4ab30d2f2144e566c86d450a01d14ce):
Error starting userland proStarting hqservice_couch_1 … error

ERROR: for hqservice_couch_1 Cannot start service couch: driver
failed programming external connectivity on endpoint hqservice_couch_1 (
cd83ff569a63807e418a950fac6587d40c8220cbc580d9d11945cf6b91dbd9c0):
Error starting userland proxy: listeStarting hqservice_redis_1 … error

ERROR: for hqservice_redis_1 Cannot start service redis: driver
failed programming external connectivity on endpoint hqservice_redis_1 (
9d3db525a4d865f59b47b2477779dc532ebd1a0d48c8cacc08e64dfb35019d71):
Error starting userland proxy: listen tcp 0.0.0.0:6379: bind: address
already in use

ERROR: for redis Cannot start service redis: driver failed
programming external connectivity on endpoint hqservice_redis_1 (
9d3db525a4d865f59b47b2477779dc532ebd1a0d48c8cacc08e64dfb35019d71):
Error starting userland proxy: listen tcp 0.0.0.0:6379: bind: address
already in use

ERROR: for postgres Cannot start service postgres: driver failed
programming external connectivity on endpoint hqservice_postgres_1 (
167de2d4c960b9c8531bcd43dd744bc8e4ab30d2f2144e566c86d450a01d14ce):
Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address
already in use

ERROR: for couch Cannot start service couch: driver failed
programming external connectivity on endpoint hqservice_couch_1 (
cd83ff569a63807e418a950fac6587d40c8220cbc580d9d11945cf6b91dbd9c0):
Error starting userland proxy: listen tcp 0.0.0.0:5984: bind: address
already in use
ERROR: Encountered errors while bringing up the project.

I had previously set it up on a virtual machine and after setting it up it
failed. I have already installed elasticserver, postgres, redis and couchdb
which has been having issues setting up. Please, how do i go about this?


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.