Registering cient to SMT fails with "File './repo/repoindex.xml' not found on medium".
This document (7022593) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 12 Service Pack 2 (SLES 12 SP2)
SUSE Linux Enterprise Server 12 Service Pack 3 (SLES 12 SP3)
Situation
command 'zypper --non-interactive refs SMT-<smt-server-url>' failedUsing wget returns html error page :
Error: zypper returned (4) with 'Problem retrieving the repository index file for service 'SMT-<smt-server-url>':
File './repo/repoindex.xml' not found on medium 'http://<smt-server-url>'
Credentials can be found in /etc/zypp/credentials.d/SMT-<server>
wget https://SCC_user:password@<fqdn-smt-server-name>/repo/repoindex.xml
Resolution
- Start the YaST proxy module
yast proxy
This will update the environment variables and settings in /root/.curlrc automatically. - Alternatively edit /etc/sysconfig/proxy manually and add the host here to the NO_PROXY variable. Keep in mind, the environment variables need to be re-exported manually when continuing to use the existing shell
export no_proxy="localhost, 127.0.0.1, <smthostname>, <smtip>"
otherwise please start a new login shell to have it pick up the new settings.
Also /root/.curlrc needs to be updated to include the SMT server hostname/ip.
Cause
Same is observed using /root/.curlrc
Additional Information
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:7022593
- Creation Date: 24-Jan-2018
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com