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

Unable to Download Update-Center.json for Jenkins LTS 2.479.2 #4463

Open
vsrucha opened this issue Dec 23, 2024 · 6 comments
Open

Unable to Download Update-Center.json for Jenkins LTS 2.479.2 #4463

vsrucha opened this issue Dec 23, 2024 · 6 comments
Assignees

Comments

@vsrucha
Copy link

vsrucha commented Dec 23, 2024

Service(s)

Update center

Summary

I’m upgrading Jenkins from 2.426.3 to the latest LTS version (2.479.2). While attempting to download plugins, I faced a 404 error for the following URL: updates.jenkins.io/dynamic-stable-2.479.2/update-center.json
After investigation, I found that this URL is not indexed in: mirrors.jenkins.io/updates/

Steps taken so far:

Verified the redirected URL and confirmed that the update-center.json file is missing.
Checked the Jenkins mirrors but couldn’t find the dynamic update file for 2.479.2.

Reproduction steps

Step 1 curl -I https://mirrors.updates.jenkins.io/dynamic-stable-2.479.2/update-center.json

This url is returning 404

@vsrucha vsrucha added the triage Incoming issues that need review label Dec 23, 2024
@dduportal dduportal self-assigned this Dec 23, 2024
@dduportal dduportal added this to the infra-team-sync-2025-01-07 milestone Dec 23, 2024
@dduportal dduportal removed the triage Incoming issues that need review label Dec 23, 2024
@dduportal
Copy link
Contributor

Hi @vsrucha , where do you get these URLs from?

I'm asking because none of the provided URLs are valid or expected to work.

@dduportal
Copy link
Contributor

  • First of all, mirrors.jenkins.io/updates/ is and alias for the get.jenkins.io download service which is only expected to be used for binary files (plugins for instance). It is unrelated to the Update Center.
  • Second, you are expected to access the Update Center through the updates.jenkins.io hostname. If you do not, there are NO guarantee about the behavior. The mirrors.updates.jenkins.io is a platform implementation detail which may change at any moment.
  • Third: you are not expected to consume directly the /dynamic-xxxx-yyyy endpoints. These endpoints are platform implementation details which may change at any moment.

Jenkins controllers and the jenkins-plugin-cli are using a query string instead, and then follow redirections to reach the file to download: https://updates.jenkins.io/update-center.json?version=2.479.2.

If you cannot use this URL, please describe your use case below.

@dduportal
Copy link
Contributor

Any news @vsrucha ?

@vsrucha
Copy link
Author

vsrucha commented Dec 24, 2024

Hello @dduportal ,

I am upgrading Jenkins to latest LTS and while attempting to download plugins, I am facing issues. I will provide logs for your reference. Please let me know.

Logs:

https://updates.jenkins.io/dynamic-stable-2.479.2/update-center.json
Resolving updates.jenkins.io (updates.jenkins.io)... 20.7.178.24, 2603:1030:408:5::15a
Connecting to updates.jenkins.io (updates.jenkins.io)|20.7.178.24|:443... connected.
HTTP request sent, awaiting response... 307 Temporary Redirect
Location: https://mirrors.updates.jenkins.io/dynamic-stable-2.479.2/update-center.json [following]
--2024-12-23 05:13:30-- https://mirrors.updates.jenkins.io/dynamic-stable-2.479.2/update-center.json
Resolving mirrors.updates.jenkins.io (mirrors.updates.jenkins.io)... 20.7.178.24, 2603:1030:408:5::15a
Connecting to mirrors.updates.jenkins.io (mirrors.updates.jenkins.io)|20.7.178.24|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-12-23 05:13:31 ERROR 404: Not Found.

@dduportal
Copy link
Contributor

Hello @dduportal ,

I am upgrading Jenkins to latest LTS and while attempting to download plugins, I am facing issues. I will provide logs for your reference. Please let me know.

Logs:

https://updates.jenkins.io/dynamic-stable-2.479.2/update-center.json Resolving updates.jenkins.io (updates.jenkins.io)... 20.7.178.24, 2603:1030:408:5::15a Connecting to updates.jenkins.io (updates.jenkins.io)|20.7.178.24|:443... connected. HTTP request sent, awaiting response... 307 Temporary Redirect Location: https://mirrors.updates.jenkins.io/dynamic-stable-2.479.2/update-center.json [following] --2024-12-23 05:13:30-- https://mirrors.updates.jenkins.io/dynamic-stable-2.479.2/update-center.json Resolving mirrors.updates.jenkins.io (mirrors.updates.jenkins.io)... 20.7.178.24, 2603:1030:408:5::15a Connecting to mirrors.updates.jenkins.io (mirrors.updates.jenkins.io)|20.7.178.24|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2024-12-23 05:13:31 ERROR 404: Not Found.

Hi @vsrucha , this logs excerpt it not sufficient: yes it shows HTTP/404 but it is the only information we can get from it. We need more information.

There is clearly an issue on your setup as we haven't heard about any issue and we cannot reproduce on any of our LTS controllers.

What is the configured Update Center URL in this Jenkins controller? It looks like you're having a setup which forces the use of "https://updates.jenkins.io/dynamic-stable-2.479.2/update-center.json" which is wrong (the default URL is https://updates.jenkins.io/update-center.json: try to empty the field in the UI, in the Plugin Manager => the button "Reset to default will appear and set the value to this URL).

@timja
Copy link
Member

timja commented Dec 24, 2024

How are you downloading plugins is it inside Jenkins or using something else?

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

No branches or pull requests

3 participants