Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Can not install / run #72

Closed
Senanfurkan opened this issue Feb 1, 2020 · 5 comments
Closed

[Bug] Can not install / run #72

Senanfurkan opened this issue Feb 1, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@Senanfurkan
Copy link

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.

@Senanfurkan Senanfurkan added the bug Something isn't working label Feb 1, 2020
@Senanfurkan
Copy link
Author

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

@c0rv4x
Copy link
Owner

c0rv4x commented Feb 3, 2020

Hey,

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

@c0rv4x
Copy link
Owner

c0rv4x commented Feb 3, 2020

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

@marcobelmonte
Copy link

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!

@Senanfurkan
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants