What type of hardware are you using: Virtual machine
What YunoHost version are you running: 11.3.0.2
What app is this about: Tandoor
Describe your issue
I tried to update tandoor 1.5.19, the update failed and tandoor was removed from apps. Then I restored the pre-upgrade backup. Unfortunately the tandoor service does no longer start and I only get “502 Bad Gateway” error page.
Maybe someone can help to fix the tandoor-service?
(Or maybe someone can explain howto extract the recipes from the backup?)
Share relevant logs or error messages
Dec 02 16:49:58 systemd[1]: Stopped Tandoor: smart recipe mangement.
Dec 02 16:50:01 systemd[1]: Started Tandoor: smart recipe mangement.
Dec 02 16:50:02 gunicorn[8231]: [2024-12-02 16:50:02 +0100] [8231] [INFO] Starting gunicorn 22.0.0
Dec 02 16:50:02 gunicorn[8231]: [2024-12-02 16:50:02 +0100] [8231] [INFO] Listening at: http://127.0.0.1:8097 (8231)
Dec 02 16:50:02 gunicorn[8231]: [2024-12-02 16:50:02 +0100] [8231] [INFO] Using worker: sync
Dec 02 16:50:02 gunicorn[8239]: [2024-12-02 16:50:02 +0100] [8239] [INFO] Booting worker with pid: 8239
Dec 02 16:50:03 gunicorn[8239]: [2024-12-02 16:50:03 +0100] [8239] [ERROR] Exception in worker process
Dec 02 16:50:03 gunicorn[8239]: Traceback (most recent call last):
Dec 02 16:50:03 gunicorn[8239]: File “/var/www/tandoor/venv/lib/python3.9/site-packages/gunicorn/arbiter.py”, line 609, in spawn_worker
Dec 02 16:50:03 gunicorn[8239]: worker.init_process()
Dec 02 16:50:03 gunicorn[8239]: File “/var/www/tandoor/venv/lib/python3.9/site-packages/gunicorn/workers/base.py”, line 134, in init_process
Dec 02 16:50:03 gunicorn[8239]: self.load_wsgi()
Dec 02 16:50:03 gunicorn[8239]: File “/var/www/tandoor/venv/lib/python3.9/site-packages/gunicorn/workers/base.py”, line 146, in load_wsgi
Dec 02 16:50:03 gunicorn[8239]: self.wsgi = self.app.wsgi()
Dec 02 16:50:03 gunicorn[8239]: File “/var/www/tandoor/venv/lib/python3.9/site-packages/gunicorn/app/base.py”, line 67, in wsgi
Dec 02 16:50:03 gunicorn[8239]: self.callable = self.load()
Dec 02 16:50:03 gunicorn[8239]: File “/var/www/tandoor/venv/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py”, line 58, in load
Dec 02 16:50:03 gunicorn[8239]: return self.load_wsgiapp()
Dec 02 16:50:03 gunicorn[8239]: File “/var/www/tandoor/venv/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py”, line 48, in load_wsgiapp
Dec 02 16:50:03 gunicorn[8239]: return util.import_app(self.app_uri)
Dec 02 16:50:03 gunicorn[8239]: File “/var/www/tandoor/venv/lib/python3.9/site-packages/gunicorn/util.py”, line 371, in import_app
Dec 02 16:50:03 gunicorn[8239]: mod = importlib.import_module(module)
Dec 02 16:50:03 gunicorn[8239]: File “/usr/lib/python3.9/importlib/init.py”, line 127, in import_module
Dec 02 16:50:03 gunicorn[8239]: return _bootstrap._gcd_import(name[level:], package, level)
Dec 02 16:50:03 gunicorn[8239]: File “”, line 1030, in _gcd_import
Dec 02 16:50:03 gunicorn[8239]: File “”, line 1007, in _find_and_load
Dec 02 16:50:03 gunicorn[8239]: File “”, line 986, in _find_and_load_unlocked
Dec 02 16:50:03 gunicorn[8239]: File “”, line 680, in _load_unlocked
Dec 02 16:50:03 gunicorn[8239]: File “”, line 790, in exec_module
Dec 02 16:50:03 gunicorn[8239]: File “”, line 228, in _call_with_frames_removed
Dec 02 16:50:03 gunicorn[8239]: File “/var/www/tandoor/recipes/wsgi.py”, line 15, in
Dec 02 16:50:03 gunicorn[8239]: _application = get_wsgi_application()
Dec 02 16:50:03 gunicorn[8239]: File “/var/www/tandoor/venv/lib/python3.9/site-packages/django/core/wsgi.py”, line 12, in get_wsgi_application
Dec 02 16:50:03 gunicorn[8239]: django.setup(set_prefix=False)
Dec 02 16:50:03 gunicorn[8239]: File “/var/www/tandoor/venv/lib/python3.9/site-packages/django/init.py”, line 24, in setup
Dec 02 16:50:03 gunicorn[8239]: apps.populate(settings.INSTALLED_APPS)
Dec 02 16:50:03 gunicorn[8239]: File “/var/www/tandoor/venv/lib/python3.9/site-packages/django/apps/registry.py”, line 124, in populate
Dec 02 16:50:03 gunicorn[8239]: app_config.ready()
Dec 02 16:50:03 gunicorn[8239]: File “/var/www/tandoor/cookbook/apps.py”, line 19, in ready
Dec 02 16:50:03 gunicorn[8239]: from cookbook.connectors.connector_manager import ConnectorManager # Needs to be here to prevent loading race condition of oauth2 modules in models.py
Dec 02 16:50:03 gunicorn[8239]: File “/var/www/tandoor/cookbook/connectors/connector_manager.py”, line 155
Dec 02 16:50:03 gunicorn[8239]: match config.type:
Dec 02 16:50:03 gunicorn[8239]: ^
Dec 02 16:50:03 gunicorn[8239]: SyntaxError: invalid syntax
Dec 02 16:50:03 gunicorn[8239]: [2024-12-02 16:50:03 +0100] [8239] [INFO] Worker exiting (pid: 8239)
Dec 02 16:50:03 gunicorn[8231]: [2024-12-02 16:50:03 +0100] [8231] [ERROR] Worker (pid:8239) exited with code 3
Dec 02 16:50:03 gunicorn[8231]: [2024-12-02 16:50:03 +0100] [8231] [ERROR] Shutting down: Master
Dec 02 16:50:03 gunicorn[8231]: [2024-12-02 16:50:03 +0100] [8231] [ERROR] Reason: Worker failed to boot.
Dec 02 16:50:11 systemd[1]: tandoor.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED
Dec 02 16:50:11 systemd[1]: tandoor.service: Failed with result ‘exit-code’.