c0rv4x/project-black

[Bug] Can not install / run

Closed this issue · 5 comments

Describe the bug
After successfully run all the commands in the README, I run the docker-compose up and face with the error below

To Reproduce
Steps to reproduce the behavior:

  1. run the command docker-compose up and see the error

Expected behavior
It should be working. But It seems it uses a repo from ppa:jonathonf/python-3.6 and it is blocked by the author.

Err:4 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 Packages 403 Forbidden

W: The repository 'http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial Release' does not have a Release file.
E: Failed to fetch http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu/dists/xenial/main/binary-amd64/Packages  403  Forbidden
E: Some index files failed to download. They have been ignored, or old ones used instead

Full Log

Building black_masscan
Step 1/12 : FROM ubuntu:16.04
 ---> 96da9143fb18
Step 2/12 : LABEL Name=masscan_black Version=1.0.0
 ---> Using cache
 ---> a4488e95e2e1
Step 3/12 : RUN apt-get update
 ---> Using cache
 ---> 5ae0803de15a
Step 4/12 : RUN apt-get install -y software-properties-common
 ---> Using cache
 ---> e62ef5ccad82
Step 5/12 : RUN add-apt-repository ppa:jonathonf/python-3.6
 ---> Using cache
 ---> fcec35c54525
Step 6/12 : RUN apt-get update
 ---> Running in 3a6b6a4b09fc
Ign:1 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Ign:3 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial Release
Ign:4 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 Packages
Ign:5 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main all Packages
Hit:6 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:7 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Ign:4 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 Packages
Ign:5 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main all Packages
Ign:4 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 Packages
Ign:5 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main all Packages
Ign:4 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 Packages
Ign:5 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main all Packages
Ign:4 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 Packages
Ign:5 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main all Packages
Err:4 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 Packages
  403  Forbidden
Ign:5 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main all Packages
Fetched 325 kB in 11s (29.3 kB/s)
Reading package lists...
W: The repository 'http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial Release' does not have a Release file.
E: Failed to fetch http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu/dists/xenial/main/binary-amd64/Packages  403  Forbidden
E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR: Service 'black_masscan' failed to build: The command '/bin/sh -c apt-get update' returned a non-zero code: 100

Additional context
I think dependencies should be renewed.

Hello,

I changed .conf files manually by looking your comments. This time, it gives error at this step;

Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.11.0-3+deb9u5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
# github.com/OWASP/Amass/graph/db
../Amass/graph/db/cayley.go:614:26: not enough arguments in call to p.BuildIterator
	have ()
	want (context.Context)
../Amass/graph/db/cayley.go:614:37: not enough arguments in call to p.BuildIterator().Optimize
	have ()
	want (context.Context)
../Amass/graph/db/cayley.go:615:10: it.Close undefined (type iterator.Shape has no field or method Close)
../Amass/graph/db/cayley.go:618:8: it.Next undefined (type iterator.Shape has no field or method Next)
../Amass/graph/db/cayley.go:619:14: it.Result undefined (type iterator.Shape has no field or method Result)
../Amass/graph/db/cayley.go:629:26: not enough arguments in call to p.BuildIterator
	have ()
	want (context.Context)
../Amass/graph/db/cayley.go:629:37: not enough arguments in call to p.BuildIterator().Optimize
	have ()
	want (context.Context)
../Amass/graph/db/cayley.go:630:10: it.Close undefined (type iterator.Shape has no field or method Close)
../Amass/graph/db/cayley.go:633:8: it.Next undefined (type iterator.Shape has no field or method Next)
../Amass/graph/db/cayley.go:641:26: not enough arguments in call to p.BuildIterator
	have ()
	want (context.Context)
../Amass/graph/db/cayley.go:641:26: too many errors
ERROR: Service 'black_amass' failed to build: The command '/bin/sh -c apt update && apt install -y git && go get -f -u github.com/OWASP/Amass/...' returned a non-zero code: 2

Hey,

Thanks for creating the issue. I will have a look at it

Can you replace docker/amass.yml with this?

FROM golang:1.13-alpine3.10 as build
RUN apk --no-cache add git
RUN go get github.com/OWASP/Amass; exit 0
ENV GO111MODULE on
WORKDIR /go/src/github.com/OWASP/Amass
RUN go install ./...


# Build python worker for amass
FROM python:3.6
LABEL Name=amass_black Version=1.0.0

COPY --from=build /go/bin/amass /bin/amass

RUN apt-get update
RUN apt-get install -y software-properties-common
RUN apt-get update

RUN apt install -y \
    build-essential

RUN python3.6 -m pip install --upgrade pip

WORKDIR /app
ADD . /app

RUN python3.6 -m pip install -r requirements.txt

CMD ["python3.6", "spawn_worker.py", "amass", "--config", "/app/config/config_docker.yml"]

seems to be working for me

Hi, I'm getting the same error as the original one posted by the creator of this issue. I changed the amass.yml to reflect the changes posted above but I still get the following error:

image

It appears that the PPA is private and from reading the overview it looks like a protest against companies that abuse the GPL is in place. Please let me know the preferred way to donate to your cause and have it tied to my github account since I don't have launchpad account.

Thanks in advance!

@marcobelmonte Hi ! You should change every .yml file inside of the docker folder and replace the new PPA instead of private one.