Fails to build docker frappe

UPDATE: Started with GitHub - frappe/frappe_docker: Docker images for production and development setups of the Frappe framework and ERPNext, but just got blank page post ‘docker-compose up -d’ command at port 8000. Though all relevant containers are running:

Later, I came across GitHub - donysukardi/docker-frappe, but fails to buid (# IMAGE_NAME=donysukardi/frappe:stable ./hooks/build .) with:

Successfully installed Click-6.7 GitPython-0.3.2rc1 MarkupSafe-1.0 bench certifi-2017.11.5 chardet-3.0.4 gitdb-0.6.4 honcho-1.0.1 idna-2.6 jinja2-2.10 psutil-5.4.2 python-crontab-2.2.8 python-dateutil-2.6.1 requests-2.18.4 semantic-version-2.6.0 six-1.11.0 smmap-0.9.0 urllib3-1.22 virtualenv-15.1.0
INFO:bench.utils:virtualenv -q env -p /usr/bin/python2
Already using interpreter /usr/bin/python2
INFO:bench.utils:./env/bin/pip -q install --upgrade pip
INFO:bench.utils:./env/bin/pip -q install wheel
INFO:bench.utils:./env/bin/pip -q install six
INFO:bench.utils:./env/bin/pip -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkit
INFO:bench.utils:npm install socket.io redis express superagent cookie babel-core less chokidar babel-cli babel-preset-es2015 babel-preset-es2016 babel-preset-es2017 babel-preset-babili
Segmentation fault
Traceback (most recent call last):
File “/usr/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/bench-repo/bench/commands/setup.py”, line 130, in setup_socketio
setup_socketio()
File “/home/frappe/bench-repo/bench/utils.py”, line 152, in setup_socketio
babel-cli babel-preset-es2015 babel-preset-es2016 babel-preset-es2017 babel-preset-babili", cwd=bench_path)
File “/home/frappe/bench-repo/bench/utils.py”, line 140, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: npm install socket.io redis express superagent cookie babel-core less chokidar babel-cli babel-preset-es2015 babel-preset-es2016 babel-preset-es2017 babel-preset-babili
The command ‘/bin/sh -c git clone -b $BENCH_BRANCH --depth 1 https://github.com/$FRAPPE_USER/bench bench-repo && sudo pip install -e /home/$FRAPPE_USER/bench-repo --no-cache-dir && mkdir -p frappe-bench && cd frappe-bench && mkdir -p apps logs sites/localhost config && bench setup env && sudo bench setup sudoers $FRAPPE_USER && bench setup socketio && bench get-app frappe GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --branch $FRAPPE_BRANCH’ returned a non-zero code: 1

Even after pulling the docker image from the same repo at dockerhub, it gives “Internal Server Error”

No clues even from this thread: ERPNext docker discussion - #48 by RWEMA_Aimable

Any clues appreciated! Thanks!

Very likely you are running on a low memory VM without any swap setup.

@rmehta The VM has 8GB of memory allocated and 4GB of Swap as of below, fyi. So low memory might not be the case.

dockerhost:~/gitrepos/frappe_docker# free -m
             total       used       free     shared    buffers     cached
Mem:          7973        761       7212         19         47        313
-/+ buffers/cache:        400       7573
Swap:         4095          0       4095

All containers are running, yet get a blank page:

dockerhost:~/gitrepos/frappe_docker# docker ps
CONTAINER ID        IMAGE                 COMMAND                  CREATED             STATUS              PORTS                                                                    NAMES
a381e3123a51        frappedocker_frappe   "/bin/bash"              20 hours ago        Up 10 minutes       0.0.0.0:6787->6787/tcp, 0.0.0.0:8000->8000/tcp, 0.0.0.0:9000->9000/tcp   frappe
81b27de35ff4        redis:alpine          "docker-entrypoint..."   20 hours ago        Up 10 minutes       6379/tcp                                                                 redis-cache
836037a84ce1        redis:alpine          "docker-entrypoint..."   20 hours ago        Up 10 minutes       6379/tcp                                                                 redis-queue
ec758d0d4631        redis:alpine          "docker-entrypoint..."   20 hours ago        Up 10 minutes       6379/tcp                                                                 redis-socketio
d97f12fff7ef        mariadb               "docker-entrypoint..."   20 hours ago        Up 10 minutes       0.0.0.0:3307->3306/tcp                                                   mariadb

Any clues?

Updated in github page:

https://github.com/frappe/frappe_docker/issues/25

@zenny did you fix it? I’m with the same issue.