Comments (2)
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.
- Stop the backend container
- mount up another container, like busybox or similar, with the api volume attached so you can modify permissions.
Something likedocker run --rm -it -v your-kuma-api-volume:/kuma alpine chown -R 100 /kuma
- stop the other container
- 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.
@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)
- Curl example script (POST) not working HOT 1
- service must be a mapping, not a NoneType. HOT 2
- Internal Server Error HOT 2
- POST method for creating Monitor HOT 1
- Invalid HTTP request received. HOT 3
- Not all monitor fields in API? HOT 3
- Incorrect Kuma credentials HOT 6
- Error while creating a monitor HOT 8
- Using /ping/ only gives me the ping of monitor number 1 HOT 2
- Feature Request: Support to set Timezone Parameter
- Allow the application to run under a given URL path? HOT 5
- Error When Creating 'json-query' Type Monitor Using API
- Error When Executing "Get All Status Pages" Using API HOT 2
- Forcing a different user and group in docker-compose results in tmp permission error on startup HOT 1
- Unable to push many monitors at once HOT 3
- Image Startup with "unable to open database file" HOT 1
- admin_password does not update once changed
- Enable Authorization: Bearer <token> in Swagger UI
- Error Version : get statuspage/{slug} HOT 2
- Notifications
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 uptime-kuma-web-api.