crocodilestick / Calibre-Web-Automated

Calibre-Web but automated and with Calibre features! Fully automate and simplify your eBook set up!
https://github.com/crocodilestick/Calibre-Web-Automated
GNU General Public License v3.0
752 stars 16 forks source link

[bug] Removing config data, still created database in old path #74

Closed newdamage1 closed 1 week ago

newdamage1 commented 2 months ago

Describe the bug Not 100% this is a bug, human error...

The database is recreated in the old location, even after the compose file is changed, and the /config file is cleared.

To Reproduce

Stop container.

Removing the old calibre database path :

   - /data/E-books/calibre_old:/calibre-library

To the new database path :

   - /data/E-books/calibre_new:/calibre-library

Remove all files within :

   - /docker/appdata/calibre-web-automated/config

Restart container

The calibre_old folder is recreated, with a database.

My compose file looks like this:

   calibre-web-automated:
     image: crocodilestick/calibre-web-automated:latest
     container_name: calibre-web-automated
     environment:
       - PUID=xxxx
       - PGID=xxxx
       - TZ=America/New_York
       - DOCKER_MODS=linuxserver/mods:universal-calibre
     volumes:
       - /docker/appdata/calibre-web-automated/config:/config
       - /data/E-books/calibre_new:/calibre-library
     ports:
       - 8069:8083 
     restart: unless-stopped

Expected behavior I would expect it would use the new configuration path.

Screenshots If applicable, add screenshots to help explain your problem.

Configuration(please complete the following information):

Additional context Add any other context about the problem here.

jmarmstrong1207 commented 2 months ago

do you mean that the database is still being recreated in /data/E-books/calibre_old? When you recompose the docker file, it 100% definitely will use /data/E-books/calibre_new, mounting to /calibre-library.

Have you tried recomposing via docker compose up -d?