RMT doesn't support Proxy Authentication
This document (000020412) is provided subject to the disclaimer at the end of this document.
Environment
Repository Mirroring Tool (RMT)
Situation
From the /var/log/YaST2/y2log file:
[Ruby] yast/wfm.rb:272 Client /usr/share/YaST2/clients/rmt.rb failed with '407 "Proxy Authentication Required"' (Net::HTTPServerException).
Backtrace:
/usr/lib64/ruby/2.5.0/net/http/response.rb:122:in `error!'
/usr/lib64/ruby/2.5.0/net/http/response.rb:131:in `value'
/usr/lib64/ruby/2.5.0/net/http.rb:958:in `connect'
/usr/lib64/ruby/2.5.0/net/http.rb:920:in `do_start'
/usr/lib64/ruby/2.5.0/net/http.rb:909:in `start'
/usr/lib64/ruby/2.5.0/net/http.rb:609:in `start'
/usr/share/YaST2/lib/rmt/wizard_scc_page.rb:133:in `scc_credentials_valid?'
/usr/share/YaST2/lib/rmt/wizard_scc_page.rb:99:in `next_handler'
/usr/share/YaST2/lib/ui/event_dispatcher.rb:47:in `public_send'
/usr/share/YaST2/lib/ui/event_dispatcher.rb:47:in `block in event_loop'
/usr/share/YaST2/lib/ui/event_dispatcher.rb:43:in `loop'
/usr/share/YaST2/lib/ui/event_dispatcher.rb:43:in `event_loop'
/usr/share/YaST2/lib/rmt/wizard_scc_page.rb:113:in `run'
/usr/share/YaST2/lib/rmt/wizard.rb:50:in `block in run'
/usr/lib64/ruby/vendor_ruby/2.5.0/yast/builtins.rb:546:in `eval'
/usr/share/YaST2/modules/Sequencer.rb:249:in `WS_run'
/usr/share/YaST2/modules/Sequencer.rb:320:in `block in Run'
/usr/share/YaST2/modules/Sequencer.rb:312:in `loop'
/usr/share/YaST2/modules/Sequencer.rb:312:in `Run'
/usr/share/YaST2/lib/rmt/wizard.rb:72:in `run'
/usr/share/YaST2/clients/rmt.rb:21:in `<top (required)>'
/usr/lib64/ruby/vendor_ruby/2.5.0/yast/wfm.rb:346:in `eval'
/usr/lib64/ruby/vendor_ruby/2.5.0/yast/wfm.rb:346:in `run_client'
/usr/lib64/ruby/vendor_ruby/2.5.0/yast/wfm.rb:207:in `call_builtin'
/usr/lib64/ruby/vendor_ruby/2.5.0/yast/wfm.rb:207:in `call_builtin_wrapper'
/usr/lib64/ruby/vendor_ruby/2.5.0/yast/wfm.rb:196:in `CallFunction'
/usr/lib/YaST2/bin/y2start:60:in `<main>'
Resolution
HTTP_PROXY=http://USERNAME:PASSWORD@PROXY-IP/
If TID 7006845 was used to configure the proxy then you will need to also adjust or remove the lowercase http_proxy and https_proxy environment variables.
Cause
https://github.com/yast/yast-rmt/blob/master/src/lib/rmt/wizard_scc_page.rb#L133
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000020412
- Creation Date: 11-Oct-2021
- Modified Date:11-Oct-2021
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com