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

Build failure "Get:1 http://debian-archive.trafficmanager.net/debian bullseye/main amd64 golang-1.15-src amd64 1.15.15-1~deb11u4" #21983

Open
swamirajr opened this issue Mar 10, 2025 · 1 comment

Comments

@swamirajr
Copy link

Hi,

We got compilation error while building sonic code.
We could observe "Get:1 http://debian-archive.trafficmanager.net/debian bullseye/main amd64 golang-1.15-src amd64 1.15.15-1~deb11u4 [13.9 MB]" is failed because of network issue.

Later we found that our firewall was restricting the "http" request and after adding a rule to allow "http" request for debian-archive.trafficmanager.net, build was successful.

please see below for the error log.

#24 2.156 The following NEW packages will be installed:
#24 2.157 golang-1.15 golang-1.15-doc golang-1.15-go golang-1.15-src
#24 2.410 0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
#24 2.410 Need to get 63.7 MB of archives.
#24 2.410 After this operation, 363 MB of additional disk space will be used.
#24 2.410 Get:1 http://debian-archive.trafficmanager.net/debian bullseye/main amd64 golang-1.15-src amd64 1.15.15-1deb11u4 [13.9 MB]
#24 29.60 Ign:1 http://debian-archive.trafficmanager.net/debian bullseye/main amd64 golang-1.15-src amd64 1.15.15-1
deb11u4
#24 29.80 Get:2 http://debian-archive.trafficmanager.net/debian bullseye/main amd64 golang-1.15-go amd64 1.15.15-1deb11u4 [47.4 MB]
#24 35.67 Get:3 http://debian-archive.trafficmanager.net/debian bullseye/main amd64 golang-1.15-doc all 1.15.15-1
deb11u4 [2455 kB]
#24 36.69 Get:4 http://debian-archive.trafficmanager.net/debian bullseye/main amd64 golang-1.15 all 1.15.15-1deb11u4 [27.9 kB]
#24 36.72 Err:1 http://debian-archive.trafficmanager.net/debian bullseye/main amd64 golang-1.15-src amd64 1.15.15-1
deb11u4
#24 36.72 Error reading from server - read (104: Connection reset by peer) [IP: 57.155.122.117 80]
#24 36.72 Fetched 49.9 MB in 35s (1443 kB/s)
#24 36.72 E: Failed to fetch http://192.168.3.1:8090/ips/block/error?e=av_unscannable&pl=1&lu=0&url=aHR0cDovL2RlYmlhbi1hcmNoaXZlLnRyYWZmaWNtYW5hZ2VyLm5ldC9kZWJpYW4vcG9vbC9tYWluL2cvZ29sYW5nLTEuMTUvZ29sYW5nLTEuMTUtc3JjXzEuMTUuMTUtMSU3ZWRlYjExdTRfYW1kNjQuZGVi Error reading from server - read (104: Connection reset by peer) [IP: 57.155.122.117 80]
#24 36.72 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
#24 ERROR: process "/bin/sh -c eatmydata apt-get install -y golang-1.15 && ln -s /usr/lib/go-1.15 /usr/local/go" did not complete successfully: exit code: 100

We initiated another build, and found a similar error for the domain "http://packages.trafficmanager.net/snapshot/debian/20250130T000911Z"

Attached error log below,

#24 2.271 The following NEW packages will be installed:
#24 2.272 golang-1.15 golang-1.15-doc golang-1.15-go golang-1.15-src
#24 3.473 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
#24 3.473 Need to get 63.7 MB of archives.
#24 3.473 After this operation, 363 MB of additional disk space will be used.
#24 3.473 Get:1 http://packages.trafficmanager.net/snapshot/debian/20250130T000911Z bullseye/main amd64 golang-1.15-src amd64 1.15.15-1deb11u4 [13.9 MB]
#24 35.12 Ign:1 http://packages.trafficmanager.net/snapshot/debian/20250130T000911Z bullseye/main amd64 golang-1.15-src amd64 1.15.15-1
deb11u4
#24 36.19 Get:2 http://packages.trafficmanager.net/snapshot/debian/20250130T000911Z bullseye/main amd64 golang-1.15-go amd64 1.15.15-1deb11u4 [47.4 MB]
#24 49.55 Get:3 http://packages.trafficmanager.net/snapshot/debian/20250130T000911Z bullseye/main amd64 golang-1.15-doc all 1.15.15-1
deb11u4 [2455 kB]
#24 51.30 Get:4 http://packages.trafficmanager.net/snapshot/debian/20250130T000911Z bullseye/main amd64 golang-1.15 all 1.15.15-1deb11u4 [27.9 kB]
#24 51.35 Err:1 http://packages.trafficmanager.net/snapshot/debian/20250130T000911Z bullseye/main amd64 golang-1.15-src amd64 1.15.15-1
deb11u4 #24 51.35 Error reading from server - read (104: Connection reset by peer) [IP: 13.107.246.48 80]
#24 51.36 Fetched 49.9 MB in 49s (1016 kB/s)
#24 51.36 E: Failed to fetch http://192.168.3.1:8090/ips/block/error?e=av_unscannable&pl=1&lu=0&url=aHR0cDovL3BhY2thZ2VzLnRyYWZmaWNtYW5hZ2VyLm5ldC9zbmFwc2hvdC9kZWJpYW4vMjAyNTAxMzBUMDAwOTExWi9wb29sL21haW4vZy9nb2xhbmctMS4xNS9nb2xhbmctMS4xNS1zcmNfMS4xNS4xNS0xJTdlZGViMTF1NF9hbWQ2NC5kZWI~ Error reading from server - read (104: Connection reset by peer) [IP: 13.107.246.48 80]
#24 51.36 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
#24 ERROR: process "/bin/sh -c eatmydata apt-get install -y golang-1.15 && ln -s /usr/lib/go-1.15 /usr/local/go" did not complete successfully: exit code: 100

Our clarification is, do we need to keep on adding such rules while observing similar error or there is some other way to handle this.
Normally as per organization firewall configuration, http (not secure) links will be blocked.

please suggest

Thanks
Swami

@arlakshm
Copy link
Contributor

@liushilongbuaa can you please help answer the questions in this issue

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

No branches or pull requests

2 participants