plugin-installation-manager-tool icon indicating copy to clipboard operation
plugin-installation-manager-tool copied to clipboard

Log the suggested mirrors for download

Open garethjevans opened this issue 3 years ago • 5 comments

Feature Request

We often get reports of plugins that fail to download, and from running the install process in --verbose mode we can see where it has attempted to download a plugin from - this is often surprising as builds taking place in the US often appear to be redirected to EU/Japan.

Could we enhance the log output to show the recommended download location and all the extra "links", like a log representation of the ?mirrorlist endpoint.

garethjevans avatar Apr 13 '21 08:04 garethjevans

Hello, everyone I'd like to resolve this issue, but there's a question

How can I get the mirror list ? Is this ?mirrorlist endpoint already exist?

eugenelesnov avatar Jul 10 '21 16:07 eugenelesnov

Better late than never. Yes, get.jenkins.io provides mirror stats for any download URL. E.g. https://get.jenkins.io/war/2.316/jenkins.war?mirrorstats

oleg-nenashev avatar Oct 18 '21 05:10 oleg-nenashev

Haha, I got it. Thanks :)

eugenelesnov avatar Oct 18 '21 05:10 eugenelesnov

Hi @oleg-nenashev I see that the mirrorstats for plugins are same, can we get the sites from the mirrorstats endpoint and store it and print in logs for this issue. I am willing to take up this task. Please let me know if this approach is fine

d-saravanan avatar Oct 15 '23 12:10 d-saravanan

Hi @oleg-nenashev I see that the mirrorstats for plugins are same, can we get the sites from the mirrorstats endpoint and store it and print in logs for this issue. I am willing to take up this task. Please let me know if this approach is fine

I believe that the reason @garethjevans recommended mirrorlist rather than mirrorstats is because mirrorlist reports the priority of the mirror for the user. The mirrorstats page shows the data transfer volume but does not give any indication of the priority of each download site for that user.

For comparison, look at the mirrorlist pages:

  • https://updates.jenkins.io/latest/git.hpi?mirrorlist
  • https://get.jenkins.io/plugins/git/5.2.0/git.hpi?mirrorlist

The mirrorstats page does not include the mirror priority

  • https://get.jenkins.io/plugins/git/5.2.0/git.hpi?mirrorstats

MarkEWaite avatar Oct 15 '23 12:10 MarkEWaite