Got logger@ email - indico.flask - ERROR errors.py

After an migration from Centos 7, indico v3.2.9 to Debian GNU 12352 indico v3.3.4 i’ve got a lot of logger email daily. I don’t have no idea what to do. Indico seems to be working fine

2024-10-11 09:02:31,559 63d26b4b6d164a2f - indico.flask - ERROR errors.py:113 – Storage backend does not exist: legacy

Traceback (most recent call last):
File “/opt/indico/.venv/lib/python3.12/site-packages/indico/core/storage/backend.py”, line 34, in get_storage
definition = config.STORAGE_BACKENDS[backend_name]
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: ‘legacy’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/opt/indico/.venv/lib/python3.12/site-packages/flask/app.py”, line 880, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/indico/.venv/lib/python3.12/site-packages/flask/app.py”, line 865, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/indico/.venv/lib/python3.12/site-packages/indico/modules/attachments/blueprint.py”, line 49, in view_func
return categ_view(**kwargs) if kwargs[‘object_type’] == ‘category’ else event_view(**kwargs)
^^^^^^^^^^^^^^^^^^^^
File “/opt/indico/.venv/lib/python3.12/site-packages/indico/web/flask/util.py”, line 80, in wrapper
return obj().process()
^^^^^^^^^^^^^^^
File “/opt/indico/.venv/lib/python3.12/site-packages/indico/web/rh.py”, line 307, in process
res = self._do_process()
^^^^^^^^^^^^^^^^^^
File “/opt/indico/.venv/lib/python3.12/site-packages/indico/modules/events/controllers/base.py”, line 106, in _do_process
return RHEventBase._do_process(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/indico/.venv/lib/python3.12/site-packages/indico/web/rh.py”, line 275, in _do_process
rv = self._process()
^^^^^^^^^^^^^^^
File “/opt/indico/.venv/lib/python3.12/site-packages/indico/modules/attachments/controllers/display/base.py”, line 45, in _process
return self.attachment.file.send(inline=not force_download)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/indico/.venv/lib/python3.12/site-packages/indico/core/storage/models.py”, line 219, in send
return self.storage.send_file(self.storage_file_id, self.content_type, self.filename, inline=inline)
^^^^^^^^^^^^
File “/opt/indico/.venv/lib/python3.12/site-packages/indico/core/storage/models.py”, line 173, in storage
return get_storage(self.storage_backend)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/indico/.venv/lib/python3.12/site-packages/indico/core/storage/backend.py”, line 36, in get_storage
raise RuntimeError(f’Storage backend does not exist: {backend_name}')
RuntimeError: Storage backend does not exist: legacy

i guess you didn’t copy your old indico.conf. compare the files and migrate over the config for the legacy storage backend

mmmm, i’ved checked the files and update this line in indico.conf

STORAGE_BACKENDS = {‘default’: ‘fs:/opt/indico/archive’, ‘legacy’: ‘fs-readonly:/opt/indico/legacy-archive’}

But also copied the legacy-archive again from old to new and i think thats the solution. i didn’t receive no more mails. fingers crossed! thanks for your suggestion

Yep, that’s the correct fix :slight_smile: