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

JDK install on Ubuntu fails with HTTP 403 #554

Open
ppanyukov opened this issue Aug 1, 2022 · 46 comments
Open

JDK install on Ubuntu fails with HTTP 403 #554

ppanyukov opened this issue Aug 1, 2022 · 46 comments
Labels
bug Something isn't working keep This label can be applied to prevent the Stale bot from closing it after a period of inactivity

Comments

@ppanyukov
Copy link

Please provide a brief summary of the bug

Something is wrong with SAS keys, maybe they expired?

Please provide steps to reproduce where possible

On Ubuntu 20.04, following instructions from here: https://blog.adoptium.net/2021/12/eclipse-temurin-linux-installers-available/

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

wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | apt-key add -

echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list

apt-get update # update if you haven't already

apt-get install temurin-17-jdk

Expected Results

Obviously expecting the install to work :)

Actual Results

Result:

Err:28 https://packages.adoptium.net/artifactory/deb focal/main arm64 temurin-17-jdk arm64 17.0.4.0.0+8
  403  Forbidden [IP: 143.204.192.207 443]

E: Failed to fetch https://d3d227kvr2djy5.cloudfront.net/filestore/3e/3e51e8df20fe00a8b7f9e775a99594e20297b93e?response-content-type=application/x-debian-package&x-jf-traceId=960916e5c561db0a&X-Artifactory-repositoryKey=deb&X-Artifactory-projectKey=temurin&X-Artifactory-artifactPath=pool/main/t/temurin-17/temurin-17-jdk_17.0.4.0.0+8_arm64.deb&X-Artifactory-username=anonymous&Expires=1659354254&Signature=REDACTED

403  Forbidden [IP: 143.204.192.207 443]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

What Java Version are you using?

11

What is your operating system and platform?

Ubuntu 20.04: both x64 and ARM

How did you install Java?

No response

Did it work before?

Yes it did.

Did you test with other Java versions?

Yes, 11 and 17. Both broken. Both on ARM and x64.

On various machines too with different connectivity.

Relevant log output

No response

@sxa
Copy link
Member

sxa commented Aug 1, 2022

@gdams is looking into this and is going to see if there is any problem on the JFrog side (JFrog host our installers)

@theofficialgman
Copy link

theofficialgman commented Aug 2, 2022

can confirm this issue on bionic arm64 as well on new installs as well as existing installs with this repo. seems to be the entire repo

theofficialgman referenced this issue in Botspot/pi-apps Aug 2, 2022
also change name of variable from server_type to server_category to more closely match the API of serverjars.com that now has a new "type" variable (ex: Vanilla, Modded, Servers, Bedrock, Proxies)
@vladislav-orlovskiy
Copy link

vladislav-orlovskiy commented Aug 2, 2022

Is the version specified in the repo even deployed yet? The release of these versions is still open.
Cloudfront+S3 usually sends 403 for nonexisting files too.

@vn09917
Copy link

vn09917 commented Aug 2, 2022

do we have an ETA for fixing this. all our vmss builds are failing due to packer build dependencies:
azure-arm: Err:6 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-8-jdk amd64 8.0.332.0.0+9-1
azure-arm: 403 Forbidden [IP: 99.84.178.22 443]
azure-arm: Fetched 2290 kB in 1s (3927 kB/s)
==> azure-arm: E: Failed to fetch https://d3d227kvr2djy5.cloudfront.net/filestore/fb/fbffefb222179ebac0a9ce6c183a67544fdc79e7?response-content-type=application/x-debian-package&x-jf-traceId=8d346b60501a05ab&X-Artifactory-repositoryKey=deb&X-Artifactory-projectKey=temurin&X-Artifactory-artifactPath=pool/main/t/temurin-8/temurin-8-jdk_8.0.332.0.0+9-1_amd64.deb&X-Artifactory-username=anonymous&Expires=1659379922&Signature=XXX__&Key-Pair-Id=XXX 403 Forbidden [IP: 99.84.178.22 443]
==> azure-arm: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
==> azure-arm: cat: /usr/lib/jvm/temurin-8-jdk-amd64/release: No such file or directory

@vladislav-orlovskiy
Copy link

@vn09917 can you please try to perform an apt install with a bit lower version of the package and send us the output? I can't prove my guess rn cause my issue is related to an ansible role that uses the hardcoded latest version of the apt package.

@gdams
Copy link
Member

gdams commented Aug 2, 2022

I believe this is fixed now. The issue was caused by us enabling the CDN on artificatory which doesn't seem to be working properly. For now, I've disabled the CDN and I'll raise a bug asking the jfrog team to look into why the CDN is giving us problems.

@vladislav-orlovskiy
Copy link

@gdams Thank you so much!

@Ercolino
Copy link

Ercolino commented Aug 26, 2022

It seems that the issue still exists.
I get following error:

#0 147.0 Err:16 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-8-jdk amd64 8.0.345.0.0+1-1
#0 147.0   403  Forbidden [IP: 10.24.80.18 8080]
#0 147.0 Fetched 170 MB in 2min 18s (1,232 kB/s)
#0 147.0 E: Failed to fetch https://jfrog-prod-usw2-shared-oregon-main.s3.amazonaws.com/aol-adoptium/filestore/64/64feb26d9d22c3cc5f531087b18fac828c2d28fe?X-Artifactory-username=anonymous&X-Artifactory-repositoryKey=deb&X-Artifactory-artifactPath=pool/main/t/temurin-8/temurin-8-jdk_8.0.345.0.0+1-1_amd64.deb&X-Artifactory-projectKey=temurin&x-jf-traceId=25547a525b426390&response-content-type=application/x-debian-package&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20220826T071706Z&X-Amz-SignedHeaders=host&X-Amz-Expires=60&X-Amz-Credential=AKIASG3IHPL6RZALTNGC/20220826/us-west-2/s3/aws4_request&X-Amz-Signature=6b1322ac0be7a247a291cb4facf538c5151029da5869710eefc5ea9475c006e4  403  Forbidden [IP: 10.24.80.18 8080]
#0 147.0 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@berndschatz
Copy link

berndschatz commented Nov 11, 2022

I have the same issue on a docker build on several clients and VMs.
But we have also some clients / vms where the same docker build works.

`
Get:15 http://deb.debian.org/debian buster/main amd64 libxtst6 amd64 2:1.2.3-1 [27.8 kB]
Get:16 https://packages.adoptium.net/artifactory/deb buster/main amd64 temurin-11-jdk amd64 11.0.17.0.0+8 [167 MB]
Err:17 https://packages.adoptium.net/artifactory/deb buster/main amd64 temurin-17-jdk amd64 17.0.5.0.0+8
403 Forbidden [IP: 52.92.197.113 443]
Err:18 https://packages.adoptium.net/artifactory/deb buster/main amd64 temurin-8-jdk amd64 8.0.352.0.0+8-1
403 Forbidden [IP: 52.92.197.113 443]
Fetched 172 MB in 4min 26s (646 kB/s)
E: Failed to fetch https://jfrog-prod-usw2-shared-oregon-main.s3.amazonaws.com/aol-adoptium/filestore/09/097d73e62006a695c21cd374fb0c1119f13c07af?X-Artifactory-username=anonymous&X-Artifactory-repositoryKey=deb&X-Artifactory-artifactPath=pool/main/t/temurin-17/temurin-17-jdk_17.0.5.0.0+8_amd64.deb&X-Artifactory-projectKey=temurin&x-jf-traceId=773d524acd2d1fe5&response-content-type=application/x-debian-package&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20221111T092354Z&X-Amz-SignedHeaders=host&X-Amz-Expires=60&X-Amz-Credential=AKIASG3IHPL6RZALTNGC/20221111/us-west-2/s3/aws4_request&X-Amz-Signature=012d69c2d59706fa13acf7c9d1cb3a10bd8b9913f4ccb569eb92861d05b18339 403 Forbidden [IP: 52.92.197.113 443]
E: Failed to fetch https://jfrog-prod-usw2-shared-oregon-main.s3.amazonaws.com/aol-adoptium/filestore/f8/f8e30de36e704eafa3fe4615c32200171e5a44ae?X-Artifactory-username=anonymous&X-Artifactory-repositoryKey=deb&X-Artifactory-artifactPath=pool/main/t/temurin-8/temurin-8-jdk_8.0.352.0.0+8-1_amd64.deb&X-Artifactory-projectKey=temurin&x-jf-traceId=f77e6638819329de&response-content-type=application/x-debian-package&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20221111T092354Z&X-Amz-SignedHeaders=host&X-Amz-Expires=60&X-Amz-Credential=AKIASG3IHPL6RZALTNGC/20221111/us-west-2/s3/aws4_request&X-Amz-Signature=90fe933c199be8c014d97a980db03d097f85b8d1b7344278e5f28532f2bfe0de 403 Forbidden [IP: 52.92.197.113 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

`

It seems it depends where the clients are located.
Can it be that there is an issue with jfrog-prod-usw2-shared-oregon-main.s3.amazonaws.com,
and on the clients, where it works, the packages are delivered from other amazon locations ?

@rylectro
Copy link

rylectro commented Sep 1, 2023

This is still happening. Is there a fix?

@gdams
Copy link
Member

gdams commented Sep 1, 2023

@rylectro we rolled out a fix (#632 (comment)) and @nathan818fr confirmed it was working for him! Can you provide a log showing the issue?

@Stiverton
Copy link

Stiverton commented Oct 2, 2023

I'm having this issue also.

The error when I run locally:

870.4 The following NEW packages will be installed:
870.4   temurin-17-jdk
872.0 0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
872.0 Need to get 165 MB of archives.
872.0 After this operation, 330 MB of additional disk space will be used.
872.0 Get:1 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-17-jdk amd64 17.0.8.1.0+1 [165 MB]
872.0 Err:1 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-17-jdk amd64 17.0.8.1.0+1
872.0   File has unexpected size (3029 != 165381640). Mirror sync in progress? [IP: 151.101.139.42 443]
872.0   Hashes of expected file:
872.0    - SHA256:1ad35c78e198a90d6eb4424f391d0d6472c98627af3b7330dfe19fc59e2a6344
872.0    - SHA1:e313bd7b30c0414a6817f43eb236fb53b50ce8d3 [weak]
872.0    - Filesize:165381640 [weak]
872.0 E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-17/temurin-17-jdk_17.0.8.1.0%2b1_amd64.deb  File has unexpected size (3029 != 165381640). Mirror sync in progress? [IP: 151.101.139.42 443]
872.0    Hashes of expected file:
872.0     - SHA256:1ad35c78e198a90d6eb4424f391d0d6472c98627af3b7330dfe19fc59e2a6344
872.0     - SHA1:e313bd7b30c0414a6817f43eb236fb53b50ce8d3 [weak]
872.0     - Filesize:165381640 [weak]
872.0 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

The error on my build agent:

#9 459.5 The following NEW packages will be installed:
#9 459.5   adoptium-ca-certificates fonts-dejavu fonts-dejavu-extra java-common p11-kit
#9 459.5   p11-kit-modules temurin-8-jdk
#9 459.6 0 upgraded, 7 newly installed, 0 to remove and 8 not upgraded.
#9 459.6 Need to get 87.1 MB of archives.
#9 459.6 After this operation, 214 MB of additional disk space will be used.
#9 459.6 Get:1 https://packages.adoptium.net/artifactory/deb jammy/main amd64 adoptium-ca-certificates all 1.0.2-1 [2304 B]
#9 459.6 Get:2 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-8-jdk amd64 8.0.382.0.0+5 [84.8 MB]
#9 459.8 Get:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 p11-kit-modules amd64 0.24.0-6build1 [223 kB]
#9 460.3 Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 p11-kit amd64 0.24.0-6build1 [101 kB]
#9 460.4 Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 fonts-dejavu-extra all 2.37-2build1 [2041 kB]
#9 460.9 Get:6 http://archive.ubuntu.com/ubuntu jammy/universe amd64 fonts-dejavu all 2.37-2build1 [3192 B]
#9 461.0 Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 java-common all 0.72build2 [6782 B]
#9 462.7 Ign:2 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-8-jdk amd64 8.0.382.0.0+5
#9 464.1 Err:2 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-8-jdk amd64 8.0.382.0.0+5
#9 464.1   Error reading from server. Remote end closed connection [IP: 151.101.139.42 443]
#9 464.1 Fetched 2377 kB in 5s (522 kB/s)
#9 464.1 E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-8/temurin-8-jdk_8.0.382.0.0%2b5_amd64.deb  Error reading from server. Remote end closed connection [IP: 151.101.139.42 443]
#9 464.1 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@sxa
Copy link
Member

sxa commented Oct 3, 2023

@Stiverton I've just tried it in an Ubuntu 20.04 docker container and it looks ok for me with both temurin-17-jdk and temurin-8-jdk

@maciej-poleszczyk
Copy link

maciej-poleszczyk commented Oct 3, 2023

I'm getting the same problem for Ubuntu 22.04 - while building packer image in AWS. Locally I can download the package manually without the issue.

While executing ping in AWS packages.adoptium.net resolves for me to 199.232.27.42 and locally to s.sni.global.fastly.net (151.101.3.42) what probably makes the difference.

@gdams
Copy link
Member

gdams commented Oct 3, 2023

I'm getting the same problem for Ubuntu 22.04 - while building packer image in AWS. Locally I can download the package manually without the issue.

While executing ping in AWS packages.adoptium.net resolves for me to 199.232.27.42 and locally to s.sni.global.fastly.net (151.101.3.42) what probably makes the difference.

Please note that we made a change yesterday to wrap Fastly around the JFrog instance. You might be experiencing DNS cache issues here. Can you try clearing cache?

@Stiverton
Copy link

Is there a rate limit that could be causing 403s?

@nathan818fr
Copy link

@Stiverton No 403 errors in your logs.
The problems you're experiencing have nothing to do with this issue (which has been fixed).
You're experiencing a different problem, so maybe you should create a new issue.

@kalpaitch
Copy link

$ ping packages.adoptium.net
PING s.sni.global.fastly.net (146.75.75.42) 56(84) bytes of data.
Err:5 https://packages.adoptium.net/artifactory/deb buster/main amd64 temurin-8-jdk amd64 8.0.382.0.0+5
   403  Forbidden [IP: 151.101.3.42 443]

@phiob
Copy link

phiob commented Oct 5, 2023

Same here, did work before without any problems.

#16 6.247 Err:3 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-11-jdk amd64 11.0.20.1.0+1 #16 6.247 Error reading from server. Remote end closed connection [IP: 151.101.131.42 443]

@gdams
Copy link
Member

gdams commented Oct 9, 2023

@kalpaitch can you provide the full set of install commands that you're running?

@gdams gdams changed the title JDK install on Unbuntu fails with HTTP 403 JDK install on Ubuntu fails with HTTP 403 Oct 9, 2023
@malice00
Copy link

I have this problem a well. I'm trying to build a Docker container with Ubuntu 20 and Temurin 11:

apt-get install temurin-11-jdk
Err:2 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.20.1.0+1
  403  Forbidden [IP: 199.232.19.42 443]

However, when I try the version before that, it works:

apt-get install temurin-11-jdk=11.0.20.0.0+8
Get:1 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.20.0.0+8 [168 MB]
Fetched 168 MB in 5s (37.0 MB/s)

For now, this works for me, but at some point I would like to be able to just use the first call and get the latest version of Temurin...

@gdams
Copy link
Member

gdams commented Oct 18, 2023

@BillyLiou did the above command fix your issue?

@malice00
Copy link

Weird... I had decided to use one of your docker images instead, but I wanted to test mentioned workaround -- I can't reproduce the error anymore: installing either curl or wget to get the repository key, also installs/updates ca-certs after which everything works as expected... Not sure what I did differently before...

@BillyLiou
Copy link

Hi @gdams,
it worked.
But I will still observe it's stability.

Thanks.

@dustingrady
Copy link

I still see the issue after updating my ca-certs on Ubuntu 22.04 with error 400:

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.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]

@markwoon
Copy link

Seeing the same thing. Following the URL (https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-17/temurin-17-jdk_17.0.9.0+9_amd64.deb) fails with a 501.

@kohlidevops
Copy link

I tried below option. Firstly I download the deb package and installed manually. Its working fine for me.

$sudo wget https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-17/temurin-17-jdk_17.0.9.0+9_amd64.deb
$sudo dpkg -i temurin-17-jdk_17.0.9.0+9_amd64.deb

Try this.

@twistedpair
Copy link

Happening today:

Err:7 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-17-jdk amd64 17.0.9.0.0+9

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: 151.101.3.42 443]
Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

This had been working for my build automation until now.

@PhilipGarnero
Copy link

Same thing on my side. It's been on and off for a while... Is there anyway to switch to something more stable ?

@bsloan-icl
Copy link

bsloan-icl commented Jan 16, 2024

Experiencing the same issue. We install the JDK as part of an init script for Jenkins Azure VM agents (Ubuntu 20.4). Seems to be happening sporadically. Sometimes the agents will be spun up without issue and other times we'll get the 403 error.

Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.21.0.0+9 403 Forbidden [IP: 151.101.63.42 443]

We're using the installation instructions from https://adoptium.net/en-GB/installation/linux/ for Ubuntu.

sudo apt-get install -y wget apt-transport-https
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null
echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
sudo apt-get update -y
sudo apt-get install -y temurin-11-jdk

@andy-potter-evotix
Copy link

Getting the same issue when building AWS AMI using Packer.

 amazon-ebs: Get:1 http://eu-west-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 p11-kit-modules amd64 0.23.20-1ubuntu0.1 [231 kB]
    amazon-ebs: Get:2 https://packages.adoptium.net/artifactory/deb focal/main amd64 adoptium-ca-certificates all 1.0.2-1 [2304 B]
    amazon-ebs: Get:3 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-8-jdk amd64 8.0.392.0.0+8 [84.8 MB]
    amazon-ebs: Get:4 http://eu-west-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 p11-kit amd64 0.23.20-1ubuntu0.1 [93.8 kB]
    amazon-ebs: Get:5 http://eu-west-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 fonts-dejavu-extra all 2.37-1 [1953 kB]
    amazon-ebs: Get:6 http://eu-west-2.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 fonts-dejavu all 2.37-1 [3130 B]
    amazon-ebs: Get:7 http://eu-west-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 java-common all 0.72 [6816 B]
    amazon-ebs: Get:8 http://eu-west-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libxtst6 amd64 2:1.2.3-1 [12.8 kB]
    amazon-ebs: Err:3 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-8-jdk amd64 8.0.392.0.0+8
    amazon-ebs:   403  Forbidden [IP: 146.75.75.42 443]
    amazon-ebs: Fetched 2303 kB in 1s (1659 kB/s)
==> amazon-ebs: E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-8/temurin-8-jdk_8.0.392.0.0+8_amd64.deb  403  Forbidden [IP: 146.75.75.42 443]
==> amazon-ebs: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@jappenzesr
Copy link

+1 when building https://github.com/actions/runner-images/blob/main/images/ubuntu/templates/ubuntu-20.04.pkr.hcl. Seems to be intermittent. It only fails for version17:
azure-arm.build_image: Get:1 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-21-jdk amd64 21.0.1.0.0+12 [177 MB]
==> azure-arm.build_image: E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-21/temurin-21-jdk_21.0.1.0.0+12_amd64.deb 403 Forbidden [IP: 151.101.39.42 443]

The installations of version 11 (and 8) work fine.
azure-arm.build_image: Get:1 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7 [168 MB]
azure-arm.build_image: Fetched 168 MB in 2s (80.7 MB/s)

Any way to improve availability of this repository?

@bsloan-icl
Copy link

bsloan-icl commented Feb 2, 2024

Not sure if this will help with the debugging but we've setup a job to download and install temurin-11-jdk. This job ran every hour for the past 2 days. You can see from the logs below that it's always the same 403 error. I was curious if there were certain times this was happening but there doesn't seem to be any consistency between the time the error occurred. The timezone is GMT.

2024-02-02T07:59:19.476+0000 403 Forbidden [IP: 146.75.75.42 443]
2024-02-02T07:59:19.476+0000 Err:7 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-02T04:59:16.621+0000 403 Forbidden [IP: 146.75.75.42 443]
2024-02-02T04:59:16.621+0000 Err:7 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-02T01:15:28.655+0000 403 Forbidden [IP: 146.75.75.42 443]
2024-02-02T01:15:28.655+0000 Err:2 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-02T01:04:58.636+0000 403 Forbidden [IP: 146.75.75.42 443]
2024-02-02T01:04:58.636+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-02T00:59:21.176+0000 403 Forbidden [IP: 146.75.75.42 443]
2024-02-02T00:59:21.176+0000 Err:5 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-02T00:04:59.092+0000 403 Forbidden [IP: 146.75.75.42 443]
2024-02-02T00:04:59.092+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-01T23:59:27.658+0000 403 Forbidden [IP: 151.101.63.42 443]
2024-02-01T23:59:27.657+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-01T22:59:14.823+0000 403 Forbidden [IP: 151.101.63.42 443]
2024-02-01T22:59:14.823+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-01T20:59:19.524+0000 403 Forbidden [IP: 151.101.63.42 443]
2024-02-01T20:59:19.524+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-01T17:59:34.146+0000 403 Forbidden [IP: 151.101.63.42 443]
2024-02-01T17:59:34.146+0000 Err:3 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-01T16:59:21.665+0000 403 Forbidden [IP: 146.75.75.42 443]
2024-02-01T16:59:21.665+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-01T15:59:33.340+0000 403 Forbidden [IP: 151.101.63.42 443]
2024-02-01T15:59:33.340+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-01T12:05:09.350+0000 403 Forbidden [IP: 146.75.75.42 443]
2024-02-01T12:05:09.350+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-01T11:59:18.711+0000 403 Forbidden [IP: 146.75.75.42 443]
2024-02-01T11:59:18.711+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-01T11:04:58.807+0000 403 Forbidden [IP: 151.101.63.42 443]
2024-02-01T11:04:58.807+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-01T10:59:18.365+0000 403 Forbidden [IP: 151.101.63.42 443]
2024-02-01T10:59:18.365+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-01T09:59:20.198+0000 403 Forbidden [IP: 151.101.63.42 443]
2024-02-01T09:59:20.198+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-01T01:14:59.518+0000 403 Forbidden [IP: 151.101.63.42 443]
2024-02-01T01:14:59.518+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-01T01:04:58.346+0000 403 Forbidden [IP: 151.101.63.42 443]
2024-02-01T01:04:58.346+0000 Err:5 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-01T00:59:17.572+0000 403 Forbidden [IP: 151.101.63.42 443]
2024-02-01T00:59:17.572+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-02-01T00:04:58.334+0000 403 Forbidden [IP: 151.101.63.42 443]
2024-02-01T00:04:58.334+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-01-31T23:59:20.179+0000 403 Forbidden [IP: 146.75.75.42 443]
2024-01-31T23:59:20.179+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-01-31T22:59:19.191+0000 403 Forbidden [IP: 146.75.75.42 443]
2024-01-31T22:59:19.191+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-01-31T21:59:19.414+0000 403 Forbidden [IP: 146.75.75.42 443]
2024-01-31T21:59:19.414+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
2024-01-31T20:59:20.465+0000 403 Forbidden [IP: 151.101.63.42 443]
2024-01-31T20:59:20.465+0000 Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7

@DenWav
Copy link

DenWav commented Feb 4, 2024

This seems to be happening for me only for JDK 21, on Ubuntu 22.04.

Selecting the previous version of the package (21.0.1.0.0+12) works fine.

@urbandroid
Copy link

i get the same error with my isp connection but when using VPN it goes away i think it is a area restriction on repo side.

@bt-nia
Copy link

bt-nia commented Feb 20, 2024

I can confirm this issue as well.

105.4 Get:523 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-8-jdk amd64 8.0.402.0.0+6 [84.8 MB]
121.2 Err:523 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-8-jdk amd64 8.0.402.0.0+6
121.2   403  Forbidden [IP: 199.232.19.42 443]

I'm coming from a Central European IP (mobile network and office did not work). Switching to a Californian IP it works.

@roeizavida
Copy link

Not working for me as well:

#23 7.992 Err:4 https://packages.adoptium.net/artifactory/deb bullseye/main amd64 temurin-11-jdk amd64 11.0.22.0.0+7
#23 7.992   Error reading from server. Remote end closed connection [IP: 151.101.3.42 443]
#23 8.004 Fetched 5140 kB in 2s (3257 kB/s)
#23 8.004 E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-11/temurin-11-jdk_11.0.22.0.0%2b7_amd64.deb  Error reading from server. Remote end closed connection [IP: 151.101.3.42 443]
#23 8.004 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@wkgcass
Copy link

wkgcass commented Mar 3, 2024

Failed when trying to make an arm docker image (base image is ubuntu 20.04), the client is spawn with Github Actions

9.281 Err:3 https://packages.adoptium.net/artifactory/deb focal/main arm64 temurin-21-jdk arm64 21.0.2.0.0+13-2
9.281   403  Forbidden [IP: 146.75.31.42 443]
9.291 Fetched 4066 kB in 3s (1281 kB/s)
9.291 E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-21/temurin-21-jdk_21.0.2.0.0+13-2_arm64.deb  403  Forbidden [IP: 146.75.31.42 443]
9.292 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@TomLewis
Copy link

TomLewis commented May 5, 2024

Same issue for me on Debian

@Akkowicz
Copy link

Akkowicz commented May 28, 2024

Getting 403 when using apt for installing temurin packages from ASN: AS24940.

Workaround:
Package download works fine when using wget, I just moved packages manually into the /var/cache/apt/archives/

Copy link

We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable.
It will be closed soon unless the stale label is removed by a committer, or a new comment is made.

@github-actions github-actions bot added the stale label Aug 27, 2024
@karianna karianna added keep This label can be applied to prevent the Stale bot from closing it after a period of inactivity and removed stale labels Aug 27, 2024
@Akkowicz
Copy link

Issue still persists, just experienced it today on a new system - JDK 17 installed just fine, JDK 21 failed on the same system.

The following NEW packages will be installed:
  temurin-21-jdk
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 177 MB of archives.
After this operation, 362 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.4.0.0+7-1
  403  Forbidden [IP: 146.75.123.42 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-21/temurin-21-jdk_21.0.4.0.0%2b7-1_amd64.deb  403  Forbidden [IP: 146.75.123.42 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

It also fails when using wget from the same machine, the connection gets closed mid-transfer.

wget https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-21/temurin-21-jdk_21.0.4.0.0%2b7-1_amd64.deb
--2024-08-27 14:26:28--  https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-21/temurin-21-jdk_21.0.4.0.0%2b7-1_amd64.deb
Resolving packages.adoptium.net (packages.adoptium.net)... 146.75.123.42
Connecting to packages.adoptium.net (packages.adoptium.net)|146.75.123.42|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 177364876 (169M) [application/x-debian-package]
Saving to: ‘temurin-21-jdk_21.0.4.0.0+7-1_amd64.deb.1’

temurin-21-jdk_21.0.4.0.0+7-1_amd64.deb.1  28%[=======================>                                                              ]  48.00M   247MB/s    in 0.2s

2024-08-27 14:26:29 (247 MB/s) - Connection closed at byte 50331648. Retrying.

--2024-08-27 14:26:30--  (try: 2)  https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-21/temurin-21-jdk_21.0.4.0.0%2b7-1_amd64.deb
Connecting to packages.adoptium.net (packages.adoptium.net)|146.75.123.42|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2024-08-27 14:26:31 ERROR 403: Forbidden.

It seems like some problem with fastly (possibly some WAF? or anti DDoS feature)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working keep This label can be applied to prevent the Stale bot from closing it after a period of inactivity
Projects
None yet
Development

No branches or pull requests