mozilla / MozDef

DEPRECATED - MozDef: Mozilla Enterprise Defense Platform
Mozilla Public License 2.0
2.17k stars 328 forks source link

Build Error - Failed to build Docker container Error 1 #280

Closed peteydevops closed 9 years ago

peteydevops commented 9 years ago

I am very interested in contributing and building this appliance, I ran in a slit issue when attempting to build the docker container.

The command [/bin/sh -c apt-get install -q -y rabbitmq-server] returned a non-zero code: 100 make: *\ [build] Error 1

This is probably a simple fix, but I can't seem to find anything on now to remedy this. I looked at the Dockerfile and the command seems right "RUN apt-get install -q -y rabbitmq-server" Any assistance would be awesome!

Additional output:

Setting up erlang-os-mon (1:17.3-dfsg-4) ... Setting up erlang-parsetools (1:17.3-dfsg-4) ... Setting up erlang-percept (1:17.3-dfsg-4) ... Setting up erlang-ssh (1:17.3-dfsg-4) ... Setting up erlang-webtool (1:17.3-dfsg-4) ... Setting up erlang-tools (1:17.3-dfsg-4) ... Setting up erlang-nox (1:17.3-dfsg-4) ... Setting up lksctp-tools (1.0.16+dfsg-2) ... Setting up rabbitmq-server (3.3.5-1.1) ... Adding group rabbitmq' (GID 111) ... Done. Adding system userrabbitmq' (UID 107) ... Adding new user rabbitmq' (UID 107) with grouprabbitmq' ... chfn: PAM: System error adduser: `/usr/bin/chfn -f RabbitMQ messaging server rabbitmq' returned error code 1. Exiting. dpkg: error processing package rabbitmq-server (--configure): subprocess installed post-installation script returned error exit status 1 Processing triggers for systemd (215-17) ... Processing triggers for libc-bin (2.19-18) ... Errors were encountered while processing: rabbitmq-server E: Sub-process /usr/bin/dpkg returned an error code (1) 2015/06/08 17:56:00 The command [/bin/sh -c apt-get install -q -y rabbitmq-server] returned a non-zero code: 100 make: *\ [build] Error 1

peteydevops commented 9 years ago

I ended up figuring out the issue. My apologies for the bring up the issue. Seems that I had some inconsistencies with my docker image files. I got everything to work by completely uninstalling docker.io and removing all of docker files within /var/lib/docker.

After completely removing these files I re-installed docker.io on debain system. Not sure if this might help anyone else in case this issues arises again.