openerp 8.0 编码报错,但是编码没问题呀,大神能不能帮忙分析一下,报错的文件是哪个?谢谢
-
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd6 in position 1: invalid continuation byte
2017-11-07 11:03:27,581 11973 DEBUG hr openerp.addons.base.ir.ir_cron: Starting jobAutoVacuum osv_memory objects
.
2017-11-07 11:03:27,750 11973 INFO hr openerp.modules.loading: loading 1 modules...
2017-11-07 11:03:27,759 11973 DEBUG hr openerp.modules.loading: module base: loading objects
2017-11-07 11:03:27,835 11973 DEBUG hr openerp.modules.loading: Updating graph with 52 more modules
2017-11-07 11:03:27,892 11973 ERROR hr openerp.addons.base.ir.ir_cron: Unexpected exception while processing cron job {'function': u'power_on', 'create_uid': 1, 'args': u'()', 'create_date': '2014-04-17 00:47:16.975651', 'name': u'AutoVacuum osv_memory objects', 'interval_type': u'minutes', 'numbercall': -1, 'write_uid': 1, 'priority': 5, 'model': u'osv_memory.autovacuum', 'doall': False, 'write_date': '2017-01-18 10:43:14.059002', 'active': True, 'user_id': 1, 'interval_number': 30, 'nextcall': '2017-10-30 10:17:23', 'id': 1}
Traceback (most recent call last):
File "/hr/openerp8/openerp/addons/base/ir/ir_cron.py", line 238, in _acquire_job
registry = openerp.registry(db_name)
File "/hr/openerp8/openerp/init.py", line 77, in registry
return modules.registry.RegistryManager.get(database_name)
File "/hr/openerp8/openerp/modules/registry.py", line 207, in get
update_module)
File "/hr/openerp8/openerp/modules/registry.py", line 233, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/hr/openerp8/openerp/modules/loading.py", line 330, in load_modules
force, status, report, loaded_modules, update_module)
File "/hr/openerp8/openerp/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 "/hr/openerp8/openerp/modules/loading.py", line 120, in load_module_graph
migrations = openerp.modules.migration.MigrationManager(cr, graph)
File "/hr/openerp8/openerp/modules/migration.py", line 67, in init
self._get_files()
File "/hr/openerp8/openerp/modules/migration.py", line 82, in _get_files
self.migrations[pkg.name]['module'] = get_module_filetree(pkg.name, 'migrations') or {}
File "/hr/openerp8/openerp/modules/module.py", line 140, in get_module_filetree
files = osutil.listdir(path, True)
File "/hr/openerp8/openerp/tools/osutil.py", line 42, in listdir
for root, dirs, files in walksymlinks(dir):
File "/hr/openerp8/openerp/tools/osutil.py", line 52, in walksymlinks
for dirpath, dirnames, filenames in os.walk(top, topdown, onerror):
File "/usr/lib/python2.7/os.py", line 294, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File "/usr/lib/python2.7/os.py", line 294, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File "/usr/lib/python2.7/os.py", line 294, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File "/usr/lib/python2.7/os.py", line 294, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File "/usr/lib/python2.7/os.py", line 284, in walk
if isdir(join(top, name)):
File "/usr/lib/python2.7/posixpath.py", line 71, in join
path += '/' + b
File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd6 in position 1: invalid continuation byte -
估计是你的模块目录中有非英文的字符,并且文件系统不是用utf8编码的。
-
@digitalsatori 我更新别的模块没有问题, 这个模块一更新就报错,但是我本地是没有问题的,报错是在编译服务器上,我把数据库重新恢复一下,就不会报错了,但是不能更新这个模块。大神能分享一下排查方法吗?