true-level-nas
Cadet
- Joined
- Dec 7, 2020
- Messages
- 1
Hi,
I am having trouble updating via system proxy. Direct outbound traffic is prohibited, proxy only.
System proxy as in documentation -> https://www.ixsystems.com/documentation/truenas/11.3-U5/network.html#global-configuration "HTTP Proxy"
wget works with proxy.
How can I get "HTTP Proxy" working?
I am having trouble updating via system proxy. Direct outbound traffic is prohibited, proxy only.
System proxy as in documentation -> https://www.ixsystems.com/documentation/truenas/11.3-U5/network.html#global-configuration "HTTP Proxy"
wget works with proxy.
Code:
# freenas-update -v check
[freenasOS.Configuration:606] TryGetNetworkFile(['https://update-master.ixsystems.com/TrueNAS/TrueNAS-12.0-STABLE/LATEST'])
[urllib3.connectionpool:955] Starting new HTTPS connection (1): update-master.ixsystems.com:443
[freenasOS.Configuration:692] Unable to connect to url https://update-master.ixsystems.com/TrueNAS/TrueNAS-12.0-STABLE/LATEST: HTTPSConnectionPool(host='update-master.ixsystems.com', port=443): Max retries exceeded with url: /TrueNAS/TrueNAS-12.0-STABLE/LATEST (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x802e4db80>, 'Connection to update-master.ixsystems.com timed out. (connect timeout=10)'))
[freenasOS.Configuration:709] Unable to load ['https://update-master.ixsystems.com/TrueNAS/TrueNAS-12.0-STABLE/LATEST']: Unable to connect to url https://update-master.ixsystems.com/TrueNAS/TrueNAS-12.0-STABLE/LATEST
[freenas-update:195] Unable to connect to url https://update-master.ixsystems.com/TrueNAS/TrueNAS-12.0-STABLE/LATEST
Traceback (most recent call last):
File "/usr/local/bin/freenas-update", line 169, in DoDownload
rv = Update.DownloadUpdate(train, cache_dir, pkg_type=pkg_type, ignore_space=ignore_space)
File "/usr/local/lib/freenasOS/Update.py", line 969, in DownloadUpdate
latest_mani = conf.FindLatestManifest(train, require_signature=True)
File "/usr/local/lib/freenasOS/Configuration.py", line 1103, in FindLatestManifest
mani_file = self.TryGetNetworkFile(url="%s/%s/LATEST" % (self.UpdateServerMaster(), train),
File "/usr/local/lib/freenasOS/Configuration.py", line 710, in TryGetNetworkFile
raise url_exc
freenasOS.Exceptions.UpdateNetworkConnectionException: Unable to connect to url https://update-master.ixsystems.com/TrueNAS/TrueNAS-12.0-STABLE/LATEST
Received exception during download phase, cannot update
# wget -e use_proxy=yes -e https_proxy=$proxy https://update-master.ixsystems.com/TrueNAS/TrueNAS-12.0-STABLE/LATEST
--2020-12-07 13:27:38-- https://update-master.ixsystems.com/TrueNAS/TrueNAS-12.0-STABLE/LATEST
Resolving $proxy ($proxy)... $proxy-ip
Connecting to $proxy ($proxy)|$proxy-ip|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 1622 (1.6K) [application/octet-stream]
Saving to: ‘LATEST’
LATEST 100%[==============================>] 1.58K --.-KB/s in 0s
2020-12-07 13:27:39 (194 MB/s) - ‘LATEST’ saved [1622/1622]
How can I get "HTTP Proxy" working?