bbb-install icon indicating copy to clipboard operation
bbb-install copied to clipboard

Install script not proxy compatible part 2: libreoffice docker

Open motsiw opened this issue 3 years ago • 1 comments

Issue: If you're behind a proxy server and have no direct internet connection, bbb won't be set up correctly by bbb-install. Installation fails.

Workaround: Currently the administrator has to start bbb-install twice. First run installs neccessary packets including docker, then fails with BBB. Before the second run, I use this workaround:

nano ~/.docker/config.json Then paste your proxy config like this:

 {
"proxies":
{
"default":
{
"httpProxy": "http://myproxy:port/",
"httpsProxy": "myproxy:port",
"noProxy": "localhost,127.0.0.1,yourbbbserverip,::1,172.21.0.1,172.17.0.1"
}
}
}

Save. Then: systemctl daemon-reload systemctl restart docker.service

Now start the install script a second time. This time installation will complete.

Reason afaik: LibreOffice is built inside the docker container and therefore needs internet connection. Bbb-install should check if there is a proxy in use and create this file automatically or at least ask the administrator, and it should include noProxy for docker container IP itself (172...).

Please fix. Thanks!

motsiw avatar Feb 19 '22 11:02 motsiw

There are many things you have to consider behind a forward proxy.

Setting environment variables in /etc/profile.d/http_proxy.sh (then restart ssh session or reload environment)

Setting wget proxy in /etc/wgetrc

Setting curl proxy in ~/.curlrc

Setting docker proxy in /etc/systemd/system/docker.service.d/http-proxy.conf and ~/.docker/config.json

Setting proxy for ruby in ~/.gemrc

and for apt but the script should have an option for that. And I always run the script with sudo -E

Without setting all of these I had troubles in the past.

laserrapt0r avatar Sep 13 '22 06:09 laserrapt0r