In our environnment we cannot directly connect to the internet. All internet connections must go through a proxy server.
How can we specify to UrBackup server to get updates through a proxy server ?
Tried to set the http_proxy env variable in /etc/profile but i didn’t work as expected :
2016-04-21 11:54:11: ERROR: Error while downloading version info from http://update3.urbackup.org/version.txt: Couldn't resolve host name(ec=6), Could not resolve host: update3.urbackup.org
2016-04-21 11:54:20: ERROR: Error downloading server version information: Couldn't resolve host name(ec=6), Could not resolve host: update3.urbackup.org
UrBackup Server 2.0.12 on Debian 8 with BTRFS storage
Sure because DNS requests should be proxified as well !
Our internal DNS resolve only internal addresses, this is a wanted design. If a client want to access the web, the proxy is mandatory. We have no problems with wget for example, if we specify the proxy in wgetrc of course.
I’ve purchased a CBT licence this afternoon to make some tests before buying more licences.
Since the autoupdate still doesn’t work correctly behind a proxy server (even with the env http_proxy=http://myproxy.mydomain:8080, dns doesn’t resolve through proxy), i was updating the client manually from the server through a script and wget with /etc/wgetrc configured to use proxy :
Since we go to CBT, i put the server_update_location.url in /var/urbackup and add two entries in the /etc/host file in order to make the client auto-update working :
Yes, that is only for the “New server update available” messages on the status page, which I am currently not updating for 2.0.x.
UrBackup uses curl to download the files, so if it works with curl --proxy xyz http://update3.urbackup.org/UrBackupUpdate.exe -O it should work with export http_proxy=xyz; urbackupsrv run. What kind of proxy are you using?
It’s a Squid 3 proxy
curl was not installed on the server, maybe this should be installed as dependency…
I’ve installed it, it works with command line, i’ll test removing urbackup entries in hosts file and see if auto-updates works as expected.
2016-06-09 13:38:56: ERROR: Error while downloading version info from http://cbt.urbackup.com/autoupdate/<myguid>/version.txt: Couldn't resolve host name(ec=6), Could not resolve host: cbt.urbackup.com
I tested it and it seems to work. Maybe the environment variable is not set when it is started?
I have added a HTTP_PROXY variable to the command line config file (-c option /etc/default/urbackupsrv on Debian) to override/set the proxy in the latest version.
Hi,
Still not working with proxy authentication.
curl --proxy is OK.
Setting HTTP_PROXY with “http://user:pass@proxy:port” in /etc/defaut/urbackupsrv is not enough…