Add proxy support when submitting debugs
Submitting crash repots automaticayy fails because the proxy settings are ignored. My proxy logs show that no access whatsoever happened, whereas the network monitoring shows that the FreeNAS box tried to access the internet directly and the associated packets were dropped.
This is a regression from FreeNAS 9.10.
#1 Updated by Carl-Daniel Hailfinger almost 4 years ago
[2017/06/28 07:12:56] (DEBUG) middlewared.logger.CrashReporting.report():84 - Sending a crash report...
[2017/06/28 07:12:56] (DEBUG) raven.base.Client.send_remote():635 - Sending message of length 4733 to https://sentry.ixsystems.com/api/2/store/
[2017/06/28 07:12:59] (ERROR) sentry.errors.uncaught._log_failed_submission():621 - ['URLError: <urlopen error timed out>', ' File "middlewared/main.py", line 163, in call_method', ' File "middlewared/main.py", line 580, in
call_method', ' File "middlewared/main.py", line 568, in _call', ' File "plugins/update.py", line 156, in get_trains', ' File "freenasOS/Configuration.py", line 1042, in AvailableTrains', ' File "freenasOS/Configuration.py", line 782, in TryGetNetworkFile', ' File "freenasOS/Configuration.py", line 756, in TryGetNetworkFile', ' File "urllib/request.py", line 526, in open', ' File "urllib/request.py", line 544, in _open', 'File "urllib/request.py", line 504, in _call_chain', ' File "urllib/request.py", line 1346, in http_open', ' File "urllib/request.py", line 1320, in do_open']
#6 Updated by William Grzybowski almost 4 years ago
Carl-Daniel Hailfinger wrote:
Does that mean Bug #24865 is also fixed? And is there an easy way to test the fix (manual download)?
The update not working part, yes. However they still need to fix it showing errors.
As far as test it, there isn't really a easy way. You could try the nightly image from tomorrow (but I wouldn't run that in production, and you cant downgrade from nightly to stable).
#8 Updated by Suraj Ravichandran almost 4 years ago
- Status changed from Needs Developer Review to Reviewed by Developer
- Assignee changed from Suraj Ravichandran to William Grzybowski
LGTM, but I have not tested it myself so request that QA ensures this be tested
@Release Engineer, note that this was done before the new style of Release Engg. process took effect so you would need to treat this as an old re thing.
#10 Updated by Carl-Daniel Hailfinger almost 4 years ago
I applied the patch linked in this bug manually to my FreeNAS 11.0 installation and tested it. Downloads of updates through proxy are fixed with the patch. I haven't tested whether crash reports also go through the proxy, but the middleware patch seems to have fixed at least the update case.
#15 Updated by Joe Maloney over 3 years ago
- Status changed from 47 to Ready For Release
- Needs QA changed from Yes to No
- QA Status Test Passes added
- QA Status deleted (
- Setup a proxy.
- Joined the freenas to the proxy.
- Used tcpdump | grep 3128 to catch the output.
After doing the above ticket with debug was created https://bugs.freenas.org/issues/25732.
I can verify that the ticket was created, and that the traffic went through the proxy.