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

get.jenkins.io cannot geolocate my IP address on 50% of requests #4261

Closed
MarkEWaite opened this issue Aug 23, 2024 · 8 comments
Closed

get.jenkins.io cannot geolocate my IP address on 50% of requests #4261

MarkEWaite opened this issue Aug 23, 2024 · 8 comments

Comments

@MarkEWaite
Copy link

MarkEWaite commented Aug 23, 2024

Service(s)

get.jenkins.io

Summary

Alternating requests to get.jenkins.io show that half the time it cannot resolve my geographic location

Reproduction steps

  1. Open https://get.jenkins.io/plugins/git/5.3.0/git.hpi?mirrorlist multiple times in succession. Sometimes it will locate the IP address and look like this:
    screencapture-get-jenkins-io-plugins-git-5-3-0-git-hpi-2024-08-23-16_19_42-edit (1)

  2. Sometimes it will not geo-locate the IP address and will look like this:
    screencapture-get-jenkins-io-plugins-git-5-3-0-git-hpi-2024-08-23-16_20_18-edit

@MarkEWaite MarkEWaite added the triage Incoming issues that need review label Aug 23, 2024
@dduportal dduportal added this to the infra-team-sync-2024-08-27 milestone Aug 24, 2024
@dduportal dduportal self-assigned this Aug 24, 2024
@dduportal dduportal removed the triage Incoming issues that need review label Aug 24, 2024
@dduportal
Copy link
Contributor

Multiple possible causes, need to investigate:

@dduportal
Copy link
Contributor

First set of actions:

  • Disabled the GeoIP data container (set deployment manually to zero replicas)
  • Deleting the 2 get.jenkins.io pods one after the other

@dduportal
Copy link
Contributor

First set of actions:

* Disabled the GeoIP data container (set deployment manually to zero replicas)

* Deleting the 2 get.jenkins.io pods one after the other

No results: I can still see the error :|

http: superfluous response.WriteHeader call from github.com/etix/mirrorbits/http.(*HTTP).mirrorStatsHandler (http.go:607)

This is an internal HTTP error :'(Thrown by https://github.com/etix/mirrorbits/blob/e83e56ac6496a3643d18a731324bd266f75f7b32/http/http.go#L607

@dduportal
Copy link
Contributor

Could be related to jenkins-infra/docker-mirrorbits#18. Gotta try with @timja 's proposal (using the Debian package instead of our custom build of mirrorbits)

@dduportal
Copy link
Contributor

  • Root cause described in [get.jenkins.io, azure.updates.jenkins.io] MaxMind GeoIP Rate Limit hit when redeploying/upgrading mirrorbits chart #4240 (comment) (Azure File share)

    • Could not even delete the FileHandle (as pointed out by Microsoft Support pages with their -yikes- PowerShell commands)
    • Triggered by the cluster 1.29 upgrade yesterday
  • Fixed the problem (at least I cannot reproduce it on my machine after the operation while I was hitting it on 80% requests) by using the "Nuclear option" (3 min downtime on get.jenkins.io):

    • manually deleting the Azure File Share
    • Deleted the geoipdata PVC
    • Scaled down all the mirrorbits instances
    • Ran the Terraform Azure project to recreate it empty
    • Downloaded the GeoIP databases manually once from my personal account (as we are currently rate limited...)
    • Uploaded the files to the new (empty) file share
    • Re-applied the get.jio and updates.jio kubernetes helmfiles

@dduportal
Copy link
Contributor

Added the following 2 hotfixes to ensure automation does NOT try to re-create the geoipdata stuff:

Reopened #4240 so that we can implement another solution which does not involve using ReadWriteMany PV.

@MarkEWaite @daniel-beck can you confirm the problem is gone for you?

@MarkEWaite
Copy link
Author

Thanks very much @dduportal . I confirm that the problem is gone for me.

@dduportal
Copy link
Contributor

Thanks!

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

2 participants