lisuml
(Michał Lisowski)
November 12, 2024, 5:53pm
1
I'm getting the following error when trying to add the elastic repository to my Debian 12 box:
E: Failed to fetch https://artifacts.elastic.co/packages/8.x/apt/dists/stable/main/binary-amd64/Packages.bz2 File has unexpected size (117811 != 117669). Mirror sync in progress? [IP: 34.120.127.130 443]
Hashes of expected file:
- Filesize:117669 [weak]
- SHA512:382b63d02ae6991d53a81e3a4260f2bbc9abdfb3022c2662ad6950e899933ca4c83e11c92c8555a903a154f40cb0d4201b999e3e5dd733bebba801c8e5ceca54
- SHA256:e2c59e578658e779a6cae02e2e698e39b754cba2a0ea2ce94837a58881dc25bb
- SHA1:504b773148f9f827ac05ecf312487f4a34d94a58 [weak]
- MD5Sum:e43cfb10d5acb144ffb2d04bcde11e6b [weak]
Release file created at: Thu, 07 Nov 2024 15:03:29 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
Seems like the repo is out of sync or corrupted?
2 Likes
same thing here. i tried both AMD and ARM64 packages and both setups failed with very similar error messages. This was on Ubuntu 22.04.
1 Like
Same problem over here
Err:14 https://artifacts.elastic.co/packages/oss-8.x/apt stable/main amd64 Packages
File has unexpected size (59749 != 59725). Mirror sync in progress? [IP: 34.120.127.130 443]
Hashes of expected file:
- Filesize:59725 [weak]
- SHA512:60c97f563f477652b56e18dda27ca24c92a6616a71700ac734f98852276d5eff43d4185971c388f41e26ed22afa126631f7698b2bb8c5278d7a8678844ee654c
- SHA256:3188bd38f6eaefb3cf1e03777deccf28903ffc6181b8c1bbcb36849b86ec9eba
- SHA1:72b870850a886b17e374191dc8760a8c80b5090d [weak]
- MD5Sum:1d52564ed87c687f55f3dc196a0c4bd9 [weak]
Release file created at: Thu, 07 Nov 2024 12:34:10 +0000
Fetched 7511 B in 2s (4752 B/s)
Reading package lists... Done
E: Failed to fetch https://artifacts.elastic.co/packages/oss-8.x/apt/dists/stable/main/binary-amd64/Packages.bz2 File has unexpected size (59749 != 59725). Mirror sync in progress? [IP: 34.120.127.130 443]
Hashes of expected file:
- Filesize:59725 [weak]
- SHA512:60c97f563f477652b56e18dda27ca24c92a6616a71700ac734f98852276d5eff43d4185971c388f41e26ed22afa126631f7698b2bb8c5278d7a8678844ee654c
- SHA256:3188bd38f6eaefb3cf1e03777deccf28903ffc6181b8c1bbcb36849b86ec9eba
- SHA1:72b870850a886b17e374191dc8760a8c80b5090d [weak]
- MD5Sum:1d52564ed87c687f55f3dc196a0c4bd9 [weak]
Release file created at: Thu, 07 Nov 2024 12:34:10 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
Pinging random elastic team member:
@aaron-nimocks
I do not know if you are the correct person but hoping to get someone from Elastic to investigate
ATecha
(Andrew)
November 12, 2024, 8:31pm
5
Same here on RHEL 9.
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync, system-upgrade
DNF version: 4.14.0
cachedir: /var/cache/dnf
Unknown configuration option: autorefresh = 1 in /etc/yum.repos.d/elasticsearch.repo
User-Agent: constructed: 'libdnf (Red Hat Enterprise Linux 9.5; generic; Linux.x86_64)'
repo: downloading from remote: elasticsearch
error: Downloading successful, but checksum doesn't match. Calculated: 21dfd9d600a8253c738fc8ad80536e89c5bcab233e746026d4c9cff30c5da5b6(sha256) Expected: ca826af1ed4f54d9a0e85d394cbb13360040011945b2a13145dd4ec087f08111(sha256) (https://artifacts.elastic.co/packages/8.x/yum/repodata/primary.xml.gz).
error: Downloading successful, but checksum doesn't match. Calculated: 21dfd9d600a8253c738fc8ad80536e89c5bcab233e746026d4c9cff30c5da5b6(sha256) Expected: ca826af1ed4f54d9a0e85d394cbb13360040011945b2a13145dd4ec087f08111(sha256) (https://artifacts.elastic.co/packages/8.x/yum/repodata/primary.xml.gz).
error: Downloading successful, but checksum doesn't match. Calculated: 21dfd9d600a8253c738fc8ad80536e89c5bcab233e746026d4c9cff30c5da5b6(sha256) Expected: ca826af1ed4f54d9a0e85d394cbb13360040011945b2a13145dd4ec087f08111(sha256) (https://artifacts.elastic.co/packages/8.x/yum/repodata/primary.xml.gz).
error: Downloading successful, but checksum doesn't match. Calculated: 21dfd9d600a8253c738fc8ad80536e89c5bcab233e746026d4c9cff30c5da5b6(sha256) Expected: ca826af1ed4f54d9a0e85d394cbb13360040011945b2a13145dd4ec087f08111(sha256) (https://artifacts.elastic.co/packages/8.x/yum/repodata/primary.xml.gz).
error: Downloading successful, but checksum doesn't match. Calculated: 69d448058e41455c8d0c6ce4f1ae0ddc2831e5430ca1510c260e4d0371cd3613(sha256) Expected: c8c534765204ca0c50696aba7c949d7ea411b21666b9b7b227e8382f63624692(sha256) (https://artifacts.elastic.co/packages/8.x/yum/repodata/filelists.xml.gz).
Elasticsearch repository for 8.x packages 48 MB/s | 75 MB 00:01
Errors during downloading metadata for repository 'elasticsearch':
- Downloading successful, but checksum doesn't match. Calculated: 21dfd9d600a8253c738fc8ad80536e89c5bcab233e746026d4c9cff30c5da5b6(sha256) Expected: ca826af1ed4f54d9a0e85d394cbb13360040011945b2a13145dd4ec087f08111(sha256)
- Downloading successful, but checksum doesn't match. Calculated: 69d448058e41455c8d0c6ce4f1ae0ddc2831e5430ca1510c260e4d0371cd3613(sha256) Expected: c8c534765204ca0c50696aba7c949d7ea411b21666b9b7b227e8382f63624692(sha256)
Error: Failed to download metadata for repo 'elasticsearch': Yum repo downloading error: Downloading error(s): repodata/filelists.xml.gz - Cannot download, all mirrors were already tried without success; repodata/primary.xml.gz - Cannot download, all mirrors were already tried without success
Appears to be a repeat of these previous similar issues:
https://discuss.elastic.co/t/apt-repository-failing/284915/5
https://discuss.elastic.co/t/elasticsearch-7-apt-repository-hash-sum-mismatch/226365/9
https://discuss.elastic.co/t/debian-7-x-repository-broken/284906/4
Hi!
I have problem with using 2.x debian repository on i386 architecture. Looks like it returns empty package list:
cat /var/lib/apt/lists/packages.elastic.co_elasticsearch_2.x_debian_dists_stable_Release Codename: stable Date: Wed, 16 Dec 2015 17:24:27 UTC Architectures: amd64 i386 Components: main Suite: MD5Sum: 3ce09de3b1f2045c67f52bfb05e3faae 6495 main/binary-amd64/Packages 7d32d1553a5ebde232302c00bf19d965 1281 main/binary-amd64/Packages.gz d41d8cd98f00b204e9800998ecf8427e 0 main/binary-i3…
In the case of 2 of those old threads, there was an issue with Elastic's infra. Likely the same case here.
curl -s 'https://artifacts.elastic.co/packages/8.x/apt/dists/stable/InRelease' | grep main/binary-amd64/Packages.bz2
e43cfb10d5acb144ffb2d04bcde11e6b 117669 main/binary-amd64/Packages.bz2
504b773148f9f827ac05ecf312487f4a34d94a58 117669 main/binary-amd64/Packages.bz2
e2c59e578658e779a6cae02e2e698e39b754cba2a0ea2ce94837a58881dc25bb 117669 main/binary-amd64/Packages.bz2
382b63d02ae6991d53a81e3a4260f2bbc9abdfb3022c2662ad6950e899933ca4c83e11c92c8555a903a154f40cb0d4201b999e3e5dd733bebba801c8e5ceca54 117669 main/binary-amd64/Packages.bz2
curl -s https://artifacts.elastic.co/packages/8.x/apt/dists/stable/main/binary-amd64/Packages.bz2 | wc -c
117811
The release manifest and Packages.bz2 files should have been updated in tandem, but they were not.
Looks like cache hasn't been refreshed:
curl -s https://artifacts.elastic.co/packages/8.x/apt/dists/stable/main/binary-amd64/Packages.bz2?qsdfqsdfqsdf | wc -c
117669
Thanks for the report folks, we're aware of it, you can follow/get updates on our status page: https://status.elastic.co/
3 Likes
This error occurred today in one of my environments, specifically in Filebeat. Is it possible to disable this behavior of connecting to the Elastic repo
?
Same with Fedora
#14 [16/19] RUN rpm --import https://packages.elastic.co/GPG-KEY-elasticsea...
#14 3.890 Elastic repository for 8.x packages 26 MB/s | 75 MB 00:02
#14 3.890 Errors during downloading metadata for repository 'elastic-8.x':
#14 3.890 - Downloading successful, but checksum doesn't match. Calculated: 69d448058e41455c8d0c6ce4f1ae0ddc2831e5430ca1510c260e4d0371cd3613(sha256) Expected: c8c534765204ca0c50696aba7c949d7ea411b21666b9b7b227e8382f63624692(sha256)
#14 3.890 - Downloading successful, but checksum doesn't match. Calculated: 21dfd9d600a8253c738fc8ad80536e89c5bcab233e746026d4c9cff30c5da5b6(sha256) Expected: ca826af1ed4f54d9a0e85d394cbb13360040011945b2a13145dd4ec087f08111(sha256)
#14 3.901 Error: Failed to download metadata for repo 'elastic-8.x': Yum repo downloading error: Downloading error(s): repodata/filelists.xml.gz - Cannot download, all mirrors were already tried without success; repodata/primary.xml.gz - Cannot download, all mirrors were already tried without success
It will depend on which feature was connecting to the Elastic repo.
Could you share more details? The steps you executed and logs?
If my timezone calculations are correct, the incident was resolved after your posts, @Ruben_Andres_Goldsch and @Rodrigo_Bermudez .
Could you try again and check if you are still experiencing the issue?
Tiago the problem was resolved. Its appear in filebeat installation step so i think we cant do anything diferent to resolve this kind of issue. E: Failed to fetch
https://artifacts.elastic.co/packages/8.x/apt/dists/stable/main/binary-amd64/Packages.bz2
File has unexpected size (117811 != 117669). Mirror sync in progress
I confirm that the problem was resolved! Thanks a lot!
Yeah, it seems there is nothing we can do if it fails while installing Filebeat from the package manager.
cstisa
(CSTI SA)
November 21, 2024, 10:15am
18
Hello all,
It seems that the issue is still present :
Debian 12 bookworm
Err:5 https://artifacts.elastic.co/packages/8.x/apt stable/main amd64 Packages
File has unexpected size (119885 != 122218). Mirror sync in progress? [IP: 34.120.127.130 443]
Hashes of expected file:
- Filesize:122218 [weak]
- SHA512:3ada5a278e1a6c2437aab34b2c474d2225e1635c87b5b8f5537d4093236ca72890477d86747339b151d04da9195534190bc68fee9ac48002b76deca26bdf7cd2
- SHA256:6c5cfa66f3f6829eac665c83ba2a93928b5312a97504e6d3a1f0fc3c72ed91eb
- SHA1:02a784e044162099553aed3f316b2d68daa2c7ed [weak]
- MD5Sum:65e8fa0da5272808511a9790baa5ac1e [weak]
Release file created at: Tue, 19 Nov 2024 23:00:47 +0000
E: Failed to fetch https://artifacts.elastic.co/packages/8.x/apt/dists/stable/main/binary-amd64/Packages.bz2 File has unexpected size (119885 != 122218). Mirror sync in progress? [IP: 34.120.127.130 443]
Hashes of expected file:
- Filesize:122218 [weak]
- SHA512:3ada5a278e1a6c2437aab34b2c474d2225e1635c87b5b8f5537d4093236ca72890477d86747339b151d04da9195534190bc68fee9ac48002b76deca26bdf7cd2
- SHA256:6c5cfa66f3f6829eac665c83ba2a93928b5312a97504e6d3a1f0fc3c72ed91eb
- SHA1:02a784e044162099553aed3f316b2d68daa2c7ed [weak]
- MD5Sum:65e8fa0da5272808511a9790baa5ac1e [weak]
Release file created at: Tue, 19 Nov 2024 23:00:47 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
Best Regards, Edouard Fazenda
peet
November 21, 2024, 10:20am
19
I can confirm, this happens again. It was fixed for a few days, I guess it broke again when 8.16.1 was published.
I have same issue with RPM repo on RHEL 9. All yum cache cleared but still i got:
yum install --enablerepo=elasticsearch elasticsearch
Updating Subscription Management repositories.
Elasticsearch repository for 8.x packages 22 MB/s | 77 MB 00:03
Errors during downloading metadata for repository 'elasticsearch':
- Downloading successful, but checksum doesn't match. Calculated: b0af225480d0080c686c258c836fc4fa3d29080bf203cd83ed84c4ce9bb7bf59(sha256) Expected: 695ff9285e7daab46baa61644ecc28399b4d216582d161cf676713ef21961d94(sha256)
- Downloading successful, but checksum doesn't match. Calculated: 26259c4d24b9e364daafbcf61a1540375e8730de74609e558c92e9b5384a2eef(sha256) Expected: 249e2434901dcf503ea736b88128165c8f827a16392877c8e84350c9fc8bc5fd(sha256)
Error: Failed to download metadata for repo 'elasticsearch': Yum repo downloading error: Downloading error(s): repodata/filelists.xml.gz - Cannot download, all mirrors were already tried without success; repodata/primary.xml.gz - Cannot download, all mirrors were already tried without success