Calibre-web 502 Bad Gateway nginx

My YunoHost server

Hardware: VPS bought online
YunoHost version: 4.3.6.3
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | …
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

Hi guys, i am trying to setup Calibre in my yunohost server. I have installed a couple of times with diferent configurations (user, public, private, …) but i allways got a 502 Bad Gateway nginx in the calibre web.

I got the following error in the calibre log. I have restarted nginx and the server a couple of times but it didnt help. i dont have any clue of what to look now. any ideas?

Thanks in advance for your help,
Emil

Mar 31 14:30:54 systemd[1]: Started calibreweb.
Mar 31 14:30:55 sh[29405]: Traceback (most recent call last):
Mar 31 14:30:55 sh[29405]:   File "/var/www/calibreweb/cps.py", line 34, in <module>
Mar 31 14:30:55 sh[29405]:     from cps import create_app
Mar 31 14:30:55 sh[29405]:   File "/var/www/calibreweb/cps/__init__.py", line 32, in <module>
Mar 31 14:30:55 sh[29405]:     from .MyLoginManager import MyLoginManager
Mar 31 14:30:55 sh[29405]:   File "/var/www/calibreweb/cps/MyLoginManager.py", line 24, in <module>
Mar 31 14:30:55 sh[29405]:     from flask_login import LoginManager
Mar 31 14:30:55 sh[29405]:   File "/var/www/calibreweb/vendor/flask_login/__init__.py", line 16, in <module>
Mar 31 14:30:55 sh[29405]:     from .login_manager import LoginManager
Mar 31 14:30:55 sh[29405]:   File "/var/www/calibreweb/vendor/flask_login/login_manager.py", line 24, in <module>
Mar 31 14:30:55 sh[29405]:     from .utils import (login_url as make_login_url, _create_identifier,
Mar 31 14:30:55 sh[29405]:   File "/var/www/calibreweb/vendor/flask_login/utils.py", line 13, in <module>
Mar 31 14:30:55 sh[29405]:     from werkzeug.security import safe_str_cmp
Mar 31 14:30:55 sh[29405]: ImportError: cannot import name 'safe_str_cmp' from 'werkzeug.security' (/var/www/calibreweb/vendor/werkzeug/security.py)
Mar 31 14:30:55 systemd[1]: calibreweb.service: Main process exited, code=exited, status=1/FAILURE
Mar 31 14:30:55 systemd[1]: calibreweb.service: Failed with result 'exit-code'.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.