Page MenuHomePhabricator

Parsoid deb: Error with apt-get update
Open, Needs TriagePublic

Description

Earlier today, I uploaded a new version of the Parsoid deb file and it took several hours for the cached entries to expire, but now I see the following error:

[subbu@earth:~/work/wmf/parsoid] sudo apt-get update
...
Get:8 https://releases.wikimedia.org/debian jessie-mediawiki/main amd64 Packages [504 B]                   
Err:8 https://releases.wikimedia.org/debian jessie-mediawiki/main amd64 Packages
  File has unexpected size (505 != 504). Mirror sync in progress? [IP: 103.102.166.224 443]
  Hashes of expected file:
   - Filesize:504 [weak]
   - SHA256:153a526b3195cd0c4539a38aeeef9a710651f95059b17929b73e49252a4a7602
   - SHA1:ac87c4ebbf6bef7b779923227e9bfb87bc85d7f2 [weak]
   - MD5Sum:d155ca7ea16fac96067ea2163b49fd5f [weak]
  Release file created at: Tue, 14 Jan 2020 04:40:04 +0000
...

Not sure what the issue is and what needs fixing.

@Dzahn, @MoritzMuehlenhoff any ideas here?

Event Timeline

ssastry created this task.Jan 14 2020, 3:06 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 14 2020, 3:06 PM
Dzahn added a comment.Jan 14 2020, 6:00 PM

Did it use releases.wikimedia.org as an APT repo before the upload of the new version as well? Or did it use apt.wikimedia.org as the repo in the past?

Dzahn added a comment.Jan 14 2020, 6:04 PM

https://releases.wikimedia.org/parsoid/ does not show the 0.11 version to me, only all older versions.

But https://releases.wikimedia.org/debian/pool/main/p/parsoid/ shows only the new version..

Do you still have the command used to upload the new version?

Dzahn added a comment.Jan 14 2020, 6:11 PM

I can't reproduce the error. When i add it as a fresh repo and import the key per https://wikitech.wikimedia.org/wiki/Releases.wikimedia.org and then run apt-get update it shows no errors (504 bytes size) and then if i simulate install i would get the new version:

Inst parsoid (0.11.0all MediaWiki:8/jessie-mediawiki [all])

Dzahn added a comment.Jan 14 2020, 6:12 PM

I'll assume it was literally the "Mirror sync in progress" (103.102.166.224 is eqsin).

I'll assume it was literally the "Mirror sync in progress" (103.102.166.224 is eqsin).

Indeed. Looks like it was some transient issue. Works for me now.

https://releases.wikimedia.org/parsoid/ does not show the 0.11 version to me, only all older versions.
But https://releases.wikimedia.org/debian/pool/main/p/parsoid/ shows only the new version..
Do you still have the command used to upload the new version?

I used deb_upload as indicated in https://wikitech.wikimedia.org/wiki/Releases.wikimedia.org#Upload_a_package