Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Published package has different size and hash of uploaded and added package #1126

Open
aaronegger opened this issue Nov 3, 2022 · 1 comment
Labels

Comments

@aaronegger
Copy link

Detailed Description

We have a strange issue that couldn't be resolved yet.
I uploaded a new version of a package for 3 different plattforms (armhf, arm64, amd64) and wanted to create a snapshot of it and publish this snapshot as always.

Today one of the packages behaves strange.
While the packages for arm64 and amd64 are working fine in the repository, the armhf version doesn't.
It could be uploaded. I downloaded the uploaded package and compared it with the original one.
They had the same hash.
I could add this package to the repository without any issues. Also creating a snapshot of the repo worked fine and also the publishing process of the repo did not threw any errors.

But the repo is broken since then.
Clients using the repo are recieving erros like this:
File has unexpected size (28546882 != 28539660). Mirror sync in progress? [IP: ]
Hashes of expected file:

  • SHA512:008cf9ea3a03172b1cdc4b36e3c2e51bf3a82727eee152bee383ec2dbef27663c666957739efd0a9dafac6874094f27dc9bbf438f2bd71b960dc8a1247576938
  • SHA256:602d103f21e08bea3060cd76a87e1905ca44ba519e2e2516d17d487506f856db
  • SHA1:e8bcb15b87eb102ce2c43658888b1a3da50507f2 [weak]
  • MD5Sum:da85353bb6801a2db93b374191e8a82c [weak]
  • Filesize:28539660 [weak]
    E: Failed to fetch https://xxx/repo/echion-beta/pool/main/e/echionplaycontrol/echionplaycontrol.0.14-1.linux-arm.deb File has unexpected size (28546882 != 28539660). Mirror sync in progress? [IP: ]
    Hashes of expected file:
    - SHA512:008cf9ea3a03172b1cdc4b36e3c2e51bf3a82727eee152bee383ec2dbef27663c666957739efd0a9dafac6874094f27dc9bbf438f2bd71b960dc8a1247576938
    - SHA256:602d103f21e08bea3060cd76a87e1905ca44ba519e2e2516d17d487506f856db
    - SHA1:e8bcb15b87eb102ce2c43658888b1a3da50507f2 [weak]
    - MD5Sum:da85353bb6801a2db93b374191e8a82c [weak]
    - Filesize:28539660 [weak]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I already tried deleting the package from the repository, creating a new snapshot of the repo and publish it and then redoing this with the new package version again.

But everytime the same issue occures. The packages file at server/repo/REPONAME/dists/DISTRIBUTION/main/binary-armhf/ contains the correct hashes and also the correct file size.
But the package stored at server/repo/REPONAME/pool/main/e/echionaudioplayer/ has the wrong hash and also wrong file size.

It seems that something during the process of adding the file to the repository, creating the snapshot of the repository or publishing this created snapshot makes a broken copy of the original file.

Your Environment

A debian based system on a x86 architecture.
aptly version: '1.5.0'

@randombenj randombenj added the bug label Nov 21, 2022
@rafa-martin
Copy link

I also have the same problem. I think it is a problem related to publishing from multiple sites simultaneously. Publish again to solve this issue. But it's not reliable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants