Skip to content

Editing a volume configuration hangs on confirmation #865

@plaffitt

Description

@plaffitt

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

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

I use rclone docker volume plugin to mount a directory from my NextCloud instance, but updating the volume configuration makes dockge hangs.

volumes:
  nextcloud_photos:
    driver: rclone
    driver_opts:
      type: webdav
      read-only: "true"
      allow-other: "true"
      webdav-url: $URL
      webdav-user: $USERNAME
      webdav-vendor: nextcloud
      webdav-pass: $PASSWORD
      vfs-cache-mode: full
      vfs-cache-max-size: 1G

👟 Reproduction steps

Configure a compose stack with a volume (don't need to use a plugin), deploy it, update the volume configuration and deploy again.

Minimal example (before first deploy):

services:
  nginx:
    image: nginx:latest
    volumes:
      - nextcloud:/mnt
volumes:
  nextcloud: {}

Minimal example (before second deploy):

services:
  nginx:
    image: nginx:latest
    volumes:
      - nextcloud:/mnt
volumes:
  nextcloud:
    labels:
      com.example.description: "A volume"

👀 Expected behavior

Multiple solutions can be envisaged:

  • Pass the --yes flag to the up command
  • Allow interactive confirmation
  • Disable interactive mode and allow user to create / delete volumes some where else

😓 Actual Behavior

Logs show the following prompt:

? Volume "nginx_nextcloud" exists but doesn't match configuration in compose file. Recreate (data will be lost)? (y/N)

It prevents me from interacting with this stack, refreshing the page doesn't help. The only way is to ssh on the server, run docker compose up -d and confirm there AND restart the dockge container.

Dockge Version

1.5.0

💻 Operating System and Arch

Ubuntu 24.04.3 LTS / Kernel 6.8.0-85-generic x86_64

🌐 Browser

Google Chrome 139.0.7258.154 (Official Build) (64-bit)

🐋 Docker Version

Docker 28.4.0

🟩 NodeJS Version

No response

📝 Relevant log output

? Volume "nginx_nextcloud" exists but doesn't match configuration in compose file. Recreate (data will be lost)? (y/N)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions