Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

advanced search error #2341

Closed
Andei opened this issue Mar 19, 2022 · 9 comments
Closed

advanced search error #2341

Andei opened this issue Mar 19, 2022 · 9 comments

Comments

@Andei
Copy link

Andei commented Mar 19, 2022

Describe the bug/problem
advanced search error

Logfile
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/app/calibre-web/cps/usermanagement.py", line 38, in decorated_view
return login_required(func)(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/flask_login/utils.py", line 272, in decorated_view
return func(*args, **kwargs)
File "/app/calibre-web/cps/web.py", line 753, in books_list
return render_books_list(data, sort_param, book_id, page)
File "/app/calibre-web/cps/web.py", line 375, in render_books_list
return render_adv_search_results(term, offset, order, config.config_books_per_page)
File "/app/calibre-web/cps/web.py", line 1277, in render_adv_search_results
read_column = cc[config.config_read_column]
IndexError: list index out of range

Environment (please complete the following information):

  • OS: Windows 10
  • Python version:python2.7.18
  • Calibre-Web version: 0.6.17
  • Docker container: Synology NAS
  • Browser: Firefox 98.0.1
@OzzieIsaacs
Copy link
Collaborator

Calibre-Web is configured to have linked a custom calibre column to the read status. (?).
Looks the linked column is no longer in the database present. (?)
Please go to basic UI configuration and check the value of "Link Read/Unread Status to Calibre Column".
It's possible that entering this menu and just clicking save will resolve the issue.
grafik

@Andei
Copy link
Author

Andei commented Mar 20, 2022

It was set correctly. Nevertheless I saved it again, but the error still happens

@OzzieIsaacs
Copy link
Collaborator

In calibre itself it‘s possible to mark a column as inactive or deleted or something like this, could you please doublecheck this?

OzzieIsaacs added a commit that referenced this issue Mar 20, 2022
…olumn (#2341)

Prevent metadata changes are lost on edit books with errors (#2326)
Better log output
Renamed log message on database delete
@OzzieIsaacs
Copy link
Collaborator

In the newest nightly version the error is catched and should lead to a log entry but no longer to an exception.
If you don't find the problem I need the metadata.db and the app.db file and I can have a look why this is happening if everything is set up correct

@Andei
Copy link
Author

Andei commented Mar 25, 2022

Sorry for the late reply.
There wasn't any column inactive or deleted. Maybe it's because of my 20k entries in the DB? My metadata.db is 40MB,
Where do I find the app.db, please?

@OzzieIsaacs
Copy link
Collaborator

Found it. Epic fail

@Andei
Copy link
Author

Andei commented Mar 26, 2022

Thx for you time!

OzzieIsaacs added a commit that referenced this issue Mar 27, 2022
Refactored and removed discover html page
Bugfix show author
Bugfix open dialog in author page
Fix for #2341 (advanced search with linked read column and read column having a higher number than number of available custom columns)
@OzzieIsaacs
Copy link
Collaborator

Please check the newest nightly version, the error should disappear now. The reason was that the custom columns were wrongly linked to the search query in case of a configured read column

@Andei
Copy link
Author

Andei commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants