fix(media): load chaptarr scripts from /config, not a ./ mount
A relative bind resolves to Portainer's internal /data/compose/<id>/ path and would bind an empty dir, so chaptarr couldn't find start.sh. Load the scripts from /config/chaptarr/scripts (already mounted at /config) instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5d70a4e825
commit
73d7d674fc
2 files changed
+8
-6
No files matched your search
@@ -64,9 +64,9 @@ sudo chown -R 1000:1000 /config/chaptarr /config/calibre-web-automated /config/a
|
||||
|
||||
## Hardlinks + chaptarr's ebook copy (2026-12-03)
|
||||
|
||||
- Chaptarr mounts `/storage1` **once**. `chaptarr/start.sh` (the entrypoint wrapper) symlinks `/downloads`, `/audiobooks` and `/ebooks` into it. With separate bind mounts, `link()` fails with EXDEV and chaptarr silently copied every import instead, so seeding audiobooks existed twice. The container paths didn't change, so chaptarr's DB needed no migration.
|
||||
- Chaptarr mounts `/storage1` **once**. `/config/scripts/start.sh` (the entrypoint wrapper; host `/config/chaptarr/scripts/`, canonical copy `stacks/media/chaptarr/`, scp it on change) symlinks `/downloads`, `/audiobooks` and `/ebooks` into it. With separate bind mounts, `link()` fails with EXDEV and chaptarr silently copied every import instead, so seeding audiobooks existed twice. The container paths didn't change, so chaptarr's DB needed no migration.
|
||||
- `/ebooks` → `/storage1/Media/Ebooks` is chaptarr's own ebook folder (it used to be the CWA ingest folder, which CWA empties, so chaptarr thought every ebook was missing).
|
||||
- Connect → Custom Script **"CWA ingest"** (`/scripts/cwa-ingest.sh`, On Import + On Upgrade) hardlinks each newly imported ebook into `/storage1/complete/books-ingest/<Author>/`. CWA deletes its link after ingest, and chaptarr's file remains.
|
||||
- Connect → Custom Script **"CWA ingest"** (`/config/scripts/cwa-ingest.sh`, On Import + On Upgrade) hardlinks each newly imported ebook into `/storage1/complete/books-ingest/<Author>/`. CWA deletes its link after ingest, and chaptarr's file remains.
|
||||
- Existing Calibre books were backfilled by hardlinking them from `/storage1/Media/Books` into `/storage1/Media/Ebooks/<Author>/` and rescanning.
|
||||
- Hardlinks share content, so never edit files in `/storage1/Media/Ebooks` in place (e.g. chaptarr metadata writing). That would also change Calibre's copy of a backfilled book.
|
||||
|
||||
|
||||
Reference in new issue
Block a user