Ciao a tutti, sto provando a fare la migrazione da una versione di openerp 7 installata con pacchetti su ubuntu trusty, ad una installazione OCB su un altro server sempre ubuntu trusty.
Ora:
- il nuovo server funziona perfettamente se faccio un nuovo database;
- il nuovo server mi importa il backup del vecchio server e si apre anche se mi dà errori quando entro in alcuni moduli
- se dopo avere importato il database vecchio faccio un ./openerp-server --update=all, quando provo ad entrare nel vecchio database rispristinato mi dà l'errore che trovate sotto. È una migrazione impossibile o c'è qualche accorgimento che non conosco?
Grazie
Luca Orioli
OpenERP Server Error
Client Traceback (most recent call last):
File "/home/openerp/lp/openerp/openerp/addons/web/http.py", line 204, in dispatch
response["result"] = method(self, **self.params)
File "/home/openerp/lp/openerp/openerp/addons/web/controllers/main.py", line 864, in authenticate
req.session.authenticate(db, login, password, env)
File "/home/openerp/lp/openerp/openerp/addons/web/session.py", line 115, in authenticate
uid = self.proxy('common').authenticate(db, login, password, env)
File "/home/openerp/lp/openerp/openerp/addons/web/session.py", line 30, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/home/openerp/lp/openerp/openerp/addons/web/session.py", line 103, in send
raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)
Server Traceback (most recent call last):
File "/home/openerp/lp/openerp/openerp/addons/web/session.py", line 89, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/home/openerp/lp/openerp/openerp/netsvc.py", line 296, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/openerp/lp/openerp/openerp/service/web_services.py", line 433, in dispatch
return fn(*params)
File "/home/openerp/lp/openerp/openerp/service/web_services.py", line 444, in exp_authenticate
res_users = pooler.get_pool(db).get('res.users')
File "/home/openerp/lp/openerp/openerp/pooler.py", line 49, in get_pool
return get_db_and_pool(db_name, force_demo, status, update_module)[1]
File "/home/openerp/lp/openerp/openerp/pooler.py", line 33, in get_db_and_pool
registry = RegistryManager.get(db_name, force_demo, status, update_module)
File "/home/openerp/lp/openerp/openerp/modules/registry.py", line 203, in get
update_module)
File "/home/openerp/lp/openerp/openerp/modules/registry.py", line 233, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/home/openerp/lp/openerp/openerp/modules/loading.py", line 358, in load_modules
force, status, report, loaded_modules, update_module)
File "/home/openerp/lp/openerp/openerp/modules/loading.py", line 264, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/home/openerp/lp/openerp/openerp/modules/loading.py", line 165, in load_module_graph
init_module_models(cr, package.name, models)
File "/home/openerp/lp/openerp/openerp/modules/module.py", line 381, in init_module_models
obj._auto_end(cr, {'module': module_name})
File "/home/openerp/lp/openerp/openerp/osv/orm.py", line 3300, in _auto_end
cr.execute('ALTER TABLE "%s" ADD FOREIGN KEY ("%s") REFERENCES "%s" ON DELETE %s' % (t, k, r, d))
File "/home/openerp/lp/openerp/openerp/sql_db.py", line 161, in wrapper
return f(self, *args, **kwargs)
File "/home/openerp/lp/openerp/openerp/sql_db.py", line 226, in execute
res = self._obj.execute(query, params)
IntegrityError: insert or update on table "sale_order_line" violates foreign key constraint "sale_order_line_salesman_id_fkey"
DETAIL: Key (salesman_id)=(10) is not present in table "res_users".