GithubHelp home page GithubHelp logo

Comments (4)

Outsmart2383 avatar Outsmart2383 commented on May 18, 2024

Okay, so I'm starting to wonder if this is possibly a limitation of Calibre-Web?

I have to use the - CALIBRE_OVERRIDE_DATABASE_PATH=/db/metadata.db entry, because my books are stored on my NAS, and this doesn't play nicely with the database file.

But Calibre web expects my books to be stored in the directory of the database file, as that is the usual approach.

Does that seem to be correct? (I'm just surprised I'm the first person in the situation if it is!)

If so... feature request?

from calibre-web.

Outsmart2383 avatar Outsmart2383 commented on May 18, 2024

Not a novel issue: #1462

from calibre-web.

Outsmart2383 avatar Outsmart2383 commented on May 18, 2024

I have tried to implement this as a solution: #1462 (comment)

So for me I mapped: - /data/calibre/db/metadata.db:/mnt/arr/Media/Books/eBooks/metadata.db

I then went into Calibre-Web and set my Location of Calibre Database to /mnt/arr/Media/Books/eBooks/metadata.db

But now I get:

Calibre-Web
500 Internal Server Error
The server encountered an internal error and was unable to complete your request. There is an error in the application.
Traceback (most recent call last):
File "/lsiopy/lib/python3.10/site-packages/flask/app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
File "/lsiopy/lib/python3.10/site-packages/flask/app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/lsiopy/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "/lsiopy/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/app/calibre-web/cps/usermanagement.py", line 35, in decorated_view
return login_required(func)(*args, **kwargs)
File "/lsiopy/lib/python3.10/site-packages/flask_login/utils.py", line 290, in decorated_view
return current_app.ensure_sync(func)(*args, **kwargs)
File "/app/calibre-web/cps/web.py", line 790, in index
return render_books_list("newest", sort_param, 1, page)
File "/app/calibre-web/cps/web.py", line 408, in render_books_list
entries, random, pagination = calibre_db.fill_indexpage(page, 0, db.Books, True, order[0],
File "/app/calibre-web/cps/db.py", line 803, in fill_indexpage
return self.fill_indexpage_with_archived_books(page, database, pagesize, db_filter, order, False,
File "/app/calibre-web/cps/db.py", line 810, in fill_indexpage_with_archived_books
random_query = self.generate_linked_query(config_read_column, database)
File "/app/calibre-web/cps/db.py", line 764, in generate_linked_query
query = (self.session.query(database, ub.ArchivedBook.is_archived, ub.ReadBook.read_status)
AttributeError: 'NoneType' object has no attribute 'query'
Please report this issue with all related information: [Create Issue](https://github.com/janeczku/calibre-web/issues/new/choose)

Must have done something wrong, as the metadata.db file in /mnt/arr/Media/Books/eBooks is empty.

from calibre-web.

Outsmart2383 avatar Outsmart2383 commented on May 18, 2024

Okay, so reverting back to this: #1462

I pulled the master branch (whereas I was previously running on latest), and in Calibre-Web in Edit Calibe Database Configuration there is now an option for Separate Book Files from Library and this can be used for selecting the books on the NAS.

from calibre-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.