Reaction Commerce Forums

Installation Error on Ubuntu

So I’m having issues just getting Reaction installed. Brand new Ubuntu system and have no other Docker or MongoDB projects at all. Fails at step 4 (from the docs) before even getting anything running

$ make

...

18d605d67f26: Pull complete
Digest: sha256:d969194a7c4dcd817cae5dc726b1493547a3ad3f1b30f7f58857adc9ae6a4483
Status: Downloaded newer image for mongo:3.6.3
Creating reaction_mongo_1 ... error

ERROR: for reaction_mongo_1  Cannot start service mongo: driver failed programming external connectivity on endpoint reaction_mongo_1 (188ac8523c1780ae5bedde7855058cced73aa8cb1aab41c4fc0516e843a5296e): Error starting userland proxy: listen tcp 0.0.0.0:27017: bind: address already in use

ERROR: for mongo  Cannot start service mongo: driver failed programming external connectivity on endpoint reaction_mongo_1 (188ac8523c1780ae5bedde7855058cced73aa8cb1aab41c4fc0516e843a5296e): Error starting userland proxy: listen tcp 0.0.0.0:27017: bind: address already in use
ERROR: Encountered errors while bringing up the project.
Makefile:218: recipe for target 'start-reaction' failed
make: *** [start-reaction] Error 1

Versions of dependencies:

$ mongo --version
MongoDB shell version v3.6.3
git version: 9586e557d54ef70f9ca4b43c26892cd55257e1a5
OpenSSL version: OpenSSL 1.1.1  11 Sep 2018
allocator: tcmalloc
modules: none
build environment:
    distarch: x86_64
    target_arch: x86_64

$ node --version
v10.16.0

$ npm --version
6.9.0

$ docker --version
Docker version 18.09.6, build 481bc77

$ docker-compose --version
docker-compose version 1.24.0, build 0aa59064

And docker containers:

$ docker container ls
CONTAINER ID        IMAGE                             COMMAND                  CREATED             STATUS              PORTS                                                      NAMES
08e5133bbd36        oryd/hydra:v1.0.0-beta.9-alpine   "hydra serve all --d…"   20 minutes ago      Up 19 minutes       0.0.0.0:4444-4445->4444-4445/tcp, 0.0.0.0:5555->5555/tcp   reaction-hydra_hydra_1
8226ed191fe5        postgres:10.3                     "docker-entrypoint.s…"   20 minutes ago      Up 20 minutes       0.0.0.0:32768->5432/tcp  

If you have Mongo already running you may need to stop it or configure it to run on a different IP. The default setup is configured to share 27017 with your local host so that it’s easy to access the db.