Giter Site home page Giter Site logo

Comments (8)

tucker19 avatar tucker19 commented on September 18, 2024

This is running on Ubuntu and Docker 2.4

from uptime-kuma.

louislam avatar louislam commented on September 18, 2024

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.

tucker19 avatar tucker19 commented on September 18, 2024

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.

rezzorix avatar rezzorix commented on September 18, 2024

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

tucker19 avatar tucker19 commented on September 18, 2024

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

rezzorix avatar rezzorix commented on September 18, 2024

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.

louislam avatar louislam commented on September 18, 2024

Sadly, you mapped to a wrong path, the db should be lost.

from uptime-kuma.

tucker19 avatar tucker19 commented on September 18, 2024

Thanks for all the help. Looks like I have been able to get everything fixed now.

from uptime-kuma.

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.