GithubHelp home page GithubHelp logo

Comments (7)

ufou avatar ufou commented on July 22, 2024 1

Maxmind have also recently introduced a download limit of 30 times per 24 hours (for the free editions), this means if you are running several ingresses + nginx instances requiring the database you can hit this limit quite quickly, I tried to work around this by setting an extra arg to the ingress controller for maxmind mirror, but this does not seem to work, I have uploaded the databases to a custom location and they are in tar.gz format, which is what the code in maxmind.go suggests, but I then get:

I0325 12:55:13.424947       7 flags.go:387] "downloading maxmind GeoIP2 databases"
E0325 12:55:13.770916       7 maxmind.go:74] GeoLite2-City.mmdb not found
E0325 12:55:13.794877       7 maxmind.go:74] GeoLite2-City.mmdb not found

from ingress-nginx.

k8s-ci-robot avatar k8s-ci-robot commented on July 22, 2024

This issue is currently awaiting triage.

If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

from ingress-nginx.

strongjz avatar strongjz commented on July 22, 2024

Looks like it does download the db in the flag processing, like your logs say

https://github.com/kubernetes/ingress-nginx/blob/main/pkg/flags/flags.go#L400

It should error out @ufou if there is an issue with the download.

Can you exec into the container and see if the file does exist?

from ingress-nginx.

NeckBeardPrince avatar NeckBeardPrince commented on July 22, 2024

Maxmind have also recently introduced a download limit of 30 times per 24 hours (for the free editions), this means if you are running several ingresses + nginx instances requiring the database you can hit this limit quite quickly, I tried to work around this by setting an extra arg to the ingress controller for maxmind mirror, but this does not seem to work, I have uploaded the databases to a custom location and they are in tar.gz format, which is what the code in maxmind.go suggests, but I then get:

I0325 12:55:13.424947       7 flags.go:387] "downloading maxmind GeoIP2 databases"
E0325 12:55:13.770916       7 maxmind.go:74] GeoLite2-City.mmdb not found
E0325 12:55:13.794877       7 maxmind.go:74] GeoLite2-City.mmdb not found

Can you post a snippet of your deployment manifest?

from ingress-nginx.

NeckBeardPrince avatar NeckBeardPrince commented on July 22, 2024

Looks like it does download the db in the flag processing, like your logs say

https://github.com/kubernetes/ingress-nginx/blob/main/pkg/flags/flags.go#L400

It should error out @ufou if there is an issue with the download.

Can you exec into the container and see if the file does exist?

What is the expected format for --maxmind-mirror?
Is it a URL pointing to the database in a .tar.gz format?
Or do you have to use https://www.npmjs.com/package/maxmind-geolite-mirror?

from ingress-nginx.

ufou avatar ufou commented on July 22, 2024

I set a plain URL for the maxmind mirror parameter and had both required databases named like GeoLite2-City.tar.gz GeoLite2-ASN.tar.gz but perhaps the requirement was to have both databases in a single tar.gz file named in a similar convention to the real maxmind download servers instead? I don't think I tried that, we have worked around this anyway by signing up for a 2nd maxmind account, if I get round to testing this I will report back

from ingress-nginx.

github-actions avatar github-actions commented on July 22, 2024

This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach #ingress-nginx-dev on Kubernetes Slack.

from ingress-nginx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.