docker-lazylibrarian-calibre icon indicating copy to clipboard operation
docker-lazylibrarian-calibre copied to clipboard

Unable to sync with calibre

Open a575606 opened this issue 6 years ago • 3 comments

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!

a575606 avatar Jan 11 '19 18:01 a575606

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']

a575606 avatar Jan 11 '19 19:01 a575606

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.

image

During the install of the docker you should have set 3 directories.

  1. 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.

image

  1. 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.

  2. 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.

image

Sometime in the future I may look into how the calibre-server communication is supposed to work but the current method works for me.

Thraxis avatar Jan 12 '19 09:01 Thraxis

That's a lazylibrarian config message, you need to configure some column names. See https://lazylibrarian.gitlab.io/config_calibre_sync/

philborman avatar Feb 03 '19 16:02 philborman