django-DefectDojo icon indicating copy to clipboard operation
django-DefectDojo copied to clipboard

ERROR: Service 'nginx' failed to build : Build failed

Open tx-abhay opened this issue 3 years ago • 19 comments

ERROR: Service 'nginx' failed to build : Build failed

tx-abhay avatar Aug 01 '22 09:08 tx-abhay

@dougmorato @Juu @olafz

tx-abhay avatar Aug 02 '22 09:08 tx-abhay

Can you please explain error, and your environment?

dsever avatar Aug 02 '22 10:08 dsever

Can you please explain error, and your environment?

i am doing ./dc-up.sh mysql-rabbitmq while doing this I am getting the error of nginx server is not able o build

tx-abhay avatar Aug 02 '22 17:08 tx-abhay

What os? Can you dig into logs and see why it fails, from this single line it is not possible to conclude.

dsever avatar Aug 03 '22 12:08 dsever

Linux Ubuntu nginx server is not able to build

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? The command '/bin/sh -c apt-get -y update && apt-get -y install --no-install-recommends gcc build-essential dnsutils default-mysql-client libmariadb-dev-compat postgresql-client xmlsec1 git uuid-runtime && apt-get clean && rm -rf /var/lib/apt/lists && true' returned a non-zero code: 100 ERROR: Service 'uwsgi' failed to build : Build failed

tx-abhay avatar Aug 03 '22 13:08 tx-abhay

Can you launch https://hub.docker.com/r/curlimages/curl and test fetching of one of the repos.

dsever avatar Aug 03 '22 14:08 dsever

that is working

but I am getting error into this phase

tx-abhay avatar Aug 03 '22 14:08 tx-abhay

image

tx-abhay avatar Aug 03 '22 14:08 tx-abhay

What is your default shell, building process is broken at the beginning, when it validates version of the docker-comnpose

dsever avatar Aug 03 '22 14:08 dsever

how @dsever it's saying ERROR: Service 'uwsgi' failed to build : Build failed

tx-abhay avatar Aug 03 '22 15:08 tx-abhay

Scripts are calling additional script to check for the docker-compose version https://github.com/DefectDojo/django-DefectDojo/blob/master/dc-build.sh#L3 , do you have script, form what I see I assume it is not in place

dsever avatar Aug 03 '22 15:08 dsever

image

tx-abhay avatar Aug 03 '22 15:08 tx-abhay

./docker/docker-compose-check.sh should be there, but check permissions as well to have rx

dsever avatar Aug 03 '22 15:08 dsever

image

tx-abhay avatar Aug 03 '22 15:08 tx-abhay

Something is broken in this 3 lines, execute it one by one and echo output of each var

dsever avatar Aug 03 '22 15:08 dsever

image

tx-abhay avatar Aug 03 '22 15:08 tx-abhay

run docker-compose -v

dsever avatar Aug 03 '22 15:08 dsever

this command is working

tx-abhay avatar Aug 03 '22 16:08 tx-abhay

this command is working

But what you get?

dsever avatar Aug 03 '22 17:08 dsever