Bug 263021 - net-mgmt/prometheus2 checksum error (2022Q2)
Summary: net-mgmt/prometheus2 checksum error (2022Q2)
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-02 23:23 UTC by rainer
Modified: 2022-04-10 15:31 UTC (History)
3 users (show)

See Also:
dor.bsd: maintainer-feedback+


Attachments
Complete make fetch log (78.27 KB, text/plain)
2022-04-07 07:50 UTC, Fernando Apesteguía
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description rainer 2022-04-02 23:23:55 UTC
Only one file:


=> SHA256 Checksum mismatch for containerd-containerd-v1.5.7_GH0.tar.gz.



rest seems to be ok (for now).
Comment 1 Fernando Apesteguía freebsd_committer freebsd_triage 2022-04-07 07:50:36 UTC
Created attachment 233014 [details]
Complete make fetch log
Comment 2 Fernando Apesteguía freebsd_committer freebsd_triage 2022-04-07 07:51:38 UTC
I can not reproduce this on a freshly updated 2022Q2. I attached the complete make sum log.

The relevant part:

=> containerd-containerd-v1.5.7_GH0.tar.gz doesn't seem to exist in /data/fernape_data/FreeBSD-repos/ports/distfiles/. 
=> Attempting to fetch https://codeload.github.com/containerd/containerd/tar.gz/v1.5.7?dummy=/containerd-containerd-v1.5.7_GH0.tar.gz
fetch: https://codeload.github.com/containerd/containerd/tar.gz/v1.5.7?dummy=/containerd-containerd-v1.5.7_GH0.tar.gz: size unknown                                                                                                                                            
fetch: https://codeload.github.com/containerd/containerd/tar.gz/v1.5.7?dummy=/containerd-containerd-v1.5.7_GH0.tar.gz: size of remote file is not known
containerd-containerd-v1.5.7_GH0.tar.gz               7533 kB 5800 kBps    01s
Comment 3 Fernando Apesteguía freebsd_committer freebsd_triage 2022-04-07 07:52:29 UTC
Also there is no record of this problem in pkg-fallout:

https://docs.freebsd.org/mail/current/freebsd-pkg-fallout.html
Comment 4 rainer 2022-04-07 08:09:04 UTC
I will try again.
Comment 5 Hiroo Ono 2022-04-07 22:42:04 UTC
I have the same problem. Retried several times, changing days.
From poudriere's log:

=> containerd-containerd-v1.5.7_GH0.tar.gz doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch https://codeload.github.com/containerd/containerd/tar.gz/v1.5.7?dummy=/containerd-containerd-v1.5.7_GH0.tar.gz
fetch: https://codeload.github.com/containerd/containerd/tar.gz/v1.5.7?dummy=/containerd-containerd-v1.5.7_GH0.tar.gz: size unknown
fetch: https://codeload.github.com/containerd/containerd/tar.gz/v1.5.7?dummy=/containerd-containerd-v1.5.7_GH0.tar.gz: size of remote file is not known
containerd-containerd-v1.5.7_GH0.tar.gz               7533 kB 5808 kBps    01s


=> SHA256 Checksum mismatch for containerd-containerd-v1.5.7_GH0.tar.gz.
Comment 6 Hiroo Ono 2022-04-07 22:48:26 UTC
The entry in my distinfo file is as follows and it matches the one in https://cgit.freebsd.org/ports/tree/net-mgmt/prometheus2/distinfo?h=2022Q2:

SHA256 (containerd-containerd-v1.5.7_GH0.tar.gz) = 09be0cedea77568029aa0c7be9a323b89fa6886b402b5d223780a05b8c7cd45a
Comment 7 Fernando Apesteguía freebsd_committer freebsd_triage 2022-04-08 08:05:32 UTC
For some reason, my checksum is not checked during fetch, but at extract time. In this case it detects the checksum mismatch and tries to fetch the file again but it also fails:

...
=> SHA256 Checksum OK for beorn7-perks-v1.0.1_GH0.tar.gz.    
=> SHA256 Checksum OK for census-instrumentation-opencensus-go-v0.23.0_GH0.tar.gz.
=> SHA256 Checksum OK for cespare-xxhash-v2.1.2_GH0.tar.gz. 
=> SHA256 Checksum OK for cncf-xds-01bcc9b48dfe_GH0.tar.gz.                                                                        
=> SHA256 Checksum mismatch for containerd-containerd-v1.5.7_GH0.tar.gz.
=> SHA256 Checksum OK for davecgh-go-spew-v1.1.1_GH0.tar.gz.                                                                       
=> SHA256 Checksum OK for dennwc-varint-v1.0.0_GH0.tar.gz.                                                                         
=> SHA256 Checksum OK for dgryski-go-sip13-62edffca9245_GH0.tar.gz.  
=> SHA256 Checksum OK for digitalocean-godo-v1.72.0_GH0.tar.gz.
=> SHA256 Checksum OK for docker-distribution-v2.7.1_GH0.tar.gz.
...

Can you confirm the sha256 of the downloaded file?

$ sha256 ../../distfiles/containerd-containerd-v1.5.7_GH0.tar.gz 
SHA256 (../../distfiles/containerd-containerd-v1.5.7_GH0.tar.gz) = 7d8f7014a74b063da9cdf7fe8673db8dc338747efdbb9b6a6a919d5137b1987e
Comment 8 David O'Rourke 2022-04-08 08:43:37 UTC
Hi,

See this comment for more information on why this is happening. It's due to GitHub archives not being great: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261082#c1

There's not really much we can do here other than wait for the eventual upgrade of the dependencies that trigger this issue.

-David
Comment 9 David O'Rourke 2022-04-08 08:52:58 UTC
Looking at the recent Prometheus versions, I believe that this should actually be resolved when I update the port to Prometheus v2.33+ as the version of the containerd dependency (the dependency triggering this issue) there was finally updated to 1.6.0+. I'll try to prioritise that update later today.

-David
Comment 10 David O'Rourke 2022-04-10 13:00:59 UTC
Unfortunately, there's a problem with ports-mgmt/modules2tuple at the moment which makes updating the port rather difficult.

Details of the issue can be found here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263161

-David
Comment 11 rainer 2022-04-10 15:31:17 UTC
Looks like I won the mentioned github lottery: I restarted the build for some other reason and it built and packaged.