SMT - Client shows error "Valid metadata not found at specified URL"

This document (7023257) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 12
Subscription Management Tool 11
Subscription Management Tool 12

Situation

A system is successfully registered against a SMT server but when refreshing the repositories shows the error:

  [|] Valid metadata not found at specified URL(s)
  Please check if the URIs defined for this repository are pointing to a valid repository.


Zypper is not able to get the metadata file from the repository located in the SMT server, the file is missing.

Resolution

In a SMT server, Apache is used to export the repositories to the Clients, therefore in the the SMT's configuration file Apache's default path is set as the destination for the mirrored repositories.

The first thing to check is the path set for the "MirrorTo" option inside the SMT's configuration file:  /etc/smt.conf

The default value is:

  MirrorTo = /srv/www/htdocs

If for any reason this path was changed to a different location, then a symlink must be created inside the default path to point to the new destination.

Practical example and solution:

The default path was changed to point to "/smtrepos", like this:

  MirrorTo = /smtrepos

A symlink must be created inside the default path to point to the new location, but first rename the original "repo" directory:

  mv /srv/www/htdocs/repo /srv/www/htdocs/repobck

Then create the symlink:

  ln -s /smtrepos /srv/www/htdocs/repo

And finally, set the proper permissions to "/smtrepos" and all files and directories in it:

  /usr/lib/SMT/bin/changeSMTUserPermissions.sh -y --user smt

The above script will set the permission but it is highly recommended to perform a manual check up by following these rules:

  - All directories and subdirectories must have permission 755.
  - All files must have permission 644.
  - All files and directories must belong to user "smt" as Owner and "www" as Group.

Cause

The default destination path for mirror the repositories was changed in the SMT's configuration file, but the symlink in Apache's default path pointing to the new location was not created properly or missing.

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:7023257
  • Creation Date: 10-Aug-2018
  • Modified Date:03-Mar-2020
    • Subscription Management Tool

< Back to Support Search

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

SUSE Support Forums

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

Join Our Community

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.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

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

Go to Customer Center