Skip to content

Conversation

@Sterahi
Copy link

@Sterahi Sterahi commented Nov 19, 2025

The current docker compose does not allow for authentication & provides a less than clear error (CWA_DB_PATH is set to /auth/app.db but this is not a valid path).

Copilot AI review requested due to automatic review settings November 19, 2025 17:00
Copilot finished reviewing on behalf of Sterahi November 19, 2025 17:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR attempts to fix authentication issues in the docker-compose.yml configuration by modifying the volume mount path for the authentication database file.

  • Changes the commented volume mount from /cwa/config/path/app.db:/auth/app.db:ro to /cwa/config/path/app.db:/auth:ro

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

# This is the location of CWA's app.db, which contains authentication
# details. Comment out to disable authentication
#- /cwa/config/path/app.db:/auth/app.db:ro
#- /cwa/config/path/app.db:/auth:ro
Copy link

Copilot AI Nov 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The volume mount path change is inconsistent with the CWA_DB_PATH environment variable. Line 17 sets CWA_DB_PATH: /auth/app.db, but this change mounts the database file to /auth instead of /auth/app.db. This will cause the error "CWA_DB_PATH is set to /auth/app.db but this is not a valid path" because the file won't be found at the expected location.

Either:

  1. Keep the volume mount as /cwa/config/path/app.db:/auth/app.db:ro (revert this change), OR
  2. Update line 17 to CWA_DB_PATH: /auth to match this volume mount change
Suggested change
#- /cwa/config/path/app.db:/auth:ro
#- /cwa/config/path.app.db:/auth.app.db:ro

Copilot uses AI. Check for mistakes.
@calibrain
Copy link
Owner

Could you share what is your current docker compose looks like ?

@Sterahi
Copy link
Author

Sterahi commented Nov 19, 2025

@calibrain Here you go

services:
  calibre-web-automated-book-downloader:
    image: ghcr.io/calibrain/calibre-web-automated-book-downloader:latest
    # Uncomment to build the image from the Dockerfile for local testing changes.
    # Remember to comment out the image line above.
    #build: .
    container_name: calibre-web-automated-book-downloader
    environment:
      FLASK_PORT: 8084
      LOG_LEVEL: info
      BOOK_LANGUAGE: en
      USE_BOOK_TITLE: true
      TZ: America/New_York
      APP_ENV: prod
      UID: 1000
      GID: 100
      CWA_DB_PATH: /auth/app.db  # Comment out to disable authentication
      # Queue management settings
      MAX_CONCURRENT_DOWNLOADS: 3
      DOWNLOAD_PROGRESS_UPDATE_INTERVAL: 5
    ports:
      - 8084:8084
    restart: unless-stopped
    volumes:
      # This is where the books will be downloaded to, usually it would be
      # the same as whatever you gave in "calibre-web-automated"
      - /tmp/data/calibre-web/ingest:/cwa-book-ingest
      # This is the location of CWA's app.db, which contains authentication
      # details. Comment out to disable authentication
      - /cwa/config/path/app.db:/auth:ro

It's the same as the default, but with the authentication enabled & with the one line change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants