Comments (8)
This is running on Ubuntu and Docker 2.4
from uptime-kuma.
It looks like your sqlite db is corrupted. You may try to repair it.
The db is located at "/app/data/kuma.db". It should be binding to your volume.
from uptime-kuma.
Thank you for getting back with me. I have tried doing a exec into the container and I am seeing a error
$docker exec -it uptime-kuma /bin/bash
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown
I try this same command on other containers and it works fine. I cannot find this directory you have stated to either delete the db or repair it.
from uptime-kuma.
@tucker19 you got the docker exec error because you need to go into /bin/sh instead of /bin/bash
docker exec -it uptime-kuma /bin/sh
Edit:
I also suggest mounting the kuma.db somewhere outside the container; so you could start the container like this for example:
docker run -d --name uptime-kuma --restart=always -p 3001:3001 -v /home/user/uptime/data:/app/data louislam/uptime-kuma:latest
from uptime-kuma.
@rezzorix Thank you for that info. Never really used /bin/sh, I have only ever used /bin/bash. I am actually using Docker-Compose file for this and I do have a Volume in there but this container never puts anything in there
uptime-kuma:
image: louislam/uptime-kuma
container_name: uptime-kuma
environment:
PUID: $PUID
PGID: $PGID
TZ: $TZ
ports:
- 3001:3001
volumes:
- $DOCKER_PATH/uptime-kuma/config:/config
restart: unless-stopped
Do I need to change this to something different?
from uptime-kuma.
I do have a Volume in there but this container never puts anything in there
- $DOCKER_PATH/uptime-kuma/config:/config
Well the data folder of uptime-kuma is /app/data
So you need to change to this:
uptime-kuma:
image: louislam/uptime-kuma
container_name: uptime-kuma
environment:
PUID: $PUID
PGID: $PGID
TZ: $TZ
ports:
- 3001:3001
volumes:
- $DOCKER_PATH/uptime-kuma/config:/app/data
restart: unless-stopped
Anyway, make sure that the path $DOCKER_PATH/uptime-kuma/config
exists and the read/write permissions are set
from uptime-kuma.
Sadly, you mapped to a wrong path, the db should be lost.
from uptime-kuma.
Thanks for all the help. Looks like I have been able to get everything fixed now.
from uptime-kuma.
Related Issues (20)
- Data too long for column 'info_json' when monitoring cloudfunctions.net Endpoints HOT 1
- Help with configuration
- Send hourly status notification alert HOT 6
- How can I disable two-step verification during login? HOT 1
- Status Page Tick-Hover like Uptime Robot
- Add option to ignore failed MQTT broker connection HOT 1
- How can I set up a way to view the status of my website site directly without having to log in HOT 1
- Cannot login into /metrics 401 HOT 4
- Error: Invalid label name when using non-ASCII characters in tags HOT 1
- Cannot open dashboard (error after login in logs, but no message on login page) HOT 4
- Update Cloudflared to latest version HOT 2
- How do I set up to view the status of a monitored website without logging in and opening this app? HOT 1
- Error to connect in docker container HOT 2
- [Functional suggestion] Alarm prompt function HOT 2
- Unable to start Uptime Kuma HOT 2
- MYSQL monitor by number row return
- Maximum number of redirects exceeded HOT 4
- Trobule Updating to newest version HOT 3
- Option to configure `UPTIME_KUMA_LOG_FORMAT`: `json` or `text` HOT 1
- Install Uptime-Kuma into custom data directory HOT 1
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.