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

build.sh ends in error #3

Open
DrWhax opened this issue Feb 14, 2022 · 3 comments
Open

build.sh ends in error #3

DrWhax opened this issue Feb 14, 2022 · 3 comments

Comments

@DrWhax
Copy link

DrWhax commented Feb 14, 2022

Hey all,

After following the instructions to get AIVPN running. I end up with this error:

root@vpn:~/AIVPN# ./build.sh
Cleaning up
Starting building modules
Sending build context to Docker daemon  18.43kB
Step 1/6 : FROM python:slim
 ---> e4f3ae64bf20
Step 2/6 : LABEL Description="This image is used to receive AI VPN requests." Vendor="Civilsphere Project" Version="0.1" Maintainer="civilsphere@aic.fel.cvut.cz"
 ---> Using cache
 ---> 063062780c21
Step 3/6 : ADD . /code
 ---> Using cache
 ---> 42c76758196c
Step 4/6 : WORKDIR /code
 ---> Using cache
 ---> 5697ed0684a3
Step 5/6 : RUN pip install -r requirements.txt
 ---> Using cache
 ---> 6812ed574ee2
Step 6/6 : CMD ["python3", "mod_comm_recv.py"]
 ---> Using cache
 ---> b57dfd9709a6
Successfully built b57dfd9709a6
Successfully tagged aivpn_mod_comm_recv:latest
Sending build context to Docker daemon   16.9kB
Step 1/6 : FROM python:slim
 ---> e4f3ae64bf20
Step 2/6 : LABEL Description="This image is used to send AI VPN information to users." Vendor="Civilsphere Project" Version="0.1" Maintainer="civilsphere@aic.fel.cvut.cz"
 ---> Using cache
 ---> 6335c9c65815
Step 3/6 : ADD . /code
 ---> Using cache
 ---> 688f0c0141d4
Step 4/6 : WORKDIR /code
 ---> Using cache
 ---> c3d898ea9995
Step 5/6 : RUN pip install -r requirements.txt
 ---> Using cache
 ---> 8593b6f46f1d
Step 6/6 : CMD ["python3", "mod_comm_send.py"]
 ---> Using cache
 ---> c689c659a5fb
Successfully built c689c659a5fb
Successfully tagged aivpn_mod_comm_send:latest
Sending build context to Docker daemon   21.5kB
Step 1/6 : FROM python:slim
 ---> e4f3ae64bf20
Step 2/6 : LABEL Description="This image is used to manage the AI VPN." Vendor="Civilsphere Project" Version="0.1" Maintainer="civilsphere@aic.fel.cvut.cz"
 ---> Using cache
 ---> 1dc07c8d4422
Step 3/6 : ADD . /code
 ---> Using cache
 ---> 2b924eeec5e8
Step 4/6 : WORKDIR /code
 ---> Using cache
 ---> 492264ee97d3
Step 5/6 : RUN pip install -r requirements.txt
 ---> Using cache
 ---> 4e950a135a2a
Step 6/6 : CMD ["python3", "mod_manager.py"]
 ---> Using cache
 ---> 8aab28cd0c0c
Successfully built 8aab28cd0c0c
Successfully tagged aivpn_mod_manager:latest
Sending build context to Docker daemon  17.92kB
Step 1/7 : FROM kylemanna/openvpn
 ---> 3d5a3627a7f6
Step 2/7 : LABEL Description="This image is used to provide the AI VPN OpenVPN." Vendor="Civilsphere Project" Version="0.1" Maintainer="civilsphere@aic.fel.cvut.cz"
 ---> Using cache
 ---> a3007b8f5404
Step 3/7 : ADD . /code
 ---> Using cache
 ---> 44002b753399
Step 4/7 : WORKDIR /code
 ---> Using cache
 ---> 25447c84f9dd
Step 5/7 : RUN apk add --no-cache python3 py3-pip tcpdump
 ---> Using cache
 ---> 9c773ce6754f
Step 6/7 : RUN pip install -r requirements.txt
 ---> Using cache
 ---> 0823e40f729b
Step 7/7 : CMD ["python3", "mod_openvpn.py"]
 ---> Using cache
 ---> 5d3722b2f9a2
Successfully built 5d3722b2f9a2
Successfully tagged aivpn_mod_openvpn:latest
Sending build context to Docker daemon  18.43kB
Step 1/7 : FROM kylemanna/openvpn
 ---> 3d5a3627a7f6
Step 2/7 : LABEL Description="This image is used to provide the AI VPN OpenVPN." Vendor="Civilsphere Project" Version="0.1" Maintainer="civilsphere@aic.fel.cvut.cz"
 ---> Using cache
 ---> a3007b8f5404
Step 3/7 : ADD . /code
 ---> Using cache
 ---> 64f03e239959
Step 4/7 : WORKDIR /code
 ---> Using cache
 ---> 7d7ea8bd2870
Step 5/7 : RUN apk add --no-cache python3 py3-pip tcpdump
 ---> Using cache
 ---> 0a9836490334
Step 6/7 : RUN pip install -r requirements.txt
 ---> Using cache
 ---> 7d841bd2ad13
Step 7/7 : CMD ["python3", "mod_novpn.py"]
 ---> Using cache
 ---> 512dd7e09014
Successfully built 512dd7e09014
Successfully tagged aivpn_mod_novpn:latest
Sending build context to Docker daemon  20.48kB
Step 1/10 : FROM lscr.io/linuxserver/wireguard
 ---> b3eaeba05b0f
Step 2/10 : LABEL Description="This image is used to provide the AI VPN WireGuard VPN." Vendor="Civilsphere Project" Version="0.1" Maintainer="civilsphere@aic.fel.cvut.cz"
 ---> Using cache
 ---> f679b20909cb
Step 3/10 : RUN apt update && apt install -y python3 tcpdump
 ---> Using cache
 ---> 15d8c9bd8aae
Step 4/10 : RUN apt install -y python3-pip
 ---> Using cache
 ---> 986c231ebec7
Step 5/10 : ADD . /code
 ---> Using cache
 ---> 75529e90ada9
Step 6/10 : WORKDIR /code
 ---> Using cache
 ---> 4c7494d19c85
Step 7/10 : RUN cp add-peer /app/add-peer
 ---> Using cache
 ---> f2bf5e5bcfb3
Step 8/10 : RUN cp del-peer /app/del-peer
 ---> Using cache
 ---> 9daa581f541e
Step 9/10 : RUN pip3 install -r requirements.txt
 ---> Using cache
 ---> 024dd37ab404
Step 10/10 : CMD ["python3", "mod_wireguard.py"]
 ---> Using cache
 ---> a31dfda3911a
Successfully built a31dfda3911a
Successfully tagged aivpn_mod_wireguard:latest
Sending build context to Docker daemon  1.227MB
Step 1/8 : FROM python:slim
 ---> e4f3ae64bf20
Step 2/8 : LABEL Description="This image is used to generate AI VPN network traffic reports." Vendor="Civilsphere Project" Version="0.1" Maintainer="civilsphere@aic.fel.cvut.cz"
 ---> Using cache
 ---> a133cd8d6941
Step 3/8 : RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
 ---> Using cache
 ---> 76d74bcd97c7
Step 4/8 : RUN apt update && apt -yq install tcpdump tshark wkhtmltopdf
 ---> Using cache
 ---> e138a9373fb7
Step 5/8 : ADD . /code
 ---> Using cache
 ---> 0cd6032cf6b4
Step 6/8 : WORKDIR /code
 ---> Using cache
 ---> 391bd7f6893f
Step 7/8 : RUN pip install -r requirements.txt
 ---> Using cache
 ---> 4ca2c3e3844a
Step 8/8 : CMD ["python3", "mod_report.py"]
 ---> Using cache
 ---> c3364541cb60
Successfully built c3364541cb60
Successfully tagged aivpn_mod_report:latest
Sending build context to Docker daemon  30.21kB
Step 1/10 : FROM stratosphereips/slips:latest
 ---> c9253a456c72
Step 2/10 : LABEL Description="This image is used to analyze the AI VPN network traffic with Slips." Vendor="Civilsphere Project" Version="0.1" Maintainer="civilsphere@aic.fel.cvut.cz"
 ---> Running in f7599840cb7b
Removing intermediate container f7599840cb7b
 ---> 809739dbf9a7
Step 3/10 : ADD . /code
 ---> 61869332638c
Step 4/10 : RUN cd /StratosphereLinuxIPS/ && git checkout develop
 ---> Running in d4b1ff420714
/bin/sh: 1: cd: can't cd to /StratosphereLinuxIPS/
The command '/bin/sh -c cd /StratosphereLinuxIPS/ && git checkout develop' returned a non-zero code: 2
Deleted: sha256:61869332638c7e24576b463d608c5a5999dc796f7e28ffc2bc31baba8fa46e0b
Deleted: sha256:809739dbf9a731c4b4a7800888e02852e06f4b8dca18292edd3d910a07109791
Finished building modules
root@vpn:~/AIVPN#

I'm not sure what to do here?

@DrWhax
Copy link
Author

DrWhax commented Feb 14, 2022

When attempting to use docker-compose I get:

root@vpn:~/AIVPN# docker-compose -f docker-compose.yml up -d
Pulling mod_slips (aivpn_mod_slips:latest)...
ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.

Continue with the new image? [yN]y
Pulling mod_slips (aivpn_mod_slips:latest)...
ERROR: pull access denied for aivpn_mod_slips, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

@DrWhax
Copy link
Author

DrWhax commented Feb 14, 2022

I guess

RUN cd /StratosphereLinuxIPS/ && git checkout develop
needs a command beforehand to mkdir that directory.

@DrWhax
Copy link
Author

DrWhax commented Feb 14, 2022

running docker-compose _example_DOCKERHUB seems to pull pre-built builds and that starts!

After scanning the QRcode in my terminal, I don't seem to connect to the vpn endpoint.

Also not after adding: sysctl -w net.ipv4.ip_forward=1 to the host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant