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

error while installation #19

Closed
GuilhermeLuan opened this issue Jul 24, 2022 · 7 comments
Closed

error while installation #19

GuilhermeLuan opened this issue Jul 24, 2022 · 7 comments

Comments

@GuilhermeLuan
Copy link

i got this error whlie installation
ERROR! The requirements file '/root/ansible-easy-vpn/requirements.yml' does not exist.

@notthebee
Copy link
Owner

try running the bootstrap.sh script with sudo -E

@tomasbal
Copy link

Hi @GuilhermeLuan, I think you downloaded the script in some other folder. So an easy fix would be to move the bootstrap.sh script into the root folder.

Hope it helps! :)

@GuilhermeLuan
Copy link
Author

@notthebee @tomasbal I've tried both and doesn't work :/

@notthebee
Copy link
Owner

notthebee commented Jul 25, 2022

What provider are you running this on?
@tomasbal it wouldn't be enough to just move the bootstrap.sh script, you'll have to move the ansible-easy-vpn directory too:

cp -rv ansible-easy-vpn /root/ansible-easy-vpn

@xploz1on
Copy link

This error happens when you execute the script outside /root/
The script It is set to read from a full path. Also if you have docker already installed it will error out too. Maybe add a requirement check to prevent the script from failing. I know is meant to be ran in a fresh server as root. Would be cool to run in it in a working environment. Awesome work tho!

@notthebee
Copy link
Owner

@xploz1on Thank you! What exact error are you getting when installing on a system with Docker?

@xploz1on
Copy link

xploz1on commented Jul 25, 2022

bash: /root: Is a directory
root@daniel-hans:~# wget https://raw.githubusercontent.com/notthebee/ansible-easy-vpn/main/bootstrap.sh -O bootstrap.sh && bash bootstrap.sh
--2022-07-25 15:04:25--  https://raw.githubusercontent.com/notthebee/ansible-easy-vpn/main/bootstrap.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.109.133, 185.199.108.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8047 (7.9K) [text/plain]
Saving to: ‘bootstrap.sh’

bootstrap.sh                                    100%[=====================================================================================================>]   7.86K  --.-KB/s    in 0s      

2022-07-25 15:04:25 (71.9 MB/s) - ‘bootstrap.sh’ saved [8047/8047]

E: Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/ubuntu/ focal: /etc/apt/keyrings/docker.gpg != 
E: The list of sources could not be read.

I had a different error the first time.
So i went ahead and deleted my docker source list in /etc/source.list.d/. Deleted bootstrap and ran the script again.

With:

TASK [bunkerweb : Make sure the Bunkerweb container is created and running] ******************************************************************************************************************
fatal: [localhost]: FAILED! => changed=false 
  msg: 'Error starting container 2e44ae972ee8fea8ab58ec8167ac38604cefb93595666a7a2aa677581604a37a: 500 Server Error: Internal Server Error ("driver failed programming external connectivity on endpoint bunkerweb (17be61f324e8826ed618b62132eb57d2467d2c2f3deea74fa2126d71ec2ddedc): Bind for 0.0.0.0:443 failed: port is already allocated")'

I fully understand this is meant for a CLEAN and FRESH server.
to explain a bit more my server has docker with:

  • nginx proxy manager
  • simple web server.

I will make a new instance and run some tests. Try to add my services after the script.

EDIT:
Maybe close this issue and start a new one to add checks to the install.

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

4 participants