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.
SUSE Linux Enterprise Server 12
Subscription Management Tool 11
Subscription Management Tool 12
[|] 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.
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.
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
For questions or concerns with the SUSE Knowledgebase please contact: email@example.com