- Mailing Lists
- Contributors
- Re: Migrations scripts from MuK DMS to OCA DMS
Archives
- By thread 1419
-
By date
- August 2019 59
- September 2019 118
- October 2019 165
- November 2019 97
- December 2019 35
- January 2020 58
- February 2020 204
- March 2020 121
- April 2020 172
- May 2020 50
- June 2020 158
- July 2020 85
- August 2020 94
- September 2020 193
- October 2020 277
- November 2020 100
- December 2020 159
- January 2021 38
- February 2021 87
- March 2021 146
- April 2021 73
- May 2021 90
- June 2021 86
- July 2021 123
- August 2021 50
- September 2021 68
- October 2021 66
- November 2021 74
- December 2021 75
- January 2022 98
- February 2022 77
- March 2022 68
- April 2022 31
- May 2022 59
- June 2022 87
- July 2022 141
- August 2022 38
- September 2022 73
- October 2022 152
- November 2022 39
- December 2022 50
- January 2023 93
- February 2023 49
- March 2023 106
- April 2023 47
- May 2023 69
- June 2023 92
- July 2023 64
- August 2023 103
- September 2023 91
- October 2023 101
- November 2023 94
- December 2023 46
- January 2024 75
- February 2024 79
- March 2024 104
- April 2024 63
- May 2024 40
- June 2024 160
- July 2024 80
- August 2024 70
- September 2024 62
- October 2024 121
- November 2024 117
- December 2024 89
- January 2025 59
- February 2025 104
- March 2025 96
- April 2025 107
- May 2025 52
- June 2025 72
- July 2025 60
- August 2025 81
- September 2025 124
- October 2025 63
- November 2025 22
Contributors
Re: Migrations scripts from MuK DMS to OCA DMS
by Pedro M. Baeza - 01:25 - 24 Mar 2025
Reference
-
Migrations scripts from MuK DMS to OCA DMS
Hello everybody, we need to migrate some customers from the original MuK DMS modules to the OCA modules. I seem to remember having seen something about ready migration scripts several years ago when the DMS modules were first imported into the OCA repository, but am not able to find that again. Can anybody help? Thanks in advance for any hint, Olaf -- Olaf Wagner -- elego Software Solutions GmbH -- http://www.elegosoft.com Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany Geschäftsführer: Olaf Wagner | Sitz: Berlin Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
by Olaf Wagner - 12:05 - 24 Mar 2025-
Re: Migrations scripts from MuK DMS to OCA DMS
On 25 Mar 2025, at 15:52, Pedro M. Baeza wrote: > It seems there should be an initial problem that leads to the one you > are including. Please inspect the complete log, and any further thing, > put it on the GitHub repo. > Regards. I’ve opened this issue on the OpenUpgrade github repo with more information including a complete log: https://github.com/OCA/OpenUpgrade/issues/4881 I think this is what you suggested. > _______________________________________________ > Mailing-List: https://odoo-community.org/groups/contributors-15 [1] > Post to: mailto:contributors@odoo-community.org > Unsubscribe: https://odoo-community.org/groups?unsubscribe [2] > > > > [1] https://odoo-community.org/groups/contributors-15 > [2] https://odoo-community.org/groups?unsubscribe Regards, Olaf -- Olaf Wagner -- elego Software Solutions GmbH -- http://www.elegosoft.com Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany Geschäftsführer: Olaf Wagner | Sitz: Berlin Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
by Olaf Wagner - 05:11 - 25 Mar 2025 -
Re: Migrations scripts from MuK DMS to OCA DMS
It seems there should be an initial problem that leads to the one you are including. Please inspect the complete log, and any further thing, put it on the GitHub repo.Regards.
by Pedro M. Baeza - 03:50 - 25 Mar 2025 -
Re: Migrations scripts from MuK DMS to OCA DMS
Thank you very much everybody for the information and the great work on openupgrade.
I wasn’t aware that everything is already integrated into the existing scripts.
However, when I run the migration in 13.0, it fails in the postmigration step for the
dms. Im am using the latest versions of the openupgradelib and the 13.0 branch from
openupgrade itself.2025-03-24 16:20:03,420 2372 INFO elego_v13 odoo.modules.migration: module dms: Running migration [13.0.8.1.0>] post-migration 2025-03-24 16:20:03,422 2372 INFO elego_v13 OpenUpgrade: dms: post-migration script called with version 12.0.2.0.1 2025-03-24 16:20:03,579 2372 ERROR elego_v13 OpenUpgrade: dms: error in migration script /opt/odoo/lib/addons/oca-mirror-dms/dms/migrations/13.0.8.1.0/post-migration.py: ('dms.file(3249,).content', None) 2025-03-24 16:20:03,579 2372 ERROR elego_v13 OpenUpgrade: ('dms.file(3249,).content', None) Traceback (most recent call last): File "/opt/odoo/lib/odoo/odoo/api.py", line 748, in get value = self._data[field][record._ids[0]] KeyError: 3249 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/odoo/lib/odoo/odoo/fields.py", line 1038, in __get__ value = env.cache.get(record, self) File "/opt/odoo/lib/odoo/odoo/api.py", line 754, in get raise CacheMiss(record, field) odoo.exceptions.CacheMiss: ('dms.file(3249,).content', None) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/odoo/lib/odoo/odoo/api.py", line 748, in get value = self._data[field][record._ids[0]] KeyError: 3249 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/openupgradelib/openupgrade.py", line 2331, in wrapped_function version, File "/opt/odoo/lib/addons/oca-mirror-dms/dms/migrations/13.0.8.1.0/post-migration.py", line 9, in migrate env["dms.file"].search([])._compute_mimetype() File "/opt/odoo/lib/addons/oca-mirror-dms/dms/models/dms_file.py", line 379, in _compute_mimetype record.res_mimetype = guess_mimetype(base64.b64decode(record.content or "")) File "/opt/odoo/lib/odoo/odoo/fields.py", line 1065, in __get__ value = env.cache.get(record, self) File "/opt/odoo/lib/odoo/odoo/api.py", line 754, in get raise CacheMiss(record, field) odoo.exceptions.CacheMiss: ('dms.file(3249,).content', None) 2025-03-24 16:20:03,584 2372 ERROR elego_v13 odoo.modules.loading: Error executing post migration script for module dms : ('dms.file(3249,).content', None) 2025-03-24 16:20:03,596 2372 ERROR elego_v13 odoo.modules.registry: Failed to load registry Traceback (most recent call last): File "/opt/odoo/lib/odoo/odoo/api.py", line 748, in get value = self._data[field][record._ids[0]] KeyError: 3249 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/odoo/lib/odoo/odoo/fields.py", line 1038, in __get__ value = env.cache.get(record, self) File "/opt/odoo/lib/odoo/odoo/api.py", line 754, in get raise CacheMiss(record, field) odoo.exceptions.CacheMiss: ('dms.file(3249,).content', None) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/odoo/lib/odoo/odoo/api.py", line 748, in get value = self._data[field][record._ids[0]] KeyError: 3249 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/odoo/lib/odoo/odoo/modules/registry.py", line 87, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "/opt/odoo/lib/odoo/odoo/modules/loading.py", line 489, in load_modules force, status, report, loaded_modules, update_module, models_to_check, upg_registry) File "/opt/odoo/lib/odoo/odoo/modules/loading.py", line 368, in load_marked_modules upg_registry=upg_registry, File "/opt/odoo/lib/odoo/odoo/modules/loading.py", line 256, in load_module_graph migrations.migrate_module(package, 'post') File "/opt/odoo/lib/odoo/odoo/modules/migration.py", line 191, in migrate_module migrate(self.cr, installed_version) File "/usr/local/lib/python3.7/dist-packages/openupgradelib/openupgrade.py", line 2331, in wrapped_function version, File "/opt/odoo/lib/addons/oca-mirror-dms/dms/migrations/13.0.8.1.0/post-migration.py", line 9, in migrate env["dms.file"].search([])._compute_mimetype() File "/opt/odoo/lib/addons/oca-mirror-dms/dms/models/dms_file.py", line 379, in _compute_mimetype record.res_mimetype = guess_mimetype(base64.b64decode(record.content or "")) File "/opt/odoo/lib/odoo/odoo/fields.py", line 1065, in __get__ value = env.cache.get(record, self) File "/opt/odoo/lib/odoo/odoo/api.py", line 754, in get raise CacheMiss(record, field) odoo.exceptions.CacheMiss: ('dms.file(3249,).content', None) 2025-03-24 16:20:03,597 2372 CRITICAL elego_v13 odoo.service.server: Failed to initialize database `elego_v13`. Traceback (most recent call last): File "/opt/odoo/lib/odoo/odoo/api.py", line 748, in get value = self._data[field][record._ids[0]] KeyError: 3249 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/odoo/lib/odoo/odoo/fields.py", line 1038, in __get__ value = env.cache.get(record, self) File "/opt/odoo/lib/odoo/odoo/api.py", line 754, in get raise CacheMiss(record, field) odoo.exceptions.CacheMiss: ('dms.file(3249,).content', None) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/odoo/lib/odoo/odoo/api.py", line 748, in get value = self._data[field][record._ids[0]] KeyError: 3249 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/odoo/lib/odoo/odoo/service/server.py", line 1194, in preload_registries registry = Registry.new(dbname, update_module=update_module) File "/opt/odoo/lib/odoo/odoo/modules/registry.py", line 87, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "/opt/odoo/lib/odoo/odoo/modules/loading.py", line 489, in load_modules force, status, report, loaded_modules, update_module, models_to_check, upg_registry) File "/opt/odoo/lib/odoo/odoo/modules/loading.py", line 368, in load_marked_modules upg_registry=upg_registry, File "/opt/odoo/lib/odoo/odoo/modules/loading.py", line 256, in load_module_graph migrations.migrate_module(package, 'post') File "/opt/odoo/lib/odoo/odoo/modules/migration.py", line 191, in migrate_module migrate(self.cr, installed_version) File "/usr/local/lib/python3.7/dist-packages/openupgradelib/openupgrade.py", line 2331, in wrapped_function version, File "/opt/odoo/lib/addons/oca-mirror-dms/dms/migrations/13.0.8.1.0/post-migration.py", line 9, in migrate env["dms.file"].search([])._compute_mimetype() File "/opt/odoo/lib/addons/oca-mirror-dms/dms/models/dms_file.py", line 379, in _compute_mimetype record.res_mimetype = guess_mimetype(base64.b64decode(record.content or "")) File "/opt/odoo/lib/odoo/odoo/fields.py", line 1065, in __get__ value = env.cache.get(record, self) File "/opt/odoo/lib/odoo/odoo/api.py", line 754, in get raise CacheMiss(record, field) odoo.exceptions.CacheMiss: ('dms.file(3249,).content', None) 2025-03-24 16:20:03,599 2372 INFO elego_v13 odoo.service.server: Stopping gracefully openupgrade failedThis may be a subsequent error, as I see some of these error logs before:
2025-03-24 16:20:03,383 2372 ERROR elego_v13 OpenUpgrade: Pass argument 'env_or_cr' as Cursor parameter until 16.0I haven’t been able to isolate the problem further yet.
The actual data — dms.file(3249) — is there and should be correct (at least in the MuK tables); content is
one of the columns that are new or migrated.Looking forward for any hints how best to proceed again.
Olaf
On 24 Mar 2025, at 13:33, Enric Tobella Alomar wrote:
When we ported the module, we made it compatible with MUK DMS. You should need to use OpenUpgrade on the migration and set the rename of the module on the apriori file.Kind regards,El lun, 24 mar 2025 a las 13:17, Radovan Skolnik (<notifications@odoo-community.org>) escribió:Hi,
I believe it is already part of the migration scripts. Check https://github.com/OCA/dms/tree/13.0/dms/migrations/13.0.1 and/or https://github.com/tegin/dms/commits/13.0-dms-migration/
Best regards
Radovan Skolnik
On pondelok 24. marca 2025 12:07:13 CET Olaf Wagner wrote:
> Hello everybody,
> we need to migrate some customers from the original MuK DMS modules to
> the OCA modules. I seem to remember having seen something about ready
> migration scripts several years ago when the DMS modules were first imported
> into the OCA repository, but am not able to find that again.
> Can anybody help?
> Thanks in advance for any hint,
> Olaf
> --
> Olaf Wagner -- elego Software Solutions GmbH -- http://www.elegosoft.com
> Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
> Geschäftsführer: Olaf Wagner | Sitz: Berlin
> Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
>
> _______________________________________________
> Mailing-List: https://odoo-community.org/groups/contributors-15 [1]
> Post to: mailto:contributors@odoo-community.org
> Unsubscribe: https://odoo-community.org/groups?unsubscribe [2]
>
>
>
> [1] https://odoo-community.org/groups/contributors-15
> [2] https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
--Enric Tobella AlomarCEO & Founder_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
--
Olaf Wagner -- elego Software Solutions GmbH -- http://www.elegosoft.com
Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
Geschäftsführer: Olaf Wagner | Sitz: Berlin
Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
by Olaf Wagner - 09:11 - 25 Mar 2025 -
Re: Migrations scripts from MuK DMS to OCA DMS
When we ported the module, we made it compatible with MUK DMS. You should need to use OpenUpgrade on the migration and set the rename of the module on the apriori file.Kind regards,El lun, 24 mar 2025 a las 13:17, Radovan Skolnik (<notifications@odoo-community.org>) escribió:Hi,
I believe it is already part of the migration scripts. Check https://github.com/OCA/dms/tree/13.0/dms/migrations/13.0.1 and/or https://github.com/tegin/dms/commits/13.0-dms-migration/
Best regards
Radovan Skolnik
On pondelok 24. marca 2025 12:07:13 CET Olaf Wagner wrote:
> Hello everybody,
> we need to migrate some customers from the original MuK DMS modules to
> the OCA modules. I seem to remember having seen something about ready
> migration scripts several years ago when the DMS modules were first imported
> into the OCA repository, but am not able to find that again.
> Can anybody help?
> Thanks in advance for any hint,
> Olaf
> --
> Olaf Wagner -- elego Software Solutions GmbH -- http://www.elegosoft.com
> Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
> Geschäftsführer: Olaf Wagner | Sitz: Berlin
> Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
>
> _______________________________________________
> Mailing-List: https://odoo-community.org/groups/contributors-15 [1]
> Post to: mailto:contributors@odoo-community.org
> Unsubscribe: https://odoo-community.org/groups?unsubscribe [2]
>
>
>
> [1] https://odoo-community.org/groups/contributors-15
> [2] https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
--Enric Tobella AlomarCEO & Founder
by Enric Tobella Alomar - 01:32 - 24 Mar 2025 -
Re: Migrations scripts from MuK DMS to OCA DMS
Yes, I confirm that's it!
by Pedro M. Baeza - 01:25 - 24 Mar 2025
-