SUSE Support

Here When You Need Us

zypper fails with "Valid metadata not found at specified URL" errors

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

Environment

SUSE Linux Enterprise Server 12 Service Pack 1 (SLES 12 SP1)

Situation

Attempting to run "zypper ref" or "zypper lu" etc. suddenly fails with the following errors for all repositories:

:~ # zypper ref
Retrieving repository 'SLES12-SP1-Pool' metadata ..............................................................................................................................................................................................[error]
Repository 'SLES12-SP1-Pool' is invalid.
[SUSE_Linux_Enterprise_Server_12_SP1_x86_64:SLES12-SP1-Pool|https://updates.suse.com/SUSE/Products/SLE-SERVER/12-SP1/x86_64/product?...xxxx...] Valid metadata not found at specified URL


Resolution

When btrfs quotas are enabled make sure any specified quotas, specifically also any set for /var/tmp are not being exceeded.

Cause

If the quota is exceeded, zypper will fail to create temporary files in /var/tmp, the following errors will be logged in /var/log/zypper.log:

2016-03-17 15:14:38 <3> test_server(11674) [zypp] TmpPath.cc(TmpFile):208 Cant create '/var/tmp/TmpFile.79sWpI' Disk quota exceeded

Additional Information

For more information on managing btrfs quotas see the SUSE Linux Enterprise Server documentation, below are some basic examples to check, increase or disable quotas:

Check existing quotas for root: sudo btrfs qgroup show -r /
Set or increase the limit for /var/tmp: sudo btrfs qgroup limit 8G /var/tmp
Set quota to null for /var/tmp: sudo btrfs qgroup limit 0 /var/tmp
Disable quotas completely for root: sudo btrfs quota disable /

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:7017376
  • Creation Date: 17-Mar-2016
  • 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.