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

Debian Bookworm repository for Temurin 21 not working #766

Open
jinzo opened this issue Oct 26, 2023 · 60 comments
Open

Debian Bookworm repository for Temurin 21 not working #766

jinzo opened this issue Oct 26, 2023 · 60 comments

Comments

@jinzo
Copy link

jinzo commented Oct 26, 2023

What are you trying to do?
Install temurin-21-jdk on Debian Bookworm

Observed behaviour:

root@bennu:~# cat /etc/apt/sources.list.d/adoptium.list
deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb bookworm main
root@bennu:~# apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]              
Hit:3 https://download.docker.com/linux/debian bookworm InRelease                                   
Hit:4 http://deb.debian.org/debian bookworm-updates InRelease                                                   
Get:5 https://packages.adoptium.net/artifactory/deb bookworm InRelease [6,638 B]                                
Fetched 54.6 kB in 1s (55.7 kB/s)    
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@bennu:~# apt install temurin-21-jdk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  adoptium-ca-certificates alsa-topology-conf alsa-ucm-conf fontconfig-config fonts-dejavu-core fonts-dejavu-extra java-common libasound2 libasound2-data libfontconfig1
  libxi6 libxrender1 libxtst6 p11-kit p11-kit-modules x11-common
Suggested packages:
  default-jre libasound2-plugins alsa-utils
The following NEW packages will be installed:
  adoptium-ca-certificates alsa-topology-conf alsa-ucm-conf fontconfig-config fonts-dejavu-core fonts-dejavu-extra java-common libasound2 libasound2-data libfontconfig1
  libxi6 libxrender1 libxtst6 p11-kit p11-kit-modules temurin-21-jdk x11-common
0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded.
Need to get 177 MB/183 MB of archives.
After this operation, 378 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Err:1 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-21-jdk amd64 21.0.1.0.0+12
  400  Bad Request [IP: 151.101.243.42 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-21-jdk_21.0.1.0.0%2b12_amd64.deb  400  Bad Request [IP: 151.101.243.42 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Any other comments:
Fresh Bookworm install from today, almost nothing else installed than base netinstall. Lookslike something is wrong and ${VERSION} did not get replaced with 21 with the debian repository build.

@CrystalSpore
Copy link

Having the same error on Ubuntu 22.04 (Jammy).

sudo apt install temurin-21-jdk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  adoptium-ca-certificates fonts-dejavu-extra java-common
Suggested packages:
  default-jre
The following NEW packages will be installed:
  adoptium-ca-certificates fonts-dejavu-extra java-common temurin-21-jdk
0 upgraded, 4 newly installed, 0 to remove and 9 not upgraded.
Need to get 177 MB/179 MB of archives.
After this operation, 368 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Err:1 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-21-jdk amd64 21.0.1.0.0+12
  400  Bad Request [IP: 151.101.3.42 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-21-jdk_21.0.1.0.0%2b12_amd64.deb  400  Bad Request [IP: 151.101.3.42 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Worth noting that Temurin 17 also appears to be broken currently:

sudo apt install temurin-17-jdk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  adoptium-ca-certificates fonts-dejavu-extra java-common
Suggested packages:
  default-jre
The following NEW packages will be installed:
  adoptium-ca-certificates fonts-dejavu-extra java-common temurin-17-jdk
0 upgraded, 4 newly installed, 0 to remove and 9 not upgraded.
Need to get 166 MB/168 MB of archives.
After this operation, 338 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Err:1 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-17-jdk amd64 17.0.9.0+9
  400  Bad Request [IP: 151.101.131.42 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jdk_17.0.9.0%2b9_amd64.deb  400  Bad Request [IP: 151.101.131.42 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

As pointing out above, looks like ${VERSION} isn't being replaced for some reason

@jinzo
Copy link
Author

jinzo commented Oct 26, 2023

Interestingly, temurin-17-jdk did work for me on Debian Bookworm.

@ramsgoli
Copy link

Having similar issues installing temurin-17-jdk on ubuntu focal.
My install script looks like the following (taken from the instructions)

apt-get -qq install -y wget apt-transport-https

# Download the Eclipse Adoptium GPG key:
mkdir -p /etc/apt/keyrings
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /etc/apt/keyrings/adoptium.asc

# Configure the Eclipse Adoptium apt repository
echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print $2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list

# install the jdk
apt-get -qq update
apt-get -qq install -y temurin-17-jdk

and the output I get is

--2023-10-27 00:56:22--  https://packages.adoptium.net/artifactory/api/gpg/key/public
 Resolving packages.adoptium.net (packages.adoptium.net)... 146.75.35.42
 Connecting to packages.adoptium.net (packages.adoptium.net)|146.75.35.42|:443... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 1793 (1.8K) [text/plain]
 -----BEGIN PGP PUBLIC KEY BLOCK-----

 mQENBGGTvTQBCAC6ey144n7CG8foafF6mwgIBN1fIm1ILZDuGS4tMr0/XI8pgJnT
 Saving to: ‘STDOUT’

      0K .                                                     100% 20.9M=0s

 QvsPxZWEvtSm7bEMObzEoZJcXwjBcJl1B0ui8k5kHMTI75gCmZPsoKLFWIEpuRBQ
 2023-10-27 00:56:22 (20.9 MB/s) - written to stdout [1793/1793]

 PBocusw80apDmLnNDQLVQvDFtEua5gaNa/fRw9YsmBoXBqvgrjFUIdGyWoQvH5+a
 9OYlWD9n5VV0gnVMb+aclwVzB/zJw3kHGSgzuMtlAHeQiah7Y8yomQn/UIX8yqDf
 +11sP3+c87YcjkRqImRTtmKEDcEtGPAIXC6SYA+uEEkbYE0Fy0chkvtnVWJ597fa
 Epai4rnICU8zoJ6X5z3v1aM2WerhX9oq9X8PABEBAAG0QEFkb3B0aXVtIEdQRyBL
 ZXkgKERFQi9SUE0gU2lnbmluZyBLZXkpIDx0ZW11cmluLWRldkBlY2xpcHNlLm9y
 Zz6JAVIEEwEIADwWIQQ7BNdTyQUNml00PzmEPEilZfjwSwUCYZO9NAIbAwULCQgH
 AgMiAgEGFQoJCAsCBBYCAwECHgcCF4AACgkQhDxIpWX48Et4AggAjjJzYWuKV3nG
 7ngInngl8G/m9JoHr7BmwgcQXYhdy5hVkMcUx5JLeXz2LMBUH/F2nD595hgjMabk
 kVib20X8lq9RsNbdfc2hBcWU6qyHKxsIqT4boI2/XDyEzzMyyZWWNGo/27Ci7Xmj
 pWu31nh0pDdPqdyWDIKojbVVnxlCRY8as8Sm+1ufi709KCi4MuwHNsUlCSwb/fju
 NKeHkrHbLcHKUUIEcmTSKRWrpMYBzm1HYOGBz4xPuELwUfUp71ehfoyBZlp6RDRf
 l5TYI1FmCyHuvjNhrJgWv7bOTcf8yObGY+TEUhzc4xQqCrF4ur9d3opvsuPBQsv+
 Klqi5KSZgrkBDQRhk700AQgAq14okly8cFrpYVenEQPiB75AUZfKRpMduiR6IxAj
 SKcH7aSoFZ9AubUEBVpZsyT5svxoEPe1i4TdbF+m9FGy42EcOlLa3ArLTj5H8FRl
 UdGZB9I5mk4GptOzPM+aHMMu92vW/ZwjuS8DvOiQSp+cUmG1EqOMJSM7e/4BM71z
 E+OKaVJCj79pEzhG3SK/IC/OlxxyETT66NSfYJd7Sw5R6Vr19am/uNU690W0CJ+q
 VQeFpmDMr7LnfdFRIh+lJe05+PvWXeidkGjox5cbG52wf8aRIR/FgkfcFvqRMN1f
 B+dVOWueloUeVAnzcUznOKmUEs7LP9ObJhYHHgup4IAU2wARAQABiQE2BBgBCAAg
 FiEEOwTXU8kFDZpdND85hDxIpWX48EsFAmGTvTQCGwwACgkQhDxIpWX48EvXHQf/
 Q0nZsGDXnZHiBoojeSdpkO7WBjMIP3w1GdLvRpPQrS8TfOPbZuoevzCNh38Y3gwF
 yelJspvzDQrBXhgkzAGlucYg8Y7KHa5Ebm7iDgMzc37L1hYSZTYCqwd7aowfgy34
 hOk3B67LffkJpIh738Oa9CtlwxQ9xcytmBmQ1fBBOwm/9IhAwHPQuydYIs4DxWbj
 0MGSP4fDntU7e4UjsHNmhudDcYol0FaqdHHIIB9C/G4CzetRwHFOn3b4JwXMU7YU
 6aJA3mXhi3hggMC3wkT2HHZ/TquuOdNc02fypWOCDOHz0alBBJNqoVUNFNqU3tfJ
 wI4qF/KKq9BfyfucAs0ykA==
 =szki
 -----END PGP PUBLIC KEY BLOCK-----deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb focal main
 E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-/temurin-17-jdk_17.0.9.0+9_amd64.deb  400  Bad Request [IP: 146.75.35.42 443]
 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@ByCzech
Copy link

ByCzech commented Oct 27, 2023

Same problem, can't upgrade temurin jdk packages.

EDIT: Interesting, that Temurin JRE 21 is instalable. See https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-21/temurin-21-jre_21.0.1.0.0%2b12_amd64.deb

Err:1 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-11-jdk amd64 11.0.21.0.0+9 400 Bad Request [IP: 151.101.3.42 443]
Err:2 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-11-jre amd64 11.0.21.0.0+9 400 Bad Request [IP: 151.101.3.42 443]
Err:3 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-17-jdk amd64 17.0.9.0+9 400 Bad Request [IP: 151.101.3.42 443]
Err:4 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-17-jre amd64 17.0.9.0+9 400 Bad Request [IP: 151.101.3.42 443]
E: Selhalo stažení https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-11-jdk_11.0.21.0.0%2b9_amd64.deb 400 Bad Request [IP: 151.101.3.42 443]
E: Selhalo stažení https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-11-jre_11.0.21.0.0%2b9_amd64.deb 400 Bad Request [IP: 151.101.3.42 443]
E: Selhalo stažení https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jdk_17.0.9.0%2b9_amd64.deb 400 Bad Request [IP: 151.101.3.42 443]
E: Selhalo stažení https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jre_17.0.9.0%2b9_amd64.deb 400 Bad Request [IP: 151.101.3.42 443]

@iAweX
Copy link

iAweX commented Oct 27, 2023

Same problem on Debian 12 with temurin-17-jdk.

The following packages will be upgraded:
  temurin-17-jdk
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 166 MB of archives.
After this operation, 130 kB of additional disk space will be used.
Err:1 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-17-jdk amd64 17.0.9.0+9
  400  Bad Request [IP: 151.101.3.42 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jdk_17.0.9.0%2b9_amd64.deb  400  Bad Request [IP: 151.101.3.42 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@lss4
Copy link

lss4 commented Oct 27, 2023

Looks like the latest build in the debian repo is broken. Can be seen from links shown here. Previous versions that are still available can be downloaded fine.

A temporary workaround would be explicitly specify the version before the latest one. For JDK17, that would be temurin-17-jdk=17.0.8.1.0+1.

EDIT: Looks like JDK8 is still fine (no ${VERSION}). Also, the repo pages appear bugged as I'm getting a lot of errors saying I'm "not authorized".

@ByCzech
Copy link

ByCzech commented Oct 27, 2023

Looks like the latest build in the debian repo is broken. Can be seen from links shown here. Previous versions that are still available can be downloaded fine.

A temporary workaround would be explicitly specify the version before the latest one. For JDK17, that would be temurin-17-jdk=17.0.8.1.0+1.

EDIT: Looks like JDK8 is still fine (no ${VERSION}). Also, the repo pages appear bugged as I'm getting a lot of errors saying I'm "not authorized".

Hm...

$ LANG=C wget 'https://packages.adoptium.net/ui/api/v1/download?repoKey=deb&path=pool%2Fmain%2Ft%2Ftemurin-%24%7BVERSION%7D%2Ftemurin-21-jdk_21.0.1.0.0%2B12_amd64.deb&jfLoader=true'
--2023-10-27 07:51:31-- https://packages.adoptium.net/ui/api/v1/download?repoKey=deb&path=pool%2Fmain%2Ft%2Ftemurin-%24%7BVERSION%7D%2Ftemurin-21-jdk_21.0.1.0.0%2B12_amd64.deb&jfLoader=true
Resolving packages.adoptium.net (packages.adoptium.net)... 151.101.3.42, 151.101.67.42, 151.101.131.42, ...
Connecting to packages.adoptium.net (packages.adoptium.net)|151.101.3.42|:443... connected.
HTTP request sent, awaiting response... 503 Response object too large
2023-10-27 07:51:32 ERROR 503: Response object too large.

@statoon54
Copy link

statoon54 commented Oct 27, 2023

Same problems today for Ubuntu Jammy :
Encoding URL seems too be bad

Err:1 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-11-jdk amd64 11.0.21.0.0+9
400 Bad Request
Err:2 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-17-jdk amd64 17.0.9.0+9
400 Bad Request
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-11-jdk_11.0.21.0.0%2b9_amd64.deb 400 Bad Request
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jdk_17.0.9.0%2b9_amd64.deb 400 Bad Request

@sxa sxa transferred this issue from adoptium/temurin-build Oct 27, 2023
@sxa
Copy link
Member

sxa commented Oct 27, 2023

There have been a few similar issues raised recently, although in each case I have been unable to reproduce it. It feels like a caching issue somewhere. I've transferred this to the installer repository as it's the most appropriate place for it.

@mrairzuk
Copy link

Same today for Ubuntu 22.04.3 LTS (Jammy Jellyfish).

Fails on all JDK installed (11 and 17)

Err:1 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-11-jdk amd64 11.0.21.0.0+9
400 Bad Request [IP: 151.101.247.42 443]
Err:2 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-17-jdk amd64 17.0.9.0+9
400 Bad Request [IP: 151.101.247.42 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-11-jdk_11.0.21.0.0%2b9_amd64.deb 400 Bad Request [IP: 151.101.247.42 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jdk_17.0.9.0%2b9_amd64.deb 400 Bad Request [IP: 151.101.247.42 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@jennyowen
Copy link

jennyowen commented Oct 27, 2023

It looks as though there was some problem with whatever script updated the deb repository metadata.
If you look at the Packages files, eg:

curl https://packages.adoptium.net/artifactory/deb/dists/jammy/main/binary-amd64/Packages

The latest patches have file redirects with ${VERSION} inside, instead of whatever value ${VERSION} actually is.

For example temurin-11-jdk_11.0.21 redirects to file:
pool/main/t/temurin-${VERSION}/temurin-11-jdk_11.0.21.0.0+9_amd64.deb

but temurin-11-jdk_11.0.20.1 redirects to:
pool/main/t/temurin-11/temurin-11-jdk_11.0.20.1.0+1_amd64.deb
Where ${VERSION} is correctly replaced by 11.

That's why it works when you specify an older version.

And to save anyone from looking up what those versions are...

  • java 21: apt install temurin-21-jdk=21.0.0.0.0+35
  • java 17: apt install temurin-17-jdk=17.0.8.1.0+1
  • java 11: apt install temurin-11-jdk=11.0.20.1.0+1

@statoon54
Copy link

It looks as though there was some problem with whatever script updated the deb repository metadata. If you look at the Packages files, eg:

curl https://packages.adoptium.net/artifactory/deb/dists/jammy/main/binary-amd64/Packages

The latest patches have file redirects with ${VERSION} inside, instead of whatever value ${VERSION} actually is.

For example temurin-11-jdk_11.0.21 redirects to file: pool/main/t/temurin-${VERSION}/temurin-11-jdk_11.0.21.0.0+9_amd64.deb

but temurin-11-jdk_11.0.20.1 redirects to: pool/main/t/temurin-11/temurin-11-jdk_11.0.20.1.0+1_amd64.deb Where ${VERSION} is correctly replaced by 11.

That's why it works when you specify an older version.

And to save anyone from looking up what those versions are...

  • java 21: apt install temurin-21-jdk=21.0.0.0.0+35
  • java 17: apt install temurin-17-jdk=17.0.8.1.0+1
  • java 11: apt install temurin-11-jdk=11.0.20.1.0+1

The Folder ${VERSION} exists https://adoptium.jfrog.io/ui/repos/tree/General/deb/pool/main/t/temurin-$%7BVERSION%7D

But the encoding is bad somewhere with ${VERSION}.

@eolivelli
Copy link

I am seeing the same problem.
I hope we can fix this soon.
Thanks for anyone who is working on this problem

@Quinteger
Copy link

Quinteger commented Oct 27, 2023

Same issue on Linux Mint 21.2, both in Update Manager and apt upgrade:

E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-11-jdk_11.0.21.0.0%2b9_amd64.deb  400  Bad Request [IP: 146.75.119.42 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jdk_17.0.9.0%2b9_amd64.deb  400  Bad Request [IP: 146.75.119.42 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-21-jdk_21.0.1.0.0%2b12_amd64.deb  400  Bad Request [IP: 146.75.119.42 443]

@tnymlr
Copy link

tnymlr commented Oct 27, 2023

Interesting note. If I just get into docker: docker run -it $image /bin/bash and run commands there, it works. If I run them from Dockerfile - same error with BAD_REQUEST.

In other words, it works in interactive session for some reason.

@tnymlr
Copy link

tnymlr commented Oct 27, 2023

Actually, scratch that, it's not interactive session that works, it's ARM64 platform. Works fine on arm64/aarch64, fails on x64.

@jakuboskera
Copy link

When it will fixed? I am trying to build ubuntu22 runner-images which depends on this and due to thi bug the build is failing.

@sophia-guo
Copy link
Contributor

temurin-${VERSION}/ has been deleted. Is this still a issue?

@tnymlr
Copy link

tnymlr commented Oct 27, 2023

@sophia-guo thank you, works in my build.

@sophia-guo
Copy link
Contributor

@tnymlr works for x64 now, correct? Thanks!

@slovdahl
Copy link

temurin-11-jdk and temurin-21-jdk work now, but not temurin-17-jdk yet.

Err:1 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-17-jdk amd64 17.0.9.0+9
  400  Bad Request [IP: 151.101.247.42 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jdk_17.0.9.0%2b9_amd64.deb  400  Bad Request [IP: 151.101.247.42 443]

@jakuboskera
Copy link

temurin-11-jdk and temurin-21-jdk work now, but not temurin-17-jdk yet.

Err:1 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-17-jdk amd64 17.0.9.0+9
  400  Bad Request [IP: 151.101.247.42 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jdk_17.0.9.0%2b9_amd64.deb  400  Bad Request [IP: 151.101.247.42 443]

can confirm temurin-8-jdk and temurin-11-jdk works, temurin-17-jdk not...

@karianna
Copy link
Contributor

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

@tnymlr
Copy link

tnymlr commented Oct 28, 2023

@sophia-guo yes, x64. Thank's again =).

@iAweX
Copy link

iAweX commented Oct 28, 2023

@sophia-guo

temurin-${VERSION}/ has been deleted. Is this still a issue?

Not works for temurin-17-jdk

@lhotari
Copy link

lhotari commented Oct 28, 2023

Quick way to see if the problem isn't yet fixed:

❯ curl -s 'https://packages.adoptium.net/artifactory/deb/dists/jammy/main/binary-amd64/Packages' |grep '${VERSION}'
Filename: pool/main/t/temurin-${VERSION}/temurin-21-jdk_21.0.1.0.0+12_amd64.deb
Filename: pool/main/t/temurin-${VERSION}/temurin-17-jdk_17.0.9.0+9_amd64.deb
Filename: pool/main/t/temurin-${VERSION}/temurin-11-jdk_11.0.21.0.0+9_amd64.deb
Filename: pool/main/t/temurin-${VERSION}/temurin-11-jre_11.0.21.0.0+9_amd64.deb
Filename: pool/main/t/temurin-${VERSION}/temurin-17-jre_17.0.9.0+9_amd64.deb

As long as you get this type of result, the problem remains.

By searching the repository content, ${VERSION} is only referenced from https://github.com/adoptium/installer/blob/master/linux/Jenkinsfile . Perhaps there's some quotes issue in Jenkinsfile?

@karianna
Copy link
Contributor

@gdams This is the other use case I think we need to resolve

@gdams
Copy link
Member

gdams commented Oct 30, 2023

packages.adoptium.net

@lss4 just to confirm are you referring to this page: https://packages.adoptium.net/ui/builds/

it seems to load okay for me (without me being logged in)

@lss4
Copy link

lss4 commented Oct 30, 2023

packages.adoptium.net

@lss4 just to confirm are you referring to this page: https://packages.adoptium.net/ui/builds/

it seems to load okay for me (without me being logged in)

Not that... I was referring to the information page of a package. For example,

https://packages.adoptium.net/ui/packages/deb:%2F%2Ftemurin-17-jdk/17.0.9.0.0+9

The "Builds" tab does not have anything useful as I was mainly looking at the "Location" tab when the ${VERSION} issue first surfaced. After staying at that page for a while I get kicked out by a series of 403 errors. Although at first I could stay a bit longer, after being kicked out for the first time, if I try to look at another package's information I get kicked out almost immediately.

So perhaps this part requires some kind of login and not really a bug?

@gdams
Copy link
Member

gdams commented Oct 30, 2023

packages.adoptium.net

@lss4 just to confirm are you referring to this page: https://packages.adoptium.net/ui/builds/
it seems to load okay for me (without me being logged in)

Not that... I was referring to the information page of a package. For example,

https://packages.adoptium.net/ui/packages/deb:%2F%2Ftemurin-17-jdk/17.0.9.0.0+9

The "Builds" tab does not have anything useful as I was mainly looking at the "Location" tab when the ${VERSION} issue first surfaced. After staying at that page for a while I get kicked out by a series of 403 errors. Although at first I could stay a bit longer, after being kicked out for the first time, if I try to look at another package's information I get kicked out almost immediately.

So perhaps this part requires some kind of login and not really a bug?

I see the same bug when going directly to artifactory (and excluding the CDN) - https://adoptium.jfrog.io/ui/packages/deb:%2F%2Ftemurin-17-jdk/17.0.9.0.0+9

I'll raise a JFrog bug but I don't think this will be causing 401 errors for people downloading the latest debian installers

@lhotari
Copy link

lhotari commented Oct 30, 2023

I'm hitting a "Error reading from server. Remote end closed connection" issue, commented about that on #754 (comment)

@jarppe
Copy link

jarppe commented Nov 11, 2023

I have been successfully installing temurin-21-jdk on Debian bookworm amd64 machines for some time now, but now I get:

E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-21/temurin-21-jdk_21.0.1.0.0%2b12_amd64.deb  403  Forbidden [IP: 151.101.3.42 443]

Other versions seem to work (tested just temurin-20-jdk)

@swi-jared
Copy link

I'm hitting a "Error reading from server. Remote end closed connection" issue

Same here, but only in CI. I tested a curl locally and it succeeded. I even double checked they both had the same IP.

From my failed apt install:

 E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-21/temurin-21-jdk_21.0.1.0.0%2b12_amd64.deb  Error reading from server. Remote end closed connection [IP: 146.75.35.42 443]

My successful curl:

$ curl -vO https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-21/temurin-21-jdk_21.0.1.0.0%2b12_amd64.deb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 146.75.83.42:443...
* Connected to packages.adoptium.net (146.75.83.42) port 443 (#0)
* ALPN: offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
} [326 bytes data]
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* (304) (IN), TLS handshake, Unknown (8):
{ [19 bytes data]
* (304) (IN), TLS handshake, Certificate (11):
{ [3985 bytes data]
* (304) (IN), TLS handshake, CERT verify (15):
{ [264 bytes data]
* (304) (IN), TLS handshake, Finished (20):
{ [36 bytes data]
* (304) (OUT), TLS handshake, Finished (20):
} [36 bytes data]
* SSL connection using TLSv1.3 / AEAD-CHACHA20-POLY1305-SHA256
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=packages.adoptium.net
*  start date: Oct  2 11:22:18 2023 GMT
*  expire date: Dec 31 11:22:17 2023 GMT
*  subjectAltName: host "packages.adoptium.net" matched cert's "packages.adoptium.net"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
* using HTTP/2
* h2 [:method: GET]
* h2 [:scheme: https]
* h2 [:authority: packages.adoptium.net]
* h2 [:path: /artifactory/deb/pool/main/t/temurin-21/temurin-21-jdk_21.0.1.0.0%2b12_amd64.deb]
* h2 [user-agent: curl/8.1.2]
* h2 [accept: */*]
* Using Stream ID: 1 (easy handle 0x13900c600)
> GET /artifactory/deb/pool/main/t/temurin-21/temurin-21-jdk_21.0.1.0.0%2b12_amd64.deb HTTP/2
> Host: packages.adoptium.net
> User-Agent: curl/8.1.2
> Accept: */*
>
< HTTP/2 200
< x-amz-id-2: GUeBG6zViPnfTn1fN77LYBPDJMNJZvZ/4S1pqoHYZbI4g7MBfukrxXM7C2IFwCraLez0enAxZBo=
< x-amz-request-id: VCNXDWM4WBXM7JGG
< x-amz-replication-status: FAILED
< last-modified: Fri, 27 Oct 2023 16:40:51 GMT
< etag: "280e2606b8dd8c6c5bbfecad0115d9f4"
< x-amz-server-side-encryption: AES256
< x-amz-version-id: yeLkZut31t9phZKJNSrCSHk_N6HUFNNW
< content-disposition: attachment;filename="temurin-21-jdk_21.0.1.0.0+12_amd64.deb"
< content-type: application/x-debian-package
< server: AmazonS3
< cache-control: public, max-age=15780096.000
< fastly-restarts: 1
< accept-ranges: bytes
< date: Tue, 14 Nov 2023 23:30:44 GMT
< via: 1.1 varnish
< age: 58
< x-served-by: cache-chi-klot8100138-CHI
< x-cache: HIT
< x-cache-hits: 1
< x-timer: S1700004645.658718,VS0,VE51
< content-length: 177377304
<
{ [5423 bytes data]
100  169M  100  169M    0     0  41.6M      0  0:00:04  0:00:04 --:--:-- 41.7M
* Connection #0 to host packages.adoptium.net left intact

@swi-jared
Copy link

Looking at the response headers, I wonder if it's a transient failure due to x-amz-replication-status: FAILED?

@gdams
Copy link
Member

gdams commented Nov 15, 2023

@swi-jared looking at your log it suggests that Fastly has cached a partial request rather than a full one, I'm still working with Fastly to get this fixed as it's a known bug.

@swi-jared
Copy link

@gdams Any update on this?

@PhilipGarnero
Copy link

Same issue with temurin 17 on my side. It used to arise from time to time but it's been completely out for the last hour.

@lhotari
Copy link

lhotari commented Dec 14, 2023

I'm hitting problems in apache/pulsar's CI builds.

[INFO] DOCKER> Err:30 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-17-jdk amd64 17.0.9.0.0+9
  403  Forbidden [IP: 146.75.31.42 443]
[INFO] DOCKER> Fetched 6128 kB in 0s (15.7 MB/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  403  Forbidden [IP: 146.75.31.42 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
  Error reading from server. Remote end closed connection [IP: 146.75.39.42 443]
[INFO] DOCKER> Fetched 6128 kB in 2s (2886 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.39.42 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I noticed a very short initial timeout of 250 milliseconds in the Debian apt code:
https://salsa.debian.org/apt-team/apt/-/blob/c555d8f1ae31d1f511bf811640423231b75a8e13/methods/connect.cc#L457-464
It seems to iterate through all DNS resolved IPs and have the 250 ms timeout. After this, the timeout is set to 30 seconds.
I wonder if this 250 milliseconds timeout could be causing extra load on servers?

I'm trying with 2000 milliseconds here: apache/pulsar#21727 (I haven't checked results yet).

Trying with a apt config file /etc/apt/apt.conf.d/99timeout_and_retries with

Acquire::http::Timeout 30;
Acquire::http::ConnectionAttemptDelayMsec 2000;
Acquire::https::Timeout 30;
Acquire::https::ConnectionAttemptDelayMsec 2000;
Acquire::ftp::Timeout 30;
Acquire::ftp::ConnectionAttemptDelayMsec 2000;
Acquire::Retries 15;

@karianna
Copy link
Contributor

karianna commented Jan 2, 2024

I'm hitting problems in apache/pulsar's CI builds.

[INFO] DOCKER> Err:30 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-17-jdk amd64 17.0.9.0.0+9
  403  Forbidden [IP: 146.75.31.42 443]
[INFO] DOCKER> Fetched 6128 kB in 0s (15.7 MB/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  403  Forbidden [IP: 146.75.31.42 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
  Error reading from server. Remote end closed connection [IP: 146.75.39.42 443]
[INFO] DOCKER> Fetched 6128 kB in 2s (2886 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.39.42 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I noticed a very short initial timeout of 250 milliseconds in the Debian apt code: https://salsa.debian.org/apt-team/apt/-/blob/c555d8f1ae31d1f511bf811640423231b75a8e13/methods/connect.cc#L457-464 It seems to iterate through all DNS resolved IPs and have the 250 ms timeout. After this, the timeout is set to 30 seconds. I wonder if this 250 milliseconds timeout could be causing extra load on servers?

I'm trying with 2000 milliseconds here: apache/pulsar#21727 (I haven't checked results yet).

Trying with a apt config file /etc/apt/apt.conf.d/99timeout_and_retries with

Acquire::http::Timeout 30;
Acquire::http::ConnectionAttemptDelayMsec 2000;
Acquire::https::Timeout 30;
Acquire::https::ConnectionAttemptDelayMsec 2000;
Acquire::ftp::Timeout 30;
Acquire::ftp::ConnectionAttemptDelayMsec 2000;
Acquire::Retries 15;

@gdams maybe some clues here as to what is going on

@mezpahlan
Copy link

Hi there I think I'm having the same issues and have no idea how to get past this. Is there an easy workaround or timeline you can share for when this is supposed to work. I just want to be able to update my system without these error messages. Cheers 👍 .

image

@mrairzuk
Copy link

Can approve, issue is happening again with the new temurin-17-jdk version:

Err:1 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-17-jdk amd64 17.0.10.0.0+7
  400  Bad Request [IP: 151.101.247.42 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jdk_17.0.10.0.0%2b7_amd64.deb  400  Bad Request [IP: 151.101.247.42 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@iAweX
Copy link

iAweX commented Jan 25, 2024

Same problem. And there are no package in repo.

image

image

@karianna
Copy link
Contributor

We've manually replaced some of the missing packages (root cause analysis is still ongoing) so please do try again and let us know!

@ByCzech
Copy link

ByCzech commented Jan 26, 2024

We've manually replaced some of the missing packages (root cause analysis is still ongoing) so please do try again and let us know!

Still persist at least on JRE 17 package:

Err:1 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-17-jre amd64 17.0.10.0.0+7
400 Bad Request [IP: 151.101.195.42 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jre_17.0.10.0.0%2b7_amd64.deb 400 Bad Request [IP: 151.101.195.42 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@mrairzuk
Copy link

We've manually replaced some of the missing packages (root cause analysis is still ongoing) so please do try again and let us know!

Just successfully updated JDK 17

Get:1 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-17-jdk amd64 17.0.10.0.0+7 [166 MB]
Fetched 166 MB in 1min 40s (1659 kB/s)

@ByCzech
Copy link

ByCzech commented Jan 26, 2024

Right now new problem with JDK 21 + JRE 17 remain (see above):

Err:1 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-17-jre amd64 17.0.10.0.0+7
400 Bad Request [IP: 151.101.3.42 443]
Err:2 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-21-jdk amd64 21.0.2.0.0+13
400 Bad Request [IP: 151.101.3.42 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jre_17.0.10.0.0%2b7_amd64.deb 400 Bad Request [IP: 151.101.3.42 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-21-jdk_21.0.2.0.0%2b13_amd64.deb 400 Bad Request [IP: 151.101.3.42 443]

@gdams
Copy link
Member

gdams commented Jan 26, 2024

E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jre_17.0.10.0.0%2b7_amd64.deb 400 Bad Request [IP: 151.101.3.42 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-21-jdk_21.0.2.0.0%2b13_amd64.deb 400 Bad Request [IP: 151.101.3.42 443]

@ByCzech those URL's look broken (see the $%7BVERSION%7D) I'll check this out

@ByCzech
Copy link

ByCzech commented Jan 26, 2024

E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jre_17.0.10.0.0%2b7_amd64.deb 400 Bad Request [IP: 151.101.3.42 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-21-jdk_21.0.2.0.0%2b13_amd64.deb 400 Bad Request [IP: 151.101.3.42 443]

@ByCzech those URL's look broken (see the $%7BVERSION%7D) I'll check this out

I know, this happened in past too. See above #766 (comment)

@ByCzech
Copy link

ByCzech commented Jan 26, 2024

Problem seems solved for me. This try i successfully upgraded temurin-17-jre temurin-21-jdk temurin-21-jre temurin-8-jdk packages.

@mezpahlan
Copy link

Hi thanks all for the help trying to get this working. I've tried again from my home connection and it still didn't work (updating JDK 17). This is on my work laptop which got me thinking maybe it is my companies VPN messing things up.

I turned off my VPN and tried the update again and this time it has worked 🎈 .

image

So for everyone else with the same problem maybe try turning off your VPN? I still think it should work when the VPN is connected but this might be an easy workaround?

@slovdahl
Copy link

slovdahl commented Mar 4, 2024

Also getting something similar in CI now:

5.610   Error reading from server. Remote end closed connection [IP: 151.101.247.42 443]
5.616 E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-17/temurin-17-jdk_17.0.10.0.0%2b7_amd64.deb  Error reading from server. Remote end closed connection [IP: 151.101.247.42 443]

@emile-ekane-vectorive
Copy link

emile-ekane-vectorive commented Apr 5, 2024

Hello, Just tried installing temurin-21-jdk and got this error.
System : Ubuntu 22.04.3 LTS

ekane@pcdata08:~$ sudo apt-get install temurin-21-jdk
[sudo] password for ekane:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package temurin-21-jdk

Is there a workaround solution ?

@dmayo3
Copy link

dmayo3 commented Apr 19, 2024

Just had this issue with debian bookworm while trying to install temurin 21.

Weirdly none of the packages would be available to install unless I ran the following command twice 🤔

add-apt-repository https://packages.adoptium.net/artifactory/deb/

After that it worked.

@dmayo3
Copy link

dmayo3 commented Apr 19, 2024

For those seeing 403 Forbidden [IP: x.x.x.x] type errors, there seems to be some sort of rate limiting in place.

I was seeing this a lot when rebuilding docker images a lot that included the temurin package.

I would have to wait a while before retrying again.

Now I avoid reinstalling it as often and it hasn't been an issue for me lately.

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