core icon indicating copy to clipboard operation
core copied to clipboard

.NET Core Linux package feeds (RPM and Debian packages) have expected outages when any package is pushed to them

Open dagood opened this issue 6 years ago • 16 comments

The Linux package repositories service has a temporary outage whenever packages are pushed to the feed. It depends on how fast syncing can occur, which includes signing the repo data.

  • Debian packages: up to 30 minutes is expected

    • Example error message: E: Failed to fetch https://packages.microsoft.com/debian/9/prod/dists/stretch/main/binary-amd64/Packages.bz2 File has unexpected size (72896 != 72828). Mirror sync in progress? [IP: ...]
  • RPM packages: up to 2 hours is expected

    • Example error message: Signature verification failed for file 'repomd.xml' from repository 'packages-microsoft-com-prod'.

If you hit this issue and it doesn't resolve itself after the expected time has passed, please file an issue in this repo with the error message and the distro/version you're using.

There unfortunately isn't any status page that gets updated when outages occur.


We are tracking adding this known issue to the docs for more visibility: https://github.com/dotnet/docs/issues/16670.

We are trying to work with the Linux package repository team to improve quality of the service. We (.NET Core) and other Microsoft teams depend on this common infrastructure to make our Linux packages available.

I'm planning to leave this issue open to track progress working with the Linux package repository team, and close instances of the problem as a duplicate of this issue.

/cc @dleeapho @leecow @NikolaMilosavljevic @MichaelSimons

dagood avatar Jan 21 '20 19:01 dagood

@dagood Do you know what it is in particular about .net core that triggers thsi with these package managers? I've never seen this with a single other package.

We are trying to work with the Linux package repository team to improve quality of the service.

is there an ongoing thread somewhere you can point us to to the communication you're having?

CyrusNajmabadi avatar Jan 25 '20 00:01 CyrusNajmabadi

It's all about https://packages.microsoft.com/. (VSCode and PowerShell use it too, for example.) We don't understand and don't yet have transparency into how the service works and why.

The Microsoft linux package repository team has no public presence, so unfortunately there's nothing I can point to. We're going to post info here when we have something to share.

dagood avatar Jan 25 '20 00:01 dagood

We don't understand and don't yet have transparency into how the service works and why.

It's very frustrating given the downstream effects that can last hours. Note that this is not a new phenomenon.

CyrusNajmabadi avatar Jan 25 '20 00:01 CyrusNajmabadi

The Microsoft linux packaging team should look into other packages distributed via apt because I’ve never seen any other package behave this way. Not even the more actively released packages.

SidShaytay avatar Jan 25 '20 05:01 SidShaytay

Hey folks,

We're engaging with the packages.microsoft.com owners (face to face meeting next Thurs.) so that they clearly understand the issues and pain we're encountering. After that discussion we'll have a better understanding of their current service level definitions and roadmap to getting that to an acceptable level. I will update this issue after the meeting.

leecow avatar Jan 29 '20 05:01 leecow

Hi @leecow do you have an update here? I've faced issues with this yesterday afternoon and this morning.

Thanks in advance

m17kea avatar Feb 17 '20 11:02 m17kea

Hey @armitagemderivitec, if you're still hitting problems please file an issue with some details. We did meet with the team that owns the service on Feb 6th and we'll post an update as soon as we can, but update or not, we do still rely on everyone here telling us about problems so we can pass them along.

dagood avatar Feb 17 '20 15:02 dagood

Hey folks,

As @dagood mentions, we met with the team to understand their current status, goals, and timelines for improving reliability of the service. They have a maintenance rollout occurring today which includes some reliability enhancements. We'll keep a close eye on things over the next day or so to see if we can determine performance increases and your input on reliability issues will be an important data point.

We expressed that repo reliability was the top priority to which they readily agreed. They are working on an overall roadmap for larger work which will span a bit of time and we'll share as much as we can as soon as we see the planning info.

leecow avatar Feb 19 '20 19:02 leecow

Is there a technical write up anywhere discussing what you guys are doing so differently from others that this was/is a problem? Doesn’t have to be a white paper just a couple of sentences so everyone (including your customers) learns from this experience.

SidShaytay avatar Feb 20 '20 16:02 SidShaytay

Hello! Have problem update msodbcsql17 on debian 8 Gitlab CI container.

We have script for install odbc

#!/usr/bin/env bash
export DEBIAN_FRONTEND="noninteractive"
apt-get --yes --force-yes install apt-transport-https
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -

#Debian 8
curl https://packages.microsoft.com/config/debian/8/prod.list > /etc/apt/sources.list.d/mssql-release.list

apt-get update
ACCEPT_EULA=Y apt-get -y install msodbcsql17 unixodbc-dev
odbcinst -i -s -f /root/r12_dsn.ini -l

And error on apt-get update:

Hit:1 http://deb.debian.org/debian buster InRelease
 Hit:2 http://security.debian.org/debian-security buster/updates InRelease
 Hit:3 http://deb.debian.org/debian buster-updates InRelease
 Get:4 https://packages.microsoft.com/debian/8/prod jessie InRelease [4003 B]
 Get:5 https://packages.microsoft.com/debian/8/prod jessie/main amd64 Packages [34.5 kB]
 Err:5 https://packages.microsoft.com/debian/8/prod jessie/main amd64 Packages
   File has unexpected size (34548 != 34456). Mirror sync in progress? [IP: 13.80.99.124 443]
   Hashes of expected file:
    - Filesize:34456 [weak]
    - SHA512:877b798a82c0a815f42f90b394aa6e8db0f161acc6f0d1a2b99e268948c906c236060ba441d3b0f55ac75ae18b56f9b184ac97ec987969ad5cb4a99658f0e53a
    - SHA256:2cacae17b8aa804365ca83e8dbe4f6eaccd104bde2fb9a895b70853cf40f0abc
    - SHA1:6a7a8a19e3e26af5337276d823886b5159e27f50 [weak]
    - MD5Sum:29661b2dcea3f10d72e84d9b99d22c5e [weak]
   Release file created at: Thu, 30 Apr 2020 19:22:17 +0000
 Fetched 4003 B in 1s (4614 B/s)
 Reading package lists...
 E: Failed to fetch https://packages.microsoft.com/debian/8/prod/dists/jessie/main/binary-amd64/Packages.bz2  File has unexpected size (34548 != 34456). Mirror sync in progress? [IP: 13.80.99.124 443]
    Hashes of expected file:
     - Filesize:34456 [weak]
     - SHA512:877b798a82c0a815f42f90b394aa6e8db0f161acc6f0d1a2b99e268948c906c236060ba441d3b0f55ac75ae18b56f9b184ac97ec987969ad5cb4a99658f0e53a
     - SHA256:2cacae17b8aa804365ca83e8dbe4f6eaccd104bde2fb9a895b70853cf40f0abc
     - SHA1:6a7a8a19e3e26af5337276d823886b5159e27f50 [weak]
     - MD5Sum:29661b2dcea3f10d72e84d9b99d22c5e [weak]
    Release file created at: Thu, 30 Apr 2020 19:22:17 +0000
 E: Some index files failed to download. They have been ignored, or old ones used instead.

Sadbot avatar Jun 17 '20 08:06 Sadbot

@Sadbot thanks for the report, I've confirmed it still repros for me, when installing .NET Core from that feed. (We don't have context on msodbcsql17 and wouldn't be able to help with issues with that package specifically. In the future I recommend looking for support somewhere closer to where msodbcsql17 is documented.) I've opened https://github.com/dotnet/core/issues/4843 to track the feed outage.

dagood avatar Jun 17 '20 14:06 dagood

I'm currently experiencing this problem. Should I raise another bug? Is there a work around?

mattmelton avatar Jun 24 '20 10:06 mattmelton

I'm also having this problem now.

wcsanders1 avatar Jun 24 '20 11:06 wcsanders1

Same here

kstarzyk avatar Jun 24 '20 11:06 kstarzyk

Getting this error right now:

"Failed to update apt cache: E:Failed to fetch https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod/dists/xenial/main/binary-amd64/Packages Writing more data than expected (792466 > 791391), E:Some index files failed to download. They have been ignored, or old ones used instead."

Is there a better way to report this issues other than here?

rnsc avatar Jun 24 '20 12:06 rnsc

Should I raise another bug? Is there a work around?

Yep, it looks like someone else has done this: https://github.com/dotnet/core/issues/4864. This corresponds to this bit of the description:

If you hit this issue and it doesn't resolve itself after the expected time has passed, please file an issue in this repo with the error message and the distro/version you're using.

If a workaround is found it'll be posted in the tracking issue https://github.com/dotnet/core/issues/4864.

Is there a better way to report this issues other than here?

I really wish there were. Unfortunately the team responsible for these Linux package repos doesn't have a public support method and we need to do our best to be in the middle.

dagood avatar Jun 24 '20 12:06 dagood