Closed welshjf closed 9 years ago
the upgrade was successful if the database works in the target version ;-) Seriously: If everything went right, it will simply end with the message Modules loaded
or, if you passed --stop-after-init
(that's what migrate.py does
), Initiating shutdown
and Hit CTRL-C again or send a second signal to force the shutdown.
.
As for this view: Does it have an xml id? (select * from ir_model_data where model='ir.ui.view' and res_id=458
) If yes, please post it. If not, it's a user defined view and you should delete it.
id|create_uid|create_date|write_date|write_uid|noupdate|name|date_init|date_update|module|model|res_id
4795|1|2015-05-03 06:23:33.778936|2015-05-03 06:23:33.778936|1|f|account_report_company_invoice_report_tree_view|2015-05-03 06:23:33|2015-05-03 06:23:33|account_report_company|ir.ui.view|458
(1 row)
It does get to "initiating shutdown", and Odoo 8 starts up, but with "module not found" warnings for "process" and "account_report_company". (That second one definitely sounds related to this issue...)
ah, those warnings are normal. Use https://github.com/OCA/server-tools/tree/8.0/database_cleanup to clean up leftovers of deprecated modules
I've installed database cleanup, gone to purge modules and found the two mentioned. The red X purge buttons on each line don't do anything. When I try "purge all modules", I get this (and they are not purged):
Traceback (most recent call last):
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/http.py", line 530, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/http.py", line 567, in dispatch
result = self._call_function(**self.params)
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/http.py", line 303, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/http.py", line 300, in checked_call
return self.endpoint(*a, **kw)
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/http.py", line 796, in __call__
return self.method(*args, **kw)
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/http.py", line 396, in response_wrap
response = f(*args, **kw)
File "/home/jwelsh/foss/odoo/odoo/addons/web/controllers/main.py", line 940, in call_button
action = self._call_kw(model, method, args, {})
File "/home/jwelsh/foss/odoo/odoo/addons/web/controllers/main.py", line 928, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/home/jwelsh/foss/odoo/server-tools/database_cleanup/model/purge_wizard.py", line 59, in purge_all
context=context)
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/home/jwelsh/foss/odoo/server-tools/database_cleanup/model/purge_modules.py", line 53, in purge
_db, _pool = pooler.restart_pool(cr.dbname, update_module=True)
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/pooler.py", line 46, in restart_pool
registry = RegistryManager.new(db_name, force_demo, status, update_module)
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/modules/registry.py", line 368, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/modules/loading.py", line 423, in load_modules
registry['ir.module.module'].module_uninstall(cr, SUPERUSER_ID, modules_to_remove.values())
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/addons/base/module/module.py", line 462, in module_uninstall
ir_model_data._module_data_uninstall(cr, uid, modules_to_remove, context)
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/addons/base/ir/ir_model.py", line 1217, in _module_data_uninstall
ir_model_constraint._module_data_uninstall(cr, uid, constraint_ids, context)
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/addons/base/ir/ir_model.py", line 575, in _module_data_uninstall
model_obj = self.pool[model]
File "/home/jwelsh/.local/lib/python2.7/site-packages/openerp/modules/registry.py", line 102, in __getitem__
return self.models[model_name]
KeyError: u'process.transition.action'
Also I should add, before finding database_cleaner I had tried uninstalling the obsolete modules via the local modules interface. This not only threw a traceback (Programming error: column res_partner.display_name does not exist
), but caused every request to do likewise, even after restarting the server, leaving the installation unusable until I restored a post-migration backup.
those are issues with database_cleanup, please post them at https://github.com/OCA/server-tools/issues
Even the database corruption on trying to uninstall through the normal interface? Is that expected behavior for an un-cleaned database? Seems dangerous.
that's standard behavior of upstream. It doesn't take nonexisting models well, and the rest are followup errors
OK, thank you. Reported at https://github.com/OCA/server-tools/issues/163.
Migrating a pretty simple installation: I'd just done basic company and user setup, installed the accounting module, and added a few test entries.
The constraint in question:
Here is the indicated record and the one that references it (hope this is vaguely legible; aligned mode output was worse):
Not sure if this is a problem other than the error message. (Is there a way to tell in general if the upgrade was successful?)
And by the way, thanks for all the work on this project! It makes me feel a lot better about choosing Odoo.