-
Notifications
You must be signed in to change notification settings - Fork 142
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
Docker container unhealthy #225
Comments
What version of |
I'm using the edit: I did try some older versions last night, but I saw no different behavior until I reached a 4.x version that was not compatible with Docker Secrets. |
Now that the databases have updated, here's some evidence of my claim. At the very least, regardless of frequency, we can be certain that whenever the databases are updated, -rw------- 1 root root 0 Apr 20 06:03 .geoipupdate.lock
-rw-r--r-- 1 root root 8157979 Apr 21 04:01 GeoLite2-ASN.mmdb
-rw-r--r-- 1 root root 72441306 Apr 21 04:01 GeoLite2-City.mmdb
-rw-r--r-- 1 root root 5841222 Apr 21 04:01 GeoLite2-Country.mmdb |
5.1.0 * Fixed the Docker health-check script to use the correct time of the last update attempt. Reported by cford1080. GitHub #225. * Added new `--output` flag to print JSON to standard output describing the result of the run. * Compilation with Go versions before 1.19 is no longer supported. * When using the provided Docker images, `geoipupdate` no longer runs as root in the container. Based on pull request by Andreas Grünenfelder. GitHub #200.
Despite the logs stating a lock is acquired and subsequently released, the file properties on
.geoipupdate.lock
are not being updated, resulting in the Docker healthcheck failing.Log:
According to the Dockerfile:
But the access time of the lock file does not change, resulting in no change detected on the GeoIP directory when the databases aren't updated.
I did recently find the update schedule and did update
GEOIPUPDATE_FREQUENCY
from 8 hours to 3 days to better align with that, but I'd still call this undesirable behavior.The text was updated successfully, but these errors were encountered: