First time we got error as below :
XMLSyntaxError: EntityRef: expecting ';', line 476, column 94 (line 476)
THE SOLUTION IS :
if error was produced after you install some module, so remove the module from addons folder then remove its data from database :
ERROR test odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
File "/opt/odoo/odoo-10.0/odoo/modules/registry.py", line 82, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/opt/odoo/odoo-10.0/odoo/modules/loading.py", line 335, in load_modules
force, status, report, loaded_modules, update_module)
File "/opt/odoo/odoo-10.0/odoo/modules/loading.py", line 237, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/opt/odoo/odoo-10.0/odoo/modules/loading.py", line 156, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/opt/odoo/odoo-10.0/odoo/modules/loading.py", line 95, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/opt/odoo/odoo-10.0/odoo/tools/convert.py", line 845, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/opt/odoo/odoo-10.0/odoo/tools/convert.py", line 898, in convert_xml_import
doc = etree.parse(xmlfile)
File "src/lxml/etree.pyx", line 3444, in lxml.etree.parse (src/lxml/etree.c:83185)
File "src/lxml/parser.pxi", line 1855, in lxml.etree._parseDocument (src/lxml/etree.c:121025)
File "src/lxml/parser.pxi", line 1875, in lxml.etree._parseFilelikeDocument (src/lxml/etree.c:121308)
File "src/lxml/parser.pxi", line 1770, in lxml.etree._parseDocFromFilelike (src/lxml/etree.c:120092)
File "src/lxml/parser.pxi", line 1185, in lxml.etree._BaseParser._parseDocFromFilelike (src/lxml/etree.c:114820)
File "src/lxml/parser.pxi", line 598, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/etree.c:107738)
File "src/lxml/parser.pxi", line 709, in lxml.etree._handleParseResult (src/lxml/etree.c:109447)
File "src/lxml/parser.pxi", line 638, in lxml.etree._raiseParseError (src/lxml/etree.c:108301)
XMLSyntaxError: EntityRef: expecting ';', line 476, column 94 (line 476)
2018-02-27 07:38:31,330 12176 INFO test werkzeug: 192.168.100.100 - - [27/Feb/2018 07:38:31] "GET / HTTP/1.0" 500 -
2018-02-27 07:38:31,334 12176 ERROR test werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 209, in run_wsgi
execute(self.server.app)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 197, in execute
application_iter = app(environ, start_response)
File "/opt/odoo/odoo-10.0/odoo/service/server.py", line 249, in app
return self.app(e, s)
File "/opt/odoo/odoo-10.0/odoo/service/wsgi_server.py", line 186, in application
return application_unproxied(environ, start_response)
File "/opt/odoo/odoo-10.0/odoo/service/wsgi_server.py", line 172, in application_unproxied
result = handler(environ, start_response)
File "/opt/odoo/odoo-10.0/odoo/http.py", line 1308, in __call__
return self.dispatch(environ, start_response)
File "/opt/odoo/odoo-10.0/odoo/http.py", line 1282, in __call__
return self.app(environ, start_wrapped)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 600, in __call__
return self.app(environ, start_response)
File "/opt/odoo/odoo-10.0/odoo/http.py", line 1464, in dispatch
odoo.registry(db).check_signaling()
File "/opt/odoo/odoo-10.0/odoo/__init__.py", line 52, in registry
return modules.registry.Registry(database_name)
File "/opt/odoo/odoo-10.0/odoo/modules/registry.py", line 59, in __new__
return cls.new(db_name)
File "/opt/odoo/odoo-10.0/odoo/modules/registry.py", line 82, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/opt/odoo/odoo-10.0/odoo/modules/loading.py", line 335, in load_modules
force, status, report, loaded_modules, update_module)
File "/opt/odoo/odoo-10.0/odoo/modules/loading.py", line 237, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/opt/odoo/odoo-10.0/odoo/modules/loading.py", line 156, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/opt/odoo/odoo-10.0/odoo/modules/loading.py", line 95, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/opt/odoo/odoo-10.0/odoo/tools/convert.py", line 845, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/opt/odoo/odoo-10.0/odoo/tools/convert.py", line 898, in convert_xml_import
doc = etree.parse(xmlfile)
File "src/lxml/etree.pyx", line 3444, in lxml.etree.parse (src/lxml/etree.c:83185)
File "src/lxml/parser.pxi", line 1855, in lxml.etree._parseDocument (src/lxml/etree.c:121025)
File "src/lxml/parser.pxi", line 1875, in lxml.etree._parseFilelikeDocument (src/lxml/etree.c:121308)
File "src/lxml/parser.pxi", line 1770, in lxml.etree._parseDocFromFilelike (src/lxml/etree.c:120092)
File "src/lxml/parser.pxi", line 1185, in lxml.etree._BaseParser._parseDocFromFilelike (src/lxml/etree.c:114820)
File "src/lxml/parser.pxi", line 598, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/etree.c:107738)
File "src/lxml/parser.pxi", line 709, in lxml.etree._handleParseResult (src/lxml/etree.c:109447)
File "src/lxml/parser.pxi", line 638, in lxml.etree._raiseParseError (src/lxml/etree.c:108301)
THE SOLUTION IS :
if error was produced after you install some module, so remove the module from addons folder then remove its data from database :
# delete from ir_module_module where name ilike '%marketplace%ebay';
DELETE 1
# delete from ir_module_module where name ilike '%marketplace%amazon';
DELETE 1
# delete from ir_module_module where name ilike '%marketplace%ebay';
DELETE 1
# delete from ir_module_module where name ilike '%marketplace%taobao';
DELETE 1
# delete from ir_module_module where name ilike '%marketplace%alibaba';
DELETE 1
if error was produced after you update / upgrade some existing module / installed module, so change back its registry from database :
update ir_module_module set state='installed' where name ilike '%website_sale%' and state='to upgrade';
UPDATE 4
after that, you can restart the odoo.
..show all:.
.
First time we got error as below :
XMLSyntaxError: EntityRef: expecting ';', line 476, column 94 (line 476)
THE SOLUTION IS :
if error was produced after you install some module, so remove the module from addons folder then remove its data from database :
ERROR test odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
File "/opt/odoo/odoo-10.0/odoo/modules/registry.py", line 82, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/opt/odoo/odoo-10.0/odoo/modules/loading.py", line 335, in load_modules
force, status, report, loaded_modules, update_module)
File "/opt/odoo/odoo-10.0/odoo/modules/loading.py", line 237, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/opt/odoo/odoo-10.0/odoo/modules/loading.py", line 156, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/opt/odoo/odoo-10.0/odoo/modules/loading.py", line 95, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/opt/odoo/odoo-10.0/odoo/tools/convert.py", line 845, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/opt/odoo/odoo-10.0/odoo/tools/convert.py", line 898, in convert_xml_import
doc = etree.parse(xmlfile)
File "src/lxml/etree.pyx", line 3444, in lxml.etree.parse (src/lxml/etree.c:83185)
File "src/lxml/parser.pxi", line 1855, in lxml.etree._parseDocument (src/lxml/etree.c:121025)
File "src/lxml/parser.pxi", line 1875, in lxml.etree._parseFilelikeDocument (src/lxml/etree.c:121308)
File "src/lxml/parser.pxi", line 1770, in lxml.etree._parseDocFromFilelike (src/lxml/etree.c:120092)
File "src/lxml/parser.pxi", line 1185, in lxml.etree._BaseParser._parseDocFromFilelike (src/lxml/etree.c:114820)
File "src/lxml/parser.pxi", line 598, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/etree.c:107738)
File "src/lxml/parser.pxi", line 709, in lxml.etree._handleParseResult (src/lxml/etree.c:109447)
File "src/lxml/parser.pxi", line 638, in lxml.etree._raiseParseError (src/lxml/etree.c:108301)
XMLSyntaxError: EntityRef: expecting ';', line 476, column 94 (line 476)
2018-02-27 07:38:31,330 12176 INFO test werkzeug: 192.168.100.100 - - [27/Feb/2018 07:38:31] "GET / HTTP/1.0" 500 -
2018-02-27 07:38:31,334 12176 ERROR test werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 209, in run_wsgi
execute(self.server.app)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 197, in execute
application_iter = app(environ, start_response)
File "/opt/odoo/odoo-10.0/odoo/service/server.py", line 249, in app
return self.app(e, s)
File "/opt/odoo/odoo-10.0/odoo/service/wsgi_server.py", line 186, in application
return application_unproxied(environ, start_response)
File "/opt/odoo/odoo-10.0/odoo/service/wsgi_server.py", line 172, in application_unproxied
result = handler(environ, start_response)
File "/opt/odoo/odoo-10.0/odoo/http.py", line 1308, in __call__
return self.dispatch(environ, start_response)
File "/opt/odoo/odoo-10.0/odoo/http.py", line 1282, in __call__
return self.app(environ, start_wrapped)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 600, in __call__
return self.app(environ, start_response)
File "/opt/odoo/odoo-10.0/odoo/http.py", line 1464, in dispatch
odoo.registry(db).check_signaling()
File "/opt/odoo/odoo-10.0/odoo/__init__.py", line 52, in registry
return modules.registry.Registry(database_name)
File "/opt/odoo/odoo-10.0/odoo/modules/registry.py", line 59, in __new__
return cls.new(db_name)
File "/opt/odoo/odoo-10.0/odoo/modules/registry.py", line 82, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/opt/odoo/odoo-10.0/odoo/modules/loading.py", line 335, in load_modules
force, status, report, loaded_modules, update_module)
File "/opt/odoo/odoo-10.0/odoo/modules/loading.py", line 237, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/opt/odoo/odoo-10.0/odoo/modules/loading.py", line 156, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/opt/odoo/odoo-10.0/odoo/modules/loading.py", line 95, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/opt/odoo/odoo-10.0/odoo/tools/convert.py", line 845, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/opt/odoo/odoo-10.0/odoo/tools/convert.py", line 898, in convert_xml_import
doc = etree.parse(xmlfile)
File "src/lxml/etree.pyx", line 3444, in lxml.etree.parse (src/lxml/etree.c:83185)
File "src/lxml/parser.pxi", line 1855, in lxml.etree._parseDocument (src/lxml/etree.c:121025)
File "src/lxml/parser.pxi", line 1875, in lxml.etree._parseFilelikeDocument (src/lxml/etree.c:121308)
File "src/lxml/parser.pxi", line 1770, in lxml.etree._parseDocFromFilelike (src/lxml/etree.c:120092)
File "src/lxml/parser.pxi", line 1185, in lxml.etree._BaseParser._parseDocFromFilelike (src/lxml/etree.c:114820)
File "src/lxml/parser.pxi", line 598, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/etree.c:107738)
File "src/lxml/parser.pxi", line 709, in lxml.etree._handleParseResult (src/lxml/etree.c:109447)
File "src/lxml/parser.pxi", line 638, in lxml.etree._raiseParseError (src/lxml/etree.c:108301)
THE SOLUTION IS :
if error was produced after you install some module, so remove the module from addons folder then remove its data from database :
# delete from ir_module_module where name ilike '%marketplace%ebay';
DELETE 1
# delete from ir_module_module where name ilike '%marketplace%amazon';
DELETE 1
# delete from ir_module_module where name ilike '%marketplace%ebay';
DELETE 1
# delete from ir_module_module where name ilike '%marketplace%taobao';
DELETE 1
# delete from ir_module_module where name ilike '%marketplace%alibaba';
DELETE 1
if error was produced after you update / upgrade some existing module / installed module, so change back its registry from database :
update ir_module_module set state='installed' where name ilike '%website_sale%' and state='to upgrade';
UPDATE 4
after that, you can restart the odoo.
Can you please explain the last method.... update 4..
ReplyDelete-----------
2018-03-21 13:56:56,242 20537 CRITICAL nmpl odoo.service.server: Failed to initialize database nmpl.
Traceback (most recent call last):
File "/home/asoral/Simple_10/openupgrade/odoo/service/server.py", line 914, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
File "/home/asoral/Simple_10/openupgrade/odoo/modules/registry.py", line 82, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/asoral/Simple_10/openupgrade/odoo/modules/loading.py", line 343, in load_modules
loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=update_module, report=report, upg_registry=upg_registry)
File "/home/asoral/Simple_10/openupgrade/odoo/modules/loading.py", line 137, in load_module_graph
migrations.migrate_module(package, 'pre')
File "/home/asoral/Simple_10/openupgrade/odoo/modules/migration.py", line 153, in migrate_module
mod = imp.load_module(name, fp, pathname, ('.py', 'r', imp.PY_SOURCE))
File "/home/asoral/Simple_10/openupgrade/odoo/addons/base/migrations/10.0.1.3/pre-migration.py", line 4, in
from openupgradelib import openupgrade
File "/usr/local/lib/python2.7/dist-packages/openupgradelib/openupgrade.py", line 44, in
from openerp.osv.fields import many2many, one2many
File "/home/asoral/Simple_10/openupgrade/odoo/modules/module.py", line 109, in load_module
mod = importlib.import_module(canonical)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
ImportError: No module named fields
This is my error log while upgrading some modules.