Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compose.yaml edits won't save #693

Closed
2 tasks done
truthsword opened this issue Dec 26, 2024 · 1 comment
Closed
2 tasks done

Compose.yaml edits won't save #693

truthsword opened this issue Dec 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@truthsword
Copy link

⚠️ Please verify that this bug has NOT been reported before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

Trying to edit container name. When I click Save I get:

👟 Reproduction steps

Edit any compose file and click Save.

👀 Expected behavior

No error

😓 Actual Behavior

Here is my compose.yaml

services:
  dockge:
    image: louislam/dockge:latest
    restart: unless-stopped
    container_name: dockge
    cap_drop:
      - ALL
    security_opt:
      - no-new-privileges=true
    environment:
      # Tell Dockge where is your stacks directory
      - DOCKGE_STACKS_DIR=/opt/stacks # this is the container side
    network_mode: bridge
    ports:
      - "5001:5001"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - data:/app/data
      - /home/me/stacks:/opt/stacks
volumes:
    data:

Dockge Version

1.4.2

💻 Operating System and Arch

Debian 12

🌐 Browser

LibreWolf 133.0.3-1

🐋 Docker Version

27.4.1

🟩 NodeJS Version

No response

📝 Relevant log output

dockge  | 2024-12-26T22:20:31Z [SERVER] INFO: Welcome to dockge!
dockge  | 2024-12-26T22:20:31Z [SERVER] INFO: NODE_ENV: production
dockge  | 2024-12-26T22:20:31Z [SERVER] INFO: Server Type: HTTP
dockge  | 2024-12-26T22:20:31Z [SERVER] INFO: Data Dir: ./data/
dockge  | 2024-12-26T22:20:31Z [DB] INFO: Database Type: sqlite
dockge  | 2024-12-26T22:20:31Z [SERVER] INFO: Connected to the database
dockge  | 2024-12-26T22:20:31Z [SERVER] INFO: Listening on 5001
dockge  | 2024-12-26T22:20:33Z [AUTH] INFO: Origin is not set, IP: ::ffff:192.168.1.154
dockge  | 2024-12-26T22:20:34Z [SERVER] INFO: Socket connected (direct)
dockge  | 2024-12-26T22:20:34Z [AUTH] INFO: Disabled Auth: auto login to admin
@truthsword truthsword added the bug Something isn't working label Dec 26, 2024
@truthsword
Copy link
Author

It seems the CAP DROP ALL is the issue leading to:

dockge  | 2024-12-27T01:01:38Z [DB] INFO: Database Type: sqlite
dockge  | 2024-12-27T01:01:38Z [SERVER] INFO: Connected to the database
dockge  | Can't take lock to run migrations: update `knex_migrations_lock` set `is_locked` = 1 where `is_locked` = 0 - SQLITE_READONLY: attempt to write a readonly database
dockge  | If you are sure migrations are not running you can release the lock manually by running 'knex migrate:unlock'
dockge  | 2024-12-27T01:01:38Z [DB] ERROR: Database migration failed
dockge  | 2024-12-27T01:01:38Z [SERVER] ERROR: Failed to prepare your database: update `knex_migrations_lock` set `is_locked` = 1 where `is_locked` = 0 - SQLITE_READONLY: attempt to write a readonly database
dockge exited with code 0

Open to suggestions on specific CAP ADD to resolve this. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants