Coder Social home page Coder Social logo

Comments (2)

tigunia-martin avatar tigunia-martin commented on August 21, 2024 3

Long story short, it boils down to incorrect permissions on the volume where the sqlite database file is stored.
The author tried to set the volume to rwx with the line on the docker-compose.yml that says:

  volumes:
    - ./db:/db:rwx

but that is likely throwing errors because ro is valid and rw is valid, but I don't think rwx is valid

A way to work around this is to set the db folder to have the correct permissions. There are many ways to accomplish this, but the following command should work best and be least amount of changed permissions.

  1. Stop the backend container
  2. mount up another container, like busybox or similar, with the api volume attached so you can modify permissions.
    Something like docker run --rm -it -v your-kuma-api-volume:/kuma alpine chown -R 100 /kuma
  3. stop the other container
  4. re-run docker-compose up

Everything should boot up at this point.

More discussion here:
#33

There's a PR waiting that addresses this:
#37
Or you van visit the fork here: https://github.com/zacharyfleck/Uptime-Kuma-Web-API/tree/fix/db-dir-perms, grab the code, and build your own docker image

from uptime-kuma-web-api.

markosole avatar markosole commented on August 21, 2024

@tigunia-martin thanks for the fix, I think it's easier to change permissions on the folder: chmod -R 777 db for example.
This works only if you have acces to OS and terminal.

Works for me and should for others too. This can be done through entrypoint.sh as well, as extra one command line.

from uptime-kuma-web-api.

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.