A user named watchmanmonitor reported an issue where updating a Discourse instance failed with an uglifyjs process being killed, followed by a docker rebuild failure resulting in the error: System error: read parent: connection reset by peer. Despite attempting a second rebuild and rebooting the host, the issue persisted. The user confirmed that only one custom plugin was enabled and the system had sufficient disk space.
In response, sam suggested disabling custom plugins, while omfg recommended adding a specific DOCKER_FIX environment variable to the YAML configuration to work around a known Docker bug. Following sam’s advice to try the environment fix, watchmanmonitor confirmed that applying the DOCKER_FIX setting resolved the issue and the container started successfully.
~# cd /var/discourse/
root@discuss:/var/discourse# git pull
remote: Counting objects: 20, done.
remote: Total 20 (delta 14), reused 14 (delta 14), pack-reused 6
Unpacking objects: 100% (20/20), done.
From https://github.com/discourse/discourse_docker
ab7a956..8877f99 master -> origin/master
Updating ab7a956..8877f99
Fast-forward
README.md | 4 ++--
launcher | 34 +++++++++++++++++++++++++++++++---
samples/standalone.yml | 5 -----
3 files changed, 33 insertions(+), 10 deletions(-)
root@discuss:/var/discourse# ./launcher rebuild app
WARNING: We are about to start downloading the Discourse base image
This process may take anywhere between a few minutes to an hour, depending on your network speed
Please be patient
Unable to find image 'discourse/discourse:1.0.15' locally
1.0.15: Pulling from discourse/discourse
Digest: sha256:1ac1b72f327c650456140aa12631305b9d1e1293035e57acce844b7efbd6a9df
Status: Downloaded newer image for discourse/discourse:1.0.15
Ensuring discourse docker is up to date
Fetching origin
Discourse Docker is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 10 app
app
cd /pups && git pull && /pups/bin/pups --stdin
Error response from daemon: Cannot start container 8038f41f41ed597541fa87bc4afe790859cc0a656f98615bb8a27cad42741f16: [8] System error: read parent: connection reset by peer
8038f41f41ed597541fa87bc4afe790859cc0a656f98615bb8a27cad42741f16
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one
root@discuss:/var/discourse#
trying a second time also failed
Rebooting the host resulted in the same error
# ./launcher rebuild app
Ensuring discourse docker is up to date
Fetching origin
Discourse Docker is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 10 app
app
cd /pups && git pull && /pups/bin/pups --stdin
Error response from daemon: Cannot start container 4d38c4879ae2156393daeb24b4db88628f15974feade567ab7e5a89c73928d27: [8] System error: read parent: connection reset by peer
4d38c4879ae2156393daeb24b4db88628f15974feade567ab7e5a89c73928d27
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one
root@discuss:/var/discourse#
Stats from the host:
docker --version
Docker version 1.9.1, build a34a1d5