Closed ennerf closed 3 months ago
Maybe Adoptium are having issues. I just tried that URL using wget and it served me a JDK, not a 404. Replica issues perhaps?
Maybe. I just tried again, but I still get the same error for both urls. The urls for 21
work fine.
wget https://api.adoptopenjdk.net/v3/binary/latest/22/ga/windows/x64/jdk/hotspot/normal/adoptopenjdk
--2024-05-30 16:55:15-- https://api.adoptopenjdk.net/v3/binary/latest/22/ga/windows/x64/jdk/hotspot/normal/adoptopenjdk
Resolving api.adoptopenjdk.net (api.adoptopenjdk.net)... 2606:4700::6811:4a51, 2606:4700::6811:4b51, 104.17.74.81, ...
Connecting to api.adoptopenjdk.net (api.adoptopenjdk.net)|2606:4700::6811:4a51|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-05-30 16:55:16 ERROR 404: Not Found.
I can't reproduce this so I filed a ticket with the API folks to investigate.
@ennerf Are you still having this issue? The AdoptOpenJDK API folks can't reproduce this failure; maybe it was a temporary flake.
Yes, it seems to be some georeplication issue. I'm still getting the issue when running from Austria, but it works when I try to download it through our US office. Same computer with and without VPN:
Austria
> wget https://api.adoptopenjdk.net/v3/binary/latest/22/ga/windows/x64/jdk/hotspot/normal/adoptopenjdk
--2024-06-06 12:22:19-- https://api.adoptopenjdk.net/v3/binary/latest/22/ga/windows/x64/jdk/hotspot/normal/adoptopenjdk
Resolving api.adoptopenjdk.net (api.adoptopenjdk.net)... 104.17.75.81, 104.17.74.81, 2606:4700::6811:4b51, ...
Connecting to api.adoptopenjdk.net (api.adoptopenjdk.net)|104.17.75.81|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-06-06 12:22:20 ERROR 404: Not Found.
US East (VPN)
> wget https://api.adoptopenjdk.net/v3/binary/latest/22/ga/windows/x64/jdk/hotspot/normal/adoptopenjdk
--2024-06-06 12:25:45-- https://api.adoptopenjdk.net/v3/binary/latest/22/ga/windows/x64/jdk/hotspot/normal/adoptopenjdk
Resolving api.adoptopenjdk.net (api.adoptopenjdk.net)... 104.17.75.81, 104.17.74.81, 2606:4700::6811:4b51, ...
Connecting to api.adoptopenjdk.net (api.adoptopenjdk.net)|104.17.75.81|:443... connected.
HTTP request sent, awaiting response... 307 Temporary Redirect
Location: https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.1%2B8/OpenJDK22U-jdk_x64_windows_hotspot_22.0.1_8.zip [following]
--2024-06-06 12:25:46-- https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.1%2B8/OpenJDK22U-jdk_x64_windows_hotspot_22.0.1_8.zip
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/677419466/d91e461b-d57b-4238-9a11-436de290d91b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240606%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240606T102548Z&X-Amz-Expires=300&X-Amz-Signature=6cd49f4c3d7cbbd244a220a1ef4f453ad05adf92d0a6e1c2d9dc1cfb8f317ff2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=677419466&response-content-disposition=attachment%3B%20filename%3DOpenJDK22U-jdk_x64_windows_hotspot_22.0.1_8.zip&response-content-type=application%2Foctet-stream [following]
--2024-06-06 12:25:47-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/677419466/d91e461b-d57b-4238-9a11-436de290d91b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240606%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240606T102548Z&X-Amz-Expires=300&X-Amz-Signature=6cd49f4c3d7cbbd244a220a1ef4f453ad05adf92d0a6e1c2d9dc1cfb8f317ff2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=677419466&response-content-disposition=attachment%3B%20filename%3DOpenJDK22U-jdk_x64_windows_hotspot_22.0.1_8.zip&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.109.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 203356730 (194M) [application/octet-stream]
Saving to: ‘adoptopenjdk’
adoptopenjdk 100%[====================================================================>] 193.94M 22.4MB/s in 10s
2024-06-06 12:25:58 (19.2 MB/s) - ‘adoptopenjdk’ saved [203356730/203356730]
They fixed it their end, so it should be resolved now. We'll look at migrating to the new/same/different API they offer.
Description
I'm using the latest conveyor 14.2, but I keep getting errors that JLink for Java 22 was not found.
I tried various versions listed in the
conveyor jdk-table
:e.g.
conveyor make site
downloads the JDKs correctly, but eventually it fails on the JLink step withRelevant Log section
It looks like the adoptopenjdk urls don't work for 22