Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Issues when installing Besu nodes behind proxy environment #70

Open
eum602 opened this issue Feb 18, 2020 · 0 comments
Open

Issues when installing Besu nodes behind proxy environment #70

eum602 opened this issue Feb 18, 2020 · 0 comments

Comments

@eum602
Copy link
Member

eum602 commented Feb 18, 2020

When nodes are behind http proxy it is necessary to add previous steps to deal with that issue:
Configuring environment variables:

export HTTPS_PROXY="http://YOUR_PROXY_HOST:YOUR_PROXY_PORT"
export HTTP_PROXY="http://YOUR_PROXY_HOST:YOUR_PROXY_PORT"
export http_proxy="http://YOUR_PROXY_HOST:YOUR_PROXY_PORT"
export https_proxy="http://YOUR_PROXY_HOST:YOUR_PROXY_PORT"

export _JAVA_OPTIONS='-Dhttp.proxyHost=YOUR_PROXY_HOST -Dhttp.proxyPort=YOUR_PROXY_PORT -Dhttps.proxyHost=YOUR_PROXY_HOST -Dhttps.proxyPort=YOUR_PROXY_PORT'

If ansible has failed throwing docker issues then try to do this:

mkdir -p /etc/systemd/system/docker.service.d
#Create a http-proxy.conf file and add the following:
vi /etc/systemd/system/docker.service.d/http-proxy.conf
***
[Service]
Environment="HTTP_PROXY=http://192.168.56.85:3128"
***
#Similar with this file:
vi /etc/systemd/system/docker.service.d/https-proxy.conf
**
[Service]
Environment="HTTPS_PROXY=http://192.168.56.85:3128"
**

#Finally reload daemon and restart docker service:
systemctl daemon-reload
systemctl restart docker

In order to verify that docker environment variables where correctly configured run this:
systemctl show --property=Environment docker
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant