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

443 when installing temurin11 #762

Open
jamhamblin opened this issue Oct 26, 2023 · 8 comments
Open

443 when installing temurin11 #762

jamhamblin opened this issue Oct 26, 2023 · 8 comments

Comments

@jamhamblin
Copy link

jamhamblin commented Oct 26, 2023

Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-11/temurin-11-jdk_11.0.20.1.0%2b1_amd64.deb Error reading from server. Remote end closed connection [IP: 199.232.27.42 443]

I keep on receiving this error when trying to install on ubuntu22 using docker. Any help would be greatly appreciated. I'm installing it using:

wget -nv -qO - "https://packages.adoptium.net/artifactory/api/gpg/key/public" | apt-key add - \
    && add-apt-repository --yes https://packages.adoptium.net/artifactory/deb \
    && apt-get update -qq \
    && apt-get -qq install temurin-11-jdk 
@jamhamblin
Copy link
Author

for additional context this is a transient issue, it will work after enough retries

@Quinteger
Copy link

Just gonna note that 443 is not an error code, it's simply logging of the port that you're trying to connect to (https).
Also, it seems that the repo has some sort of an issue right now: #766

@karianna
Copy link
Contributor

Hi folks, we're aware of the issue and are investigating with our CDN and package repo providers.

@lhotari
Copy link

lhotari commented Oct 30, 2023

The packaging issue was resolved, but I seem to be hitting this kind of issue once in a while in the Apache Pulsar CI builds on GitHub Actions:

[INFO] DOCKER> Err:6 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-17-jdk amd64 17.0.9.0.0+9
  Error reading from server. Remote end closed connection [IP: 146.75.107.42 443]
[INFO] DOCKER> Fetched 5654 kB in 3s (2129 kB/s)
[INFO] DOCKER> [91mE: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-17/temurin-17-jdk_17.0.9.0.0%2b9_amd64.deb  Error reading from server. Remote end closed connection [IP: 146.75.107.42 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@karianna
Copy link
Contributor

@lhotari can you run a ca-certificates update on that container first?

@lhotari
Copy link

lhotari commented Oct 31, 2023

@lhotari can you run a ca-certificates update on that container first?

@karianna The odd thing is that a docker file that doesn't install ca-certificates doesn't seem to have problems. The one that installs ca-certificates has the problem and fails much more often.

This is in Apache Pulsar, Dockerfile without issues:
https://github.com/apache/pulsar/blob/69740c85e111318c8f774294e0129b770fff15e6/tests/docker-images/java-test-image/Dockerfile#L40-L54
example run:
https://github.com/apache/pulsar/actions/runs/6704306653/job/18217073380?pr=21483#step:10:5883

The Dockerfile with "Error reading from server. Remote end closed connection" issues:
https://github.com/apache/pulsar/blob/69740c85e111318c8f774294e0129b770fff15e6/docker/pulsar/Dockerfile#L60-L78
example failure:
https://github.com/apache/pulsar/actions/runs/6704306653/job/18217073615?pr=21483#step:11:7047

There is a slight difference in the dockerfile that fails. It does change the default retries for apt, but I'm not sure if that is related or not.

@lhotari
Copy link

lhotari commented Oct 31, 2023

It might a problem of installing apt-transport-https and ca-certificates with --no-install-recommends. That doesn't install openssl or publicsuffix package. For some reason, this changes made the problem go away: apache/pulsar@aaedf47

@karianna
Copy link
Contributor

karianna commented Nov 5, 2023

@gdams Does apache/pulsar@aaedf47 help your investigations? Looks like a subtle change in the no recommends package install set

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

No branches or pull requests

4 participants