The blob already exists, so the exception traceback (inside upload_blob)
is not useful on its own. Adding stack_info=True to _logger.exception()
also logs the call stack, revealing who triggered the duplicate write.
Fixes
```
Traceback (most recent call last):
File "/odoo/src/odoo/modules/registry.py", line 110, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/odoo/src/odoo/modules/loading.py", line 485, in load_modules
processed_modules += load_marked_modules(env, graph,
File "/odoo/src/odoo/modules/loading.py", line 366, in load_marked_modules
loaded, processed = load_module_graph(
File "/odoo/src/odoo/modules/loading.py", line 187, in load_module_graph
load_openerp_module(package.name)
File "/odoo/src/odoo/modules/module.py", line 395, in load_openerp_module
__import__(qualname)
File "/odoo/external-src/odoo-cloud-platform/logging_json/__init__.py", line 1, in <module>
from . import json_log
File "/odoo/external-src/odoo-cloud-platform/logging_json/json_log.py", line 32, in <module>
class OdooJsonFormatter(jsonlogger.JsonFormatter):
AttributeError: 'NoneType' object has no attribute 'JsonFormatter'
2026-03-11 10:31:34,072 82 CRITICAL odoodb odoo.service.server: Failed to initialize database `odoodb`.
Traceback (most recent call last):
File "/odoo/src/odoo/service/server.py", line 1374, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
File "/usr/local/lib/python3.10/site-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/odoo/src/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/odoo/src/odoo/modules/registry.py", line 110, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/odoo/src/odoo/modules/loading.py", line 485, in load_modules
processed_modules += load_marked_modules(env, graph,
File "/odoo/src/odoo/modules/loading.py", line 366, in load_marked_modules
loaded, processed = load_module_graph(
File "/odoo/src/odoo/modules/loading.py", line 187, in load_module_graph
load_openerp_module(package.name)
File "/odoo/src/odoo/modules/module.py", line 395, in load_openerp_module
__import__(qualname)
File "/odoo/external-src/odoo-cloud-platform/logging_json/__init__.py", line 1, in <module>
from . import json_log
File "/odoo/external-src/odoo-cloud-platform/logging_json/json_log.py", line 32, in <module>
class OdooJsonFormatter(jsonlogger.JsonFormatter):
AttributeError: 'NoneType' object has no attribute 'JsonFormatter'
```
Inspired by https://github.com/nolar/kopf/pull/1149
``session_redis`` is not compatible with ``auth_session_timeout``.
``session_redis`` overrides property ``odoo.http.Application.session_store`` by returning a ``RedisSessionStore`` object instead of a ``odoo.http.FilesystemSessionStore`` object.
``auth_session_timeout`` expects ``odoo.http.Application.session_store`` object to define method ``get_session_filename()``, which does not exist for ``RedisSessionStore`` objects.
This results in an ``AttributeError`` that prevents user authentication, and Odoo becomes inaccessible.