Comments (10)
Based on the feedback, we will be reverting the change to use a non-root user within the container. For now, we will leave the code to support running the container as UID 1000 if you specify that. In the future, we may support a step-down approach where the UID and GID can be specified via an environment variable or we may provide two separate images, one that uses root and one that doesn't. Feedback on either of these approaches would be welcomed.
from geoipupdate.
As of 5.1.0, the image no longer runs as the root user by default. It sounds like there is a permission issue writing to the volume in your case. Are you bind mounting a directory on the host? Would you be able to provide more details about your configuration and how you are running the image?
If you want to continue using the root user in the image, you could run it with the --user 0
flag.
from geoipupdate.
@viriatusX Fixed by changed permission in folder to 1000:1000 instead of root like @oschwald said :
chown 1000:1000 .geoipupdate.lock
chown 1000:1000 *
from geoipupdate.
5.1.1 has been released.
from geoipupdate.
I use geo2ip in unraid. I have mapped the folder correctly.
from geoipupdate.
having same issue in Unraid in latest version
from geoipupdate.
Solved with this. Thanks :)
from geoipupdate.
I am facing the same issue in AWS ECS, is this considered a bug?
from geoipupdate.
, is this considered a bug?
no ,please read above ....
from geoipupdate.
My scheduled pipeline in gitlab CI to fetch latest DB failed with 5.1 it seems a bit concerning to me:
Using docker image sha256:2cfbbe399e410c58d66d43a87677eaff06a7ca7e9d9afac1b004c9d9ce1472d8 for maxmindinc/geoipupdate:latest with digest maxmindinc/geoipupdate@sha256:e7ab311bbffab2b341565ea9512259be844f0e5dda038ea903e44ca88b05a144 ...
$ /usr/bin/entry.sh
# STATE: Creating configuration file at /var/lib/geoipupdate/GeoIP.conf
# STATE: Running geoipupdate
geoipupdate version 5.1.0
Using config file /var/lib/geoipupdate/GeoIP.conf
Using database directory /usr/share/GeoIP
Initializing file lock at /usr/share/GeoIP/.geoipupdate.lock
error retrieving updates: error acquiring file lock: error acquiring file lock at /usr/share/GeoIP/.geoipupdate.lock: open /usr/share/GeoIP/.geoipupdate.lock: permission denied
I do not mount any volumes explicitly not even sure what't the proper fix now 🤔
In my CI job I'm just setting the env vars and use downloaded file as an artifact in later stages. That's actually how I'd expect it to work.
from geoipupdate.
Related Issues (20)
- MaxMind and 2fa being enabled August 2nd 2023 HOT 1
- Environment variable for EditionIDs does not work
- Allow variables in GEOIPUPDATE_DB_DIR
- Secret files not getting parsed HOT 6
- Repository on Ubuntu has different versions for X86 and ARM, with different library locations HOT 3
- centos installation geoipupdate0:6 online update failed HOT 3
- geoipupdate output written to stderr instead of stdout HOT 4
- CSV support would be key to be able to use this in conjunction with geolite2legacy HOT 1
- 127.0.0.11:53: server misbehaving HOT 3
- Create new release to fix vuln in alpine version in use HOT 1
- Error to use make file HOT 1
- How to download paid binary using licence key? HOT 1
- GeoIP.conf file still required to exist HOT 1
- Is there an update for R2 presigned URLs? HOT 3
- Error on update HOT 1
- Helm chart HOT 2
- `AccountID` option is required HOT 5
- docker: NFS: Error retrieving updates: acquiring file lock: no locks available HOT 3
- v6 image not producing any output HOT 1
- Version mismatch: Unable to download from proxy.golang.org HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geoipupdate.