jenkins-infra / helpdesk

Open your Infrastructure related issues here for the Jenkins project
https://github.com/jenkins-infra/helpdesk/issues/new/choose
17 stars 10 forks source link

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

Closed MarkEWaite closed 2 months ago

MarkEWaite commented 2 months ago

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

dduportal commented 2 months ago

Multiple possible causes, need to investigate:

dduportal commented 2 months ago

First set of actions:

dduportal commented 2 months ago

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 commented 2 months ago

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

dduportal commented 2 months ago
dduportal commented 2 months ago

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

Reopened https://github.com/jenkins-infra/helpdesk/issues/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 commented 2 months ago

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

dduportal commented 2 months ago

Thanks!