GithubHelp home page GithubHelp logo

Error with v.5.1.0 about geoipupdate HOT 10 CLOSED

viriatusX avatar viriatusX commented on June 14, 2024 2
Error with v.5.1.0

from geoipupdate.

Comments (10)

oschwald avatar oschwald commented on June 14, 2024 4

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.

oschwald avatar oschwald commented on June 14, 2024 1

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.

masterwishx avatar masterwishx commented on June 14, 2024 1

@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.

oschwald avatar oschwald commented on June 14, 2024 1

5.1.1 has been released.

from geoipupdate.

viriatusX avatar viriatusX commented on June 14, 2024

I use geo2ip in unraid. I have mapped the folder correctly.
Captura de pantalla 2023-05-07 a las 20 13 54

from geoipupdate.

masterwishx avatar masterwishx commented on June 14, 2024

having same issue in Unraid in latest version

from geoipupdate.

viriatusX avatar viriatusX commented on June 14, 2024

Solved with this. Thanks :)

from geoipupdate.

Bosh-StocksDigital avatar Bosh-StocksDigital commented on June 14, 2024

I am facing the same issue in AWS ECS, is this considered a bug?
image

from geoipupdate.

masterwishx avatar masterwishx commented on June 14, 2024

, is this considered a bug?

no ,please read above ....

from geoipupdate.

I70l0teN4ik avatar I70l0teN4ik commented on June 14, 2024

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)

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.