SUSE Support

Here When You Need Us

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 1 (SLES 12 SP1)
SUSE Linux Enterprise Server 12 Service Pack 2 (SLES 12 SP2)
SUSE Linux Enterprise Server 12 Service Pack 3 (SLES 12 SP3)

Situation

Executing "clientSetup4SMT.sh" or "SUSEConnect  --url <smt-server-url>" fails with :

command 'zypper --non-interactive refs SMT-<smt-server-url>' failed
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>'
Using wget returns html error page :

Credentials can be found in /etc/zypp/credentials.d/SMT-<server>
wget https://SCC_user:password@<fqdn-smt-server-name>/repo/repoindex.xml

Resolution

  1. Start the YaST proxy module

    yast proxy

    This will update the environment variables and settings in /root/.curlrc automatically.

  2. 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

Environment variables HTTP_PROXY and HTTPS_PROXY are set but SMT-server is not configured in NO_PROXY.

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

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.