docker-lazylibrarian-calibre
docker-lazylibrarian-calibre copied to clipboard
Unable to sync with calibre
I switched to this image as it incorporates calibredb, so it can update my calibre database when new books are processed. In LL's config, I enabled use calibredb and put in the path and I get a success message when I click test.
However, when I click "calibre sync" on the manage tab, I get the following error:
"User lazylibrarian has no calibre columns set"
I opened global.py in the config directory and set the path to the calibre library and books. Not sure if there's any other configuration needed? The documentation is pretty scarce, or I'm looking in the wrong place.
Any help would be appreciated. Thanks!
Here is a sample of some of the log messages. Isn't calibredb supposed to be run with --enable-write? I don't see where I can add runtime options.
2019-01-12 01:49:30 | DEBUG | WEBSERVER | calibre.py | calibredb | 439 | calibredb err 0[]
-- | -- | -- | -- | -- | -- | --
2019-01-12 01:49:30 | DEBUG | WEBSERVER | calibre.py | calibredb | 438 | calibredb res 451[category tag_name count rating authors CATEGORY ITEMS 340 formats CATEGORY ITEMS 5 #genre CATEGORY ITEMS 30 identifiers CATEGORY ITEMS 14 languages CATEGORY ITEMS 1 news CATEGORY ITEMS 0 publisher CATEGORY ITEMS 296 rating CATEGORY ITEMS 4 series CATEGORY ITEMS 104 tags CATEGORY ITEMS 31 ]
2019-01-12 01:49:30 | DEBUG | WEBSERVER | calibre.py | calibredb | 434 | calibredb rc 0
2019-01-12 01:49:30 | DEBUG | WEBSERVER | common.py | runScript | 1033 | [u'/opt/calibre/calibredb', 'list_categories', '-i', '--with-library', u'/books']
2019-01-12 01:49:30 | DEBUG | WEBSERVER | calibre.py | calibredb | 439 | calibredb err 0[]
2019-01-12 01:49:30 | DEBUG | WEBSERVER | calibre.py | calibredb | 438 | calibredb res 25[calibredb (calibre 3.37) ]
2019-01-12 01:49:30 | DEBUG | WEBSERVER | calibre.py | calibredb | 434 | calibredb rc 0
2019-01-12 01:49:29 | DEBUG | WEBSERVER | common.py | runScript | 1033 | [u'/opt/calibre/calibredb', '--version']
By default the setup is configured already to use calibredb to import books. you should not need to make any changes at all to enable it. You should certainly not have been editing the global.py file.
During the install of the docker you should have set 3 directories.
- The /download folder.
I allow all my dockers to map to the parent download folder in my case this is /mnt/cache/downloads. Below this I have a "complete" and an "incomplete" folder and below complete I have a "books" folder. Inside LL-C config I point the download to /downloads/complete/books.
-
The /books folder. In this case as we are using a local calibredb program this should point to the Calibre library you will be importing new books into.
-
The /magazines folder. I do download magazines and I keep this seperate from my calibre e-book library. Point to your magazine folder here and set your config settings as needed.
Sometime in the future I may look into how the calibre-server communication is supposed to work but the current method works for me.
That's a lazylibrarian config message, you need to configure some column names. See https://lazylibrarian.gitlab.io/config_calibre_sync/