Cannot migrate from 5.4 to 5.6 series

Hi,

I’m in trouble to upgrade from 5.4 to 5.6 series.

These are the last lines of the traceback:

8047 139892019541824 [2020-08-17 08:15:35,556] INFO trytond.modules all modules loaded
8047 139892019541824 [2020-08-17 08:15:35,556] DEBUG trytond.backend.postgresql.database b'SELECT "a"."name" FROM "ir_module" AS "a" WHERE ("a"."state" = \'to remove\')'
8047 139892019541824 [2020-08-17 08:15:35,557] DEBUG trytond.backend.postgresql.database b'SELECT "a"."id" AS "id", "a"."create_date" AS "create_date", "a"."create_uid" AS "create_uid", "a"."name" AS "name", "a"."state" AS "state", "a"."write_date" AS "write_date", "a"."write_uid" AS "write_uid", CAST(EXTRACT(\'EPOCH\' FROM COALESCE("a"."write_date", "a"."create_date")) AS VARCHAR) AS "_timestamp" FROM "ir_module" AS "a" WHERE true ORDER BY "a"."name" ASC, "a"."id" ASC'
8047 139892019541824 [2020-08-17 08:15:35,566] DEBUG trytond.backend.postgresql.database b'SELECT "a"."id" FROM "ir_module_dependency" AS "a" WHERE ((("a"."module" >= 3) AND ("a"."module" <= 8)) OR (("a"."module" >= 10) AND ("a"."module" <= 15)) OR (("a"."module" >= 48) AND ("a"."module" <= 60)) OR (("a"."module" >= 95) AND ("a"."module" <= 105)) OR (("a"."module" >= 129) AND ("a"."module" <= 135)) OR (("a"."module" >= 145) AND ("a"."module" <= 152)) OR ("a"."module" IN (18, 19, 20, 21, 22, 24, 25, 26, 27, 29, 30, 31, 32, 34, 35, 36, 38, 39, 43, 44, 45, 46, 62, 64, 65, 66, 67, 69, 70, 71, 72, 74, 75, 76, 77, 79, 80, 81, 83, 84, 85, 86, 88, 90, 91, 92, 93, 107, 108, 109, 112, 113, 114, 116, 119, 120, 122, 123, 125, 126, 127, 137, 139, 140, 141, 142, 143, 154)))'
8047 139892019541824 [2020-08-17 08:15:35,571] DEBUG trytond.backend.postgresql.database b'SELECT "a"."model" FROM "ir_model_data" AS "a" GROUP BY "a"."model"'
8047 139892019541824 [2020-08-17 08:15:35,573] DEBUG trytond.backend.postgresql.database b'DELETE FROM "ir_module_dependency" WHERE ((("id" >= 2) AND ("id" <= 25)) OR (("id" >= 28) AND ("id" <= 57)) OR (("id" >= 72) AND ("id" <= 100)) OR (("id" >= 103) AND ("id" <= 111)) OR (("id" >= 123) AND ("id" <= 137)) OR (("id" >= 141) AND ("id" <= 153)) OR (("id" >= 156) AND ("id" <= 165)) OR (("id" >= 178) AND ("id" <= 200)) OR (("id" >= 206) AND ("id" <= 247)) OR (("id" >= 273) AND ("id" <= 279)) OR (("id" >= 283) AND ("id" <= 297)) OR (("id" >= 304) AND ("id" <= 316)) OR (("id" >= 321) AND ("id" <= 334)) OR (("id" >= 341) AND ("id" <= 351)) OR (("id" >= 357) AND ("id" <= 379)) OR (("id" >= 385) AND ("id" <= 390)) OR (("id" >= 393) AND ("id" <= 410)) OR (("id" >= 412) AND ("id" <= 453)) OR (("id" >= 456) AND ("id" <= 465)) OR (("id" >= 476) AND ("id" <= 486)) OR (("id" >= 500) AND ("id" <= 515)) OR (("id" >= 520) AND ("id" <= 528)) OR (("id" >= 531) AND ("id" <= 542)) OR (("id" >= 547) AND ("id" <= 570)) OR (("id" >= 587) AND ("id" <= 606)) OR (("id" >= 635) AND ("id" <= 663)) OR ("id" IN (490, 491, 580, 581, 582, 583, 584, 670, 671)))'
8047 139892019541824 [2020-08-17 08:15:35,575] DEBUG trytond.backend.postgresql.database b'DELETE FROM "ir_module" WHERE ((("id" >= 3) AND ("id" <= 8)) OR (("id" >= 10) AND ("id" <= 15)) OR (("id" >= 48) AND ("id" <= 60)) OR (("id" >= 95) AND ("id" <= 105)) OR (("id" >= 129) AND ("id" <= 135)) OR (("id" >= 145) AND ("id" <= 152)) OR ("id" IN (18, 19, 20, 21, 22, 24, 25, 26, 27, 29, 30, 31, 32, 34, 35, 36, 38, 39, 43, 44, 45, 46, 62, 64, 65, 66, 67, 69, 70, 71, 72, 74, 75, 76, 77, 79, 80, 81, 83, 84, 85, 86, 88, 90, 91, 92, 93, 107, 108, 109, 112, 113, 114, 116, 119, 120, 122, 123, 125, 126, 127, 137, 139, 140, 141, 142, 143, 154)))'
8047 139892019541824 [2020-08-17 08:15:35,578] DEBUG trytond.backend.postgresql.database b'SELECT "a"."write_date" AS "write_date", "a"."id" AS "id" FROM "ir_module" AS "a" WHERE ((("a"."id" >= 1) AND ("a"."id" <= 8)) OR (("a"."id" >= 10) AND ("a"."id" <= 36)) OR (("a"."id" >= 38) AND ("a"."id" <= 60)) OR (("a"."id" >= 62) AND ("a"."id" <= 105)) OR (("a"."id" >= 118) AND ("a"."id" <= 135)) OR (("a"."id" >= 139) AND ("a"."id" <= 154)) OR ("a"."id" IN (107, 108, 109, 110, 112, 113, 114, 115, 116, 137)))'
8047 139892019541824 [2020-08-17 08:15:35,579] DEBUG trytond.backend.postgresql.database b'SELECT "a"."id" FROM "ir_module" AS "a" WHERE ((("a"."id" >= 1) AND ("a"."id" <= 8)) OR (("a"."id" >= 10) AND ("a"."id" <= 36)) OR (("a"."id" >= 38) AND ("a"."id" <= 60)) OR (("a"."id" >= 62) AND ("a"."id" <= 105)) OR (("a"."id" >= 118) AND ("a"."id" <= 135)) OR (("a"."id" >= 139) AND ("a"."id" <= 154)) OR ("a"."id" IN (107, 108, 109, 110, 112, 113, 114, 115, 116, 137)))'
8047 139892019541824 [2020-08-17 08:15:35,580] DEBUG trytond.backend.postgresql.database b'SELECT "a"."id" FROM "ir_module" AS "a" WHERE ((("a"."id" >= 1) AND ("a"."id" <= 8)) OR (("a"."id" >= 10) AND ("a"."id" <= 36)) OR (("a"."id" >= 38) AND ("a"."id" <= 60)) OR (("a"."id" >= 62) AND ("a"."id" <= 105)) OR (("a"."id" >= 118) AND ("a"."id" <= 135)) OR (("a"."id" >= 139) AND ("a"."id" <= 154)) OR ("a"."id" IN (107, 108, 109, 110, 112, 113, 114, 115, 116, 137)))'
8047 139892019541824 [2020-08-17 08:15:35,580] DEBUG trytond.backend.postgresql.database b'SELECT "a"."id" AS "id", "a"."create_date" AS "create_date", "a"."create_uid" AS "create_uid", "a"."global_search_p" AS "global_search_p", "a"."info" AS "info", "a"."model" AS "model", "a"."module" AS "module", "a"."write_date" AS "write_date", "a"."write_uid" AS "write_uid", CAST(EXTRACT(\'EPOCH\' FROM COALESCE("a"."write_date", "a"."create_date")) AS VARCHAR) AS "_timestamp" FROM "ir_model" AS "a" WHERE (("a"."model" = \'ir.module\')) ORDER BY "a"."model" ASC, "a"."id" ASC LIMIT 1'
8047 139892019541824 [2020-08-17 08:15:35,581] DEBUG trytond.backend.postgresql.database b'SELECT "a"."write_date" AS "write_date", "a"."name" AS "name", "a"."id" AS "id" FROM "ir_model" AS "a" WHERE (("a"."id" IN (48)))'
8047 139892019541824 [2020-08-17 08:15:35,582] DEBUG trytond.backend.postgresql.database b'SELECT "a"."id" AS "id", "a"."create_date" AS "create_date", "a"."create_uid" AS "create_uid", "a"."fuzzy" AS "fuzzy", "a"."lang" AS "lang", "a"."module" AS "module", "a"."name" AS "name", "a"."overriding_module" AS "overriding_module", "a"."res_id" AS "res_id", "a"."src" AS "src", "a"."type" AS "type", "a"."value" AS "value", "a"."write_date" AS "write_date", "a"."write_uid" AS "write_uid", CAST(EXTRACT(\'EPOCH\' FROM COALESCE("a"."write_date", "a"."create_date")) AS VARCHAR) AS "_timestamp" FROM "ir_translation" AS "a" WHERE ((("a"."lang" = \'en\') AND ("a"."type" = \'model\') AND ("a"."name" = \'ir.module,name\') AND ("a"."value" != \'\') AND ("a"."value" IS NOT NULL) AND (("a"."fuzzy" = false) OR ("a"."fuzzy" IS NULL)) AND ("a"."res_id" =  -1))) ORDER BY "a"."id" ASC'
8047 139892019541824 [2020-08-17 08:15:35,583] DEBUG trytond.backend.postgresql.database b'SELECT "a"."id" AS "id", "a"."create_date" AS "create_date", "a"."create_uid" AS "create_uid", "a"."db_id" AS "db_id", "a"."fs_id" AS "fs_id", "a"."fs_values" AS "fs_values", "a"."model" AS "model", "a"."module" AS "module", "a"."noupdate" AS "noupdate", "a"."values" AS "values", "a"."write_date" AS "write_date", "a"."write_uid" AS "write_uid", CAST(EXTRACT(\'EPOCH\' FROM COALESCE("a"."write_date", "a"."create_date")) AS VARCHAR) AS "_timestamp" FROM "ir_model_data" AS "a" WHERE (("a"."module" = \'ir\') AND ("a"."fs_id" = \'msg_read_error\')) ORDER BY "a"."id" ASC LIMIT 1'
8047 139892019541824 [2020-08-17 08:15:35,584] DEBUG trytond.backend.postgresql.database b'SELECT "a"."db_id" AS "db_id", "a"."write_date" AS "write_date", "a"."id" AS "id" FROM "ir_model_data" AS "a" WHERE (("a"."id" IN (343)))'
8047 139892019541824 [2020-08-17 08:15:35,585] DEBUG trytond.backend.postgresql.database b'SELECT "a"."text" AS "text", "a"."write_date" AS "write_date", "a"."id" AS "id" FROM "ir_message" AS "a" WHERE (("a"."id" IN (21)))'
8047 139892019541824 [2020-08-17 08:15:35,585] DEBUG trytond.backend.postgresql.database b'SELECT "a"."id" AS "id", "a"."create_date" AS "create_date", "a"."create_uid" AS "create_uid", "a"."fuzzy" AS "fuzzy", "a"."lang" AS "lang", "a"."module" AS "module", "a"."name" AS "name", "a"."overriding_module" AS "overriding_module", "a"."res_id" AS "res_id", "a"."src" AS "src", "a"."type" AS "type", "a"."value" AS "value", "a"."write_date" AS "write_date", "a"."write_uid" AS "write_uid", CAST(EXTRACT(\'EPOCH\' FROM COALESCE("a"."write_date", "a"."create_date")) AS VARCHAR) AS "_timestamp" FROM "ir_translation" AS "a" WHERE (("a"."lang" = \'en\') AND ("a"."type" = \'model\') AND ("a"."name" = \'ir.message,text\') AND ("a"."value" != \'\') AND ("a"."value" IS NOT NULL) AND ("a"."res_id" IN (21)) AND (("a"."fuzzy" = false) OR ("a"."fuzzy" IS NULL))) ORDER BY "a"."id" ASC'
Traceback (most recent call last):
  File "/home/josesalvador/.venvs/alma/bin/trytond-admin", line 4, in <module>
    __import__('pkg_resources').run_script('trytond==5.6.5', 'trytond-admin')
  File "/home/josesalvador/.venvs/alma/lib/python3.6/site-packages/pkg_resources/__init__.py", line 658, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/home/josesalvador/.venvs/alma/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1438, in run_script
    exec(code, namespace, namespace)
  File "/home/josesalvador/.venvs/alma/lib/python3.6/site-packages/trytond-5.6.5-py3.6.egg/EGG-INFO/scripts/trytond-admin", line 23, in <module>
    admin.run(options)
  File "/home/josesalvador/.venvs/alma/lib/python3.6/site-packages/trytond-5.6.5-py3.6.egg/trytond/admin.py", line 53, in run
    activatedeps=options.activatedeps)
  File "/home/josesalvador/.venvs/alma/lib/python3.6/site-packages/trytond-5.6.5-py3.6.egg/trytond/pool.py", line 162, in init
    lang=lang, activatedeps=activatedeps)
  File "/home/josesalvador/.venvs/alma/lib/python3.6/site-packages/trytond-5.6.5-py3.6.egg/trytond/modules/__init__.py", line 427, in load_modules
    _load_modules(update)
  File "/home/josesalvador/.venvs/alma/lib/python3.6/site-packages/trytond-5.6.5-py3.6.egg/trytond/modules/__init__.py", line 421, in _load_modules
    Module.update_list()
  File "/home/josesalvador/.venvs/alma/lib/python3.6/site-packages/trytond-5.6.5-py3.6.egg/trytond/ir/module.py", line 301, in update_list
    cls._update_dependencies(module, tryton.get('depends', []))
  File "/home/josesalvador/.venvs/alma/lib/python3.6/site-packages/trytond-5.6.5-py3.6.egg/trytond/ir/module.py", line 319, in _update_dependencies
    Dependency.delete([x for x in module.dependencies
  File "/home/josesalvador/.venvs/alma/lib/python3.6/site-packages/trytond-5.6.5-py3.6.egg/trytond/model/fields/field.py", line 336, in __get__
    return inst.__getattr__(self.name)
  File "/home/josesalvador/.venvs/alma/lib/python3.6/site-packages/trytond-5.6.5-py3.6.egg/trytond/model/modelstorage.py", line 1561, in __getattr__
    read_data = self.read(list(ids), list(ffields.keys()))
  File "/home/josesalvador/.venvs/alma/lib/python3.6/site-packages/trytond-5.6.5-py3.6.egg/trytond/model/modelsql.py", line 763, in read
    ids, 'read', nodomain='ir.msg_read_error')
  File "/home/josesalvador/.venvs/alma/lib/python3.6/site-packages/trytond-5.6.5-py3.6.egg/trytond/model/modelsql.py", line 1234, in __check_domain_rule
    raise AccessError(msg)
trytond.model.modelstorage.AccessError: You are trying to read records "118, 11, 67, 121, 131..." of "Module" that don't exist anymore. - 

Perhaps this commit has something to do? We are using taxes which are renamed to “(bienes)” sufix…

Can you point me in the right path to find out what the problem is?

It seems to be removing a lot of modules from the modules list:

Which it is then having a problem accessing:

Have you checked that all the updated modules are in the trytond/modules directory?

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