How to limit GeoIP database refresh frequency? #2295
-
Shlink version4.1.0 PHP version0.0.0 How do you serve ShlinkSelf-hosted nginx Database enginePostgreSQL Database version16 SummarySince the past few days we are getting "Daily GeoIP Database Download Limit Reached" emails from MaxMind. Looking at the shlink logs does show that an attempt is being made to fetch an updated database and it is failing for this reason. I did see a closed issue for something similar, from the start of the year, but we are using a more recent version and this. Is there any way to throttle or pause the GeoIP data refresh? BTW a partial log output:
No evidence of pod restart, since 27 August 2024. And... We are using the 'shlinkio/shlink:stable' docker image, in a Kubernetes cluster, and a hosted database at Digital Ocean. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
It is a bit unfortunate, but there's sadly something in Shlink that makes this happen from time to time, and no one has been able to reproduce it consistently or find the root cause. The issue you mention there is an old bug that was fixed, but the same happened later and was reported here #2114 With no clear cause or way to reproduce it, my plan is to change how Shlink downloads the GeoLite database, in an attempt to reduce the chances for this to happen. You can see more details here #2124 At the moment, the only thing I can suggest is creating a new license key and trying to restart the service. Hopefully the containers will download new GeoLite instances and this issue will be silenced. |
Beta Was this translation helpful? Give feedback.
-
The restart seemed to have resolved the issue, but we will look into the upgrade. |
Beta Was this translation helpful? Give feedback.
FYI, Shlink 4.4.0 introduced a new system to determine when to update the geolite db file, which should avoid, or at least reduce a lot, API limit errors. I would recommend trying this version.
You can find more details here #2124