janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
12.58k stars 1.32k forks source link

Error raised when trying to search #1047

Closed paulhybryant closed 4 years ago

paulhybryant commented 4 years ago

Internal Server Error 500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application. File "/usr/lib/python2.7/site-packages/flask/app.py", line 2446, in wsgi_app response = self.full_dispatch_request() File "/usr/lib/python2.7/site-packages/flask/app.py", line 1951, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/lib/python2.7/site-packages/flask/app.py", line 1820, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python2.7/site-packages/flask/app.py", line 1949, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python2.7/site-packages/flask/app.py", line 1935, in dispatch_request return self.view_functionsrule.endpoint File "/app/calibre-web/cps/web.py", line 146, in decorated_view return login_required(func)(*args, *kwargs) File "/usr/lib/python2.7/site-packages/flask_login/utils.py", line 261, in decorated_view return func(args, **kwargs) File "/app/calibre-web/cps/web.py", line 790, in search entries = get_search_results(term) File "/app/calibre-web/cps/helper.py", line 744, in get_search_results func.lower(db.Books.title).ilike("%" + term + "%") File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 3178, in all return list(self) File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 105, in instances util.raise_from_cause(err) File "/usr/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=cause) File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 81, in instances fetch = cursor.fetchall() File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 1216, in fetchall e, None, None, self.cursor, self.context File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception util.raise_from_cause(sqlalchemy_exception, exc_info) File "/usr/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=cause) File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 1211, in fetchall l = self.process_rows(self._fetchall_impl()) File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 1161, in _fetchall_impl return self.cursor.fetchall()

I used the latest version by git clone because search stopped working without any change (I have it in a docker image and didn't change it at all and search stopped working). I thought it is issue #1001 so I am trying to see if the latest commit works but seems not.

OzzieIsaacs commented 4 years ago

For me it's working. The error message looks like there is missing something at the end (which is the important part). Could you please give me an example of a non working search (e.g. search for kukuk)

OzzieIsaacs commented 4 years ago

Which version of "sqlalchemy" is installed (visible in the about section), is supposed to be >=1.1.0.

paulhybryant commented 4 years ago

Flask_SimpleLDAP not installed SQLite 3.26.0 SqlAlchemy 1.3.8 Requests 2.22.0 iso639 0.4.5 Flask 1.1.1 Babel 2.7.0 Flask_Login 0.4.1 Unidecode installed Flask_Principal 0.4.0 WebServer Gevent 1.2.1 pytz 2019.2 Jinja2 2.10.1 Werkzeug 0.15.4 Python 2.7.16 (default, May 6 2019, 19:36:07) [GCC 8.3.0] pySqlite 2.6.0 Goodreads installed lxml v4.3.3.0 Image Magick ImageMagick 6.9.10-44 Q16 aarch64 2019-05-06 https://imagemagick.org Wand 0.5.7 PyPdf v1.26.0 Comic_API not installed Pillow v6.0.0 ebook converter ebook-convert (calibre 3.42.0)

OzzieIsaacs commented 4 years ago

The dependencies looking good, is there more output from the error message?

paulhybryant commented 4 years ago

What I pasted is what is shown in the browser. This is the content from server.log:

[2019-09-26 23:48:36,719] ERROR {cps:1891} Exception on /search [GET] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/flask/app.py", line 2446, in wsgi_app response = self.full_dispatch_request() File "/usr/lib/python2.7/site-packages/flask/app.py", line 1951, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/lib/python2.7/site-packages/flask/app.py", line 1820, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python2.7/site-packages/flask/app.py", line 1949, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python2.7/site-packages/flask/app.py", line 1935, in dispatch_request return self.view_functionsrule.endpoint File "/app/calibre-web/cps/web.py", line 146, in decorated_view return login_required(func)(*args, *kwargs) File "/usr/lib/python2.7/site-packages/flask_login/utils.py", line 261, in decorated_view return func(args, **kwargs) File "/app/calibre-web/cps/web.py", line 790, in search entries = get_search_results(term) File "/app/calibre-web/cps/helper.py", line 744, in get_search_results func.lower(db.Books.title).ilike("%" + term + "%") File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 3178, in all return list(self) File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 105, in instances util.raise_from_cause(err) File "/usr/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=cause) File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 81, in instances fetch = cursor.fetchall() File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 1216, in fetchall e, None, None, self.cursor, self.context File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception util.raise_from_cause(sqlalchemy_exception, exc_info) File "/usr/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=cause) File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 1211, in fetchall l = self.process_rows(self._fetchall_impl()) File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 1161, in _fetchall_impl return self.cursor.fetchall() OperationalError: (sqlite3.OperationalError) user-defined function raised exception (Background on this error at: http://sqlalche.me/e/e3q8)

paulhybryant commented 4 years ago

Btw, I clicked on View Logfiles from the management tab, and it just shows "Loading...". Looking at the developer console, I saw this error: https://mydomain:8081/ajax/log/0?_=1569541916709

The server is behind an apache server with ProxyPass where mydomain:8081/calibre is proxypassed to the server. That is probably why the logs cannot be shown?

OzzieIsaacs commented 4 years ago

The logfile not loading behind reverse proxy is a bug, I'll fix it. The original problem: Looks like you are having some sort of problem with the lib "Unidecode". I tried several version, and even without Unidecode everything is working. If you say everything is working and stopped working, this point to a problem after my change for issue 1001. This fix includes a call to Unidecode in the the "lower" function at database access. Could you please try to check:

paulhybryant commented 4 years ago

On Fri, Sep 27, 2019 at 2:08 PM Ozzie Isaacs notifications@github.com wrote:

The logfile not loading behind reverse proxy is a bug, I'll fix it. The original problem: Looks like you are having some sort of problem with the lib "Unidecode". I tried several version, and even without Unidecode everything is working. If you say everything is working and stopped working, this point to a problem after my change for issue 1001. This fix includes a call to Unidecode in the the "lower" function at database access. Could you please try to check:

  • which version of Unidecode is installed by: pip2 freeze | grep Uni

Unidecode==1.1.1

  • if the line 788 in cps/heper.py equals: return unidecode.unidecode(s.lower()) if use_unidecode else s.lower()

I have three version installed currently (6.4 beta, 6.4 and head) In the head version, line 788 has this. In 6.4 beta and 6.4, it doesn't have this line.

As I mentioned previously, search stopped working one day (I didn't change anything at all). I don't think calibre-web update itself automatically right?

Thank you for your time.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/janeczku/calibre-web/issues/1047?email_source=notifications&email_token=AADTSBK76YESTCHUF675KPDQLWPNJA5CNFSM4I2MGK52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7X27JQ#issuecomment-535801766, or mute the thread https://github.com/notifications/unsubscribe-auth/AADTSBJHZOVPTDPTO5OKZHTQLWPNJANCNFSM4I2MGK5Q .

-- With Regards,

Yu Huang

Software Engineer, Google Inc.

paulhybryant commented 4 years ago

I also tried uninstalling Unidecode (with calibre-web HEAD version), and still get this error:

File "/app/calibre-web/cps/web.py", line 146, in decorated_view return login_required(func)(*args, *kwargs) File "/usr/lib/python2.7/site-packages/flask_login/utils.py", line 261, in decorated_view return func(args, **kwargs) File "/app/calibre-web/cps/web.py", line 790, in search entries = get_search_results(term) File "/app/calibre-web/cps/helper.py", line 744, in get_search_results func.lower(db.Books.title).ilike("%" + term + "%") File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 3178, in all return list(self) File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 105, in instances util.raise_from_cause(err) File "/usr/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=cause) File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 81, in instances fetch = cursor.fetchall() File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 1216, in fetchall e, None, None, self.cursor, self.context File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception util.raise_from_cause(sqlalchemy_exception, exc_info) File "/usr/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=cause) File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 1211, in fetchall l = self.process_rows(self._fetchall_impl()) File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 1161, in _fetchall_impl return self.cursor.fetchall()

On Fri, Sep 27, 2019 at 8:44 PM Yu Huang paulhybryant@gmail.com wrote:

On Fri, Sep 27, 2019 at 2:08 PM Ozzie Isaacs notifications@github.com wrote:

The logfile not loading behind reverse proxy is a bug, I'll fix it. The original problem: Looks like you are having some sort of problem with the lib "Unidecode". I tried several version, and even without Unidecode everything is working. If you say everything is working and stopped working, this point to a problem after my change for issue 1001. This fix includes a call to Unidecode in the the "lower" function at database access. Could you please try to check:

  • which version of Unidecode is installed by: pip2 freeze | grep Uni

Unidecode==1.1.1

  • if the line 788 in cps/heper.py equals: return unidecode.unidecode(s.lower()) if use_unidecode else s.lower()

I have three version installed currently (6.4 beta, 6.4 and head) In the head version, line 788 has this. In 6.4 beta and 6.4, it doesn't have this line.

As I mentioned previously, search stopped working one day (I didn't change anything at all). I don't think calibre-web update itself automatically right?

Thank you for your time.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/janeczku/calibre-web/issues/1047?email_source=notifications&email_token=AADTSBK76YESTCHUF675KPDQLWPNJA5CNFSM4I2MGK52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7X27JQ#issuecomment-535801766, or mute the thread https://github.com/notifications/unsubscribe-auth/AADTSBJHZOVPTDPTO5OKZHTQLWPNJANCNFSM4I2MGK5Q .

-- With Regards,

Yu Huang

Software Engineer, Google Inc.

-- With Regards,

Yu Huang

Software Engineer, Google Inc.

paulhybryant commented 4 years ago

Oh btw, is reading epub in browser removed from the latest version / next release?

On Fri, Sep 27, 2019 at 8:49 PM Yu Huang paulhybryant@gmail.com wrote:

I also tried uninstalling Unidecode (with calibre-web HEAD version), and still get this error:

File "/app/calibre-web/cps/web.py", line 146, in decorated_view return login_required(func)(*args, *kwargs) File "/usr/lib/python2.7/site-packages/flask_login/utils.py", line 261, in decorated_view return func(args, **kwargs) File "/app/calibre-web/cps/web.py", line 790, in search entries = get_search_results(term) File "/app/calibre-web/cps/helper.py", line 744, in get_search_results func.lower(db.Books.title).ilike("%" + term + "%") File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 3178, in all return list(self) File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 105, in instances util.raise_from_cause(err) File "/usr/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=cause) File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 81, in instances fetch = cursor.fetchall() File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 1216, in fetchall e, None, None, self.cursor, self.context File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception util.raise_from_cause(sqlalchemy_exception, exc_info) File "/usr/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=cause) File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 1211, in fetchall l = self.process_rows(self._fetchall_impl()) File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 1161, in _fetchall_impl return self.cursor.fetchall()

On Fri, Sep 27, 2019 at 8:44 PM Yu Huang paulhybryant@gmail.com wrote:

On Fri, Sep 27, 2019 at 2:08 PM Ozzie Isaacs notifications@github.com wrote:

The logfile not loading behind reverse proxy is a bug, I'll fix it. The original problem: Looks like you are having some sort of problem with the lib "Unidecode". I tried several version, and even without Unidecode everything is working. If you say everything is working and stopped working, this point to a problem after my change for issue 1001. This fix includes a call to Unidecode in the the "lower" function at database access. Could you please try to check:

  • which version of Unidecode is installed by: pip2 freeze | grep Uni

Unidecode==1.1.1

  • if the line 788 in cps/heper.py equals: return unidecode.unidecode(s.lower()) if use_unidecode else s.lower()

I have three version installed currently (6.4 beta, 6.4 and head) In the head version, line 788 has this. In 6.4 beta and 6.4, it doesn't have this line.

As I mentioned previously, search stopped working one day (I didn't change anything at all). I don't think calibre-web update itself automatically right?

Thank you for your time.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/janeczku/calibre-web/issues/1047?email_source=notifications&email_token=AADTSBK76YESTCHUF675KPDQLWPNJA5CNFSM4I2MGK52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7X27JQ#issuecomment-535801766, or mute the thread https://github.com/notifications/unsubscribe-auth/AADTSBJHZOVPTDPTO5OKZHTQLWPNJANCNFSM4I2MGK5Q .

-- With Regards,

Yu Huang

Software Engineer, Google Inc.

-- With Regards,

Yu Huang

Software Engineer, Google Inc.

-- With Regards,

Yu Huang

Software Engineer, Google Inc.

OzzieIsaacs commented 4 years ago

Would have been nice from you, if you would have told me that you are not using a "normal" x86 pc.

Image Magick ImageMagick 6.9.10-44 Q16 aarch64

If you remove Unidecode and use the 0.6.4 and 0.6.4 Beta, it correct that it's not working. This bug was fixed with this commit: 4be55285d82c8c5d1ee369cc070acd8ee0849a30 But you are also getting the error with a newer version which led me to the conclusion that something with your Unidecode installation is wrong. One cause why it stopped suddenly could be, you installed something else and this crashs one of the dependencies of calibre-web (most likely unidecode). I created a branch named lcase_error, which should catch all exceptions in the problematic function and redirect it to the log (side effect: the error dissappears and all searches return nothing). Could you please clone the branch, start calibre-web, excecute a search, check the logbook output, and post it here. And no, epub reader is not removed and there are no plans to do so.

OzzieIsaacs commented 4 years ago

Regarding the reader. I recently split the rights for downloading and reading books, and the default is "not allowed to read books". This can be changed in the admin section for each user

paulhybryant commented 4 years ago

On Sat, Sep 28, 2019 at 1:11 AM Ozzie Isaacs notifications@github.com wrote:

Regarding the reader. I recently split the rights for downloading and reading books, and the default is not allowed to read books. This can be changed in the admin section for each user

I see. Thank you!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/janeczku/calibre-web/issues/1047?email_source=notifications&email_token=AADTSBJUGJGURNVFYTZD42LQLY5ERA5CNFSM4I2MGK52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7ZREOI#issuecomment-536023609, or mute the thread https://github.com/notifications/unsubscribe-auth/AADTSBOZNPXMWYCJUH6TCI3QLY5ERANCNFSM4I2MGK5Q .

-- With Regards,

Yu Huang

Software Engineer, Google Inc.

paulhybryant commented 4 years ago

On Fri, Sep 27, 2019 at 9:44 PM Ozzie Isaacs notifications@github.com wrote:

Would have been nice from you, if you woulg have told me that you are not using a "normal" x86 pc.

Image Magick ImageMagick 6.9.10-44 Q16 aarch64

If you remove Unidecode and use the 0.6.4 and 0.6.4 Beta, it correct that it's not working. This bug was fixed with this commit: 4be55285d82c8c5d1ee369cc070acd8ee0849a30 https://github.com/janeczku/calibre-web/commit/4be55285d82c8c5d1ee369cc070acd8ee0849a30 But you are also getting the error with a newer version which led me to the conclusion that something with your Unidecode installation is wrong. One cause why it stopped suddenly could be, you installed something else and this crashs one of the dependencies of calibre-web (most likely unidecode). I created a branch named lcase_error, which should catch all exceptions in the problematic function and redirect it to the log (side effect: the error dissappears and all searches return nothing). Could you please clone the branch, start calibre-web, excecute a search, check the logbook output, and post it here. And no, epub reader is not removed and there are no plans to do so.

Yeah, I am using a docker image in my NAS (with arm CPU). Sorry I should have mentioned it. The reason why it suddently stopped working might be because my NAS is updated to a newer release (not sure though). However, I think docker only shares the kernel with the host, not libraries?

I will try the lcase_error branch and post the error once I have it.

You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/janeczku/calibre-web/issues/1047?email_source=notifications&email_token=AADTSBO7QMEAJYCTP52VWM3QLYE37A5CNFSM4I2MGK52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7Y6DEI#issuecomment-535945617, or mute the thread https://github.com/notifications/unsubscribe-auth/AADTSBICU7ENE3JL54J43BLQLYE37ANCNFSM4I2MGK5Q .

-- With Regards,

Yu Huang

Software Engineer, Google Inc.

paulhybryant commented 4 years ago

hmm...this is interesting.

With the lcase_error branch, the search works fine.

Switched back to the master branch and restart calibre-web, and search gives the same error.

On Sat, Sep 28, 2019 at 9:54 PM Yu Huang paulhybryant@gmail.com wrote:

On Fri, Sep 27, 2019 at 9:44 PM Ozzie Isaacs notifications@github.com wrote:

Would have been nice from you, if you woulg have told me that you are not using a "normal" x86 pc.

Image Magick ImageMagick 6.9.10-44 Q16 aarch64

If you remove Unidecode and use the 0.6.4 and 0.6.4 Beta, it correct that it's not working. This bug was fixed with this commit: 4be55285d82c8c5d1ee369cc070acd8ee0849a30 https://github.com/janeczku/calibre-web/commit/4be55285d82c8c5d1ee369cc070acd8ee0849a30 But you are also getting the error with a newer version which led me to the conclusion that something with your Unidecode installation is wrong. One cause why it stopped suddenly could be, you installed something else and this crashs one of the dependencies of calibre-web (most likely unidecode). I created a branch named lcase_error, which should catch all exceptions in the problematic function and redirect it to the log (side effect: the error dissappears and all searches return nothing). Could you please clone the branch, start calibre-web, excecute a search, check the logbook output, and post it here. And no, epub reader is not removed and there are no plans to do so.

Yeah, I am using a docker image in my NAS (with arm CPU). Sorry I should have mentioned it. The reason why it suddently stopped working might be because my NAS is updated to a newer release (not sure though). However, I think docker only shares the kernel with the host, not libraries?

I will try the lcase_error branch and post the error once I have it.

You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/janeczku/calibre-web/issues/1047?email_source=notifications&email_token=AADTSBO7QMEAJYCTP52VWM3QLYE37A5CNFSM4I2MGK52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7Y6DEI#issuecomment-535945617, or mute the thread https://github.com/notifications/unsubscribe-auth/AADTSBICU7ENE3JL54J43BLQLYE37ANCNFSM4I2MGK5Q .

-- With Regards,

Yu Huang

Software Engineer, Google Inc.

-- With Regards,

Yu Huang

Software Engineer, Google Inc.

OzzieIsaacs commented 4 years ago

Just to make sure: with the branch the search works, but returns no results, but there should be an error message in the log (statement from my side). If the search is really working, could you please do a compare which file is different, missing, or something else in the Master branch

paulhybryant commented 4 years ago

On Sun, Sep 29, 2019 at 2:43 AM Ozzie Isaacs notifications@github.com wrote:

Just to make sure: with the branch the search works, but returns no results, but there should be an error message in the log (statement from my side). If the search is really working, could you please do a compare which file is different, missing, or something else in the Master branch

The search is really working (returning results)

This is the output of git diff lcase_error master

diff --git a/cps/helper.py b/cps/helper.py index 62dda72..e909086 100644 --- a/cps/helper.py +++ b/cps/helper.py @@ -785,7 +785,4 @@ def get_download_link(book_id, book_format): ############### Database Helper functions

def lcase(s):

Looking at the log, this is what gets printed when one search is conducted:

[2019-09-29 00:43:39,814] ERROR {cps.helper:791} 'int' object has no attribute 'lower' Traceback (most recent call last): File "/app/calibre-web/cps/helper.py", line 789, in lcase return unidecode.unidecode(s.lower()) AttributeError: 'int' object has no attribute 'lower' [2019-09-29 00:43:39,815] ERROR {cps.helper:791} 'NoneType' object has no attribute 'lower' Traceback (most recent call last): File "/app/calibre-web/cps/helper.py", line 789, in lcase return unidecode.unidecode(s.lower()) AttributeError: 'NoneType' object has no attribute 'lower' [2019-09-29 00:43:39,816] ERROR {cps.helper:791} 'int' object has no attribute 'lower' Traceback (most recent call last): File "/app/calibre-web/cps/helper.py", line 789, in lcase return unidecode.unidecode(s.lower()) AttributeError: 'int' object has no attribute 'lower' [2019-09-29 00:43:39,817] ERROR {cps.helper:791} 'NoneType' object has no attribute 'lower' Traceback (most recent call last): File "/app/calibre-web/cps/helper.py", line 789, in lcase return unidecode.unidecode(s.lower()) AttributeError: 'NoneType' object has no attribute 'lower' [2019-09-29 00:43:39,818] ERROR {cps.helper:791} 'int' object has no attribute 'lower' Traceback (most recent call last): File "/app/calibre-web/cps/helper.py", line 789, in lcase return unidecode.unidecode(s.lower()) AttributeError: 'int' object has no attribute 'lower' [2019-09-29 00:43:39,818] ERROR {cps.helper:791} 'NoneType' object has no attribute 'lower' Traceback (most recent call last): File "/app/calibre-web/cps/helper.py", line 789, in lcase return unidecode.unidecode(s.lower()) AttributeError: 'NoneType' object has no attribute 'lower' [2019-09-29 00:43:39,819] ERROR {cps.helper:791} 'int' object has no attribute 'lower' Traceback (most recent call last): File "/app/calibre-web/cps/helper.py", line 789, in lcase return unidecode.unidecode(s.lower()) AttributeError: 'int' object has no attribute 'lower' [2019-09-29 00:43:39,820] ERROR {cps.helper:791} 'NoneType' object has no attribute 'lower' Traceback (most recent call last): File "/app/calibre-web/cps/helper.py", line 789, in lcase return unidecode.unidecode(s.lower()) AttributeError: 'NoneType' object has no attribute 'lower' [2019-09-29 00:43:39,821] ERROR {cps.helper:791} 'int' object has no attribute 'lower' Traceback (most recent call last): File "/app/calibre-web/cps/helper.py", line 789, in lcase return unidecode.unidecode(s.lower()) AttributeError: 'int' object has no attribute 'lower' [2019-09-29 00:43:39,821] ERROR {cps.helper:791} 'NoneType' object has no attribute 'lower' Traceback (most recent call last): File "/app/calibre-web/cps/helper.py", line 789, in lcase return unidecode.unidecode(s.lower()) AttributeError: 'NoneType' object has no attribute 'lower' [2019-09-29 00:43:39,823] ERROR {cps.helper:791} 'int' object has no attribute 'lower' Traceback (most recent call last): File "/app/calibre-web/cps/helper.py", line 789, in lcase return unidecode.unidecode(s.lower()) AttributeError: 'int' object has no attribute 'lower' [2019-09-29 00:43:39,824] ERROR {cps.helper:791} 'NoneType' object has no attribute 'lower' Traceback (most recent call last): File "/app/calibre-web/cps/helper.py", line 789, in lcase return unidecode.unidecode(s.lower()) AttributeError: 'NoneType' object has no attribute 'lower' [2019-09-29 00:43:39,824] ERROR {cps.helper:791} 'int' object has no attribute 'lower' Traceback (most recent call last): File "/app/calibre-web/cps/helper.py", line 789, in lcase return unidecode.unidecode(s.lower()) AttributeError: 'int' object has no attribute 'lower' [2019-09-29 00:43:39,825] ERROR {cps.helper:791} 'NoneType' object has no attribute 'lower' Traceback (most recent call last): File "/app/calibre-web/cps/helper.py", line 789, in lcase return unidecode.unidecode(s.lower()) AttributeError: 'NoneType' object has no attribute 'lower' [2019-09-29 00:43:39,825] ERROR {cps.helper:791} 'int' object has no attribute 'lower' Traceback (most recent call last): File "/app/calibre-web/cps/helper.py", line 789, in lcase return unidecode.unidecode(s.lower()) AttributeError: 'int' object has no attribute 'lower' [2019-09-29 00:43:39,826] ERROR {cps.helper:791} 'NoneType' object has no attribute 'lower' ...

You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/janeczku/calibre-web/issues/1047?email_source=notifications&email_token=AADTSBLF4BG7AA67GW4V3KDQL6QURA5CNFSM4I2MGK52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7276AQ#issuecomment-536215298, or mute the thread https://github.com/notifications/unsubscribe-auth/AADTSBPPTE22XYAUI7JZB43QL6QURANCNFSM4I2MGK5Q .

-- With Regards,

Yu Huang

Software Engineer, Google Inc.

OzzieIsaacs commented 4 years ago

Do you search for a number, like ‚7‘?

paulhybryant commented 4 years ago

No I did not. I searched with some Chinese character for the logs I pasted.

On Sun, Sep 29, 2019 at 12:02 PM Ozzie Isaacs notifications@github.com wrote:

Do you search for a number, like ‚7‘?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/janeczku/calibre-web/issues/1047?email_source=notifications&email_token=AADTSBNLPFGH75F7B4IQ26DQMASDRA5CNFSM4I2MGK52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD73HTYY#issuecomment-536246755, or mute the thread https://github.com/notifications/unsubscribe-auth/AADTSBP5IXEPWUD4ZGB4XF3QMASDRANCNFSM4I2MGK5Q .

-- With Regards,

Yu Huang

Software Engineer, Google Inc.

OzzieIsaacs commented 4 years ago

Doublechecked it, it‘s working for me. I’m away from my computer for the next 2 weeks, so I can‘t do anything to fix it. Please be patient.

OzzieIsaacs commented 4 years ago

The workaround is included in masterbranch. It should work now ( and I still don't know what caused the problem)