Moving from 6.4 to 6.8, the update had crashed with:
68109 139803431196480 [2023-09-20 09:20:46,433] INFO trytond.modules index:create ir.translation
Traceback (most recent call last):
File "/home/vant/Documentos/GitLab/customer/.venv/bin/trytond-admin", line 31, in <module>
admin.run(options)
File "/home/vant/Documentos/GitLab/customer/.venv/lib/python3.8/site-packages/trytond/admin.py", line 57, in run
pool.init(update=options.update, lang=list(lang),
File "/home/vant/Documentos/GitLab/customer/.venv/lib/python3.8/site-packages/trytond/pool.py", line 167, in init
restart = not load_modules(
File "/home/vant/Documentos/GitLab/customer/.venv/lib/python3.8/site-packages/trytond/modules/__init__.py", line 456, in load_modules
_load_modules(update)
File "/home/vant/Documentos/GitLab/customer/.venv/lib/python3.8/site-packages/trytond/modules/__init__.py", line 424, in _load_modules
load_module_graph(graph, pool, update, lang)
File "/home/vant/Documentos/GitLab/customer/.venv/lib/python3.8/site-packages/trytond/modules/__init__.py", line 305, in load_module_graph
model._update_sql_indexes()
File "/home/vant/Documentos/GitLab/customer/.venv/lib/python3.8/site-packages/trytond/model/modelsql.py", line 489, in _update_sql_indexes
table_h.set_indexes(cls._sql_indexes)
File "/home/vant/Documentos/GitLab/customer/.venv/lib/python3.8/site-packages/trytond/backend/postgresql/table.py", line 501, in set_indexes
cursor.execute(
File "/home/vant/Documentos/GitLab/customer/.venv/lib/python3.8/site-packages/trytond/backend/postgresql/database.py", line 68, in execute
cursor.execute(self, sql, args)
psycopg2.errors.ProgramLimitExceeded: index row size 2976 exceeds btree version 4 maximum 2704 for index "idx_ir_translation_17959a6671e3a3c93dfdf2fc3640d645"
DETAIL: Index row references tuple (392,11) in relation "ir_translation".
HINT: Values larger than 1/3 of a buffer page cannot be indexed.
Consider a function index of an MD5 hash of the value, or use full text indexing.
I don’t know what caused or how it can be solved, and/or if it’s something related to some custom code.