在Ununtu Server12.04安装了Odoo9.0,启动服务后,进入127.0.0.1后台报错!!!
-
如题,源代码是在github上下载的9.0,安装教程参照了论坛上的方法。VMBox里面安装的Odoo9.0,端口转发是8069——>80,5432———>5400
打开浏览器输入127.0.0.1服务器报错,错误信息如下:
2015-10-15 06:57:35,309 2338 INFO test openerp.modules.loading: loading base/security/base_security.xml
2015-10-15 06:57:35,342 2338 INFO test werkzeug: 10.0.2.2 - - [15/Oct/2015 06:57:35] "GET / HTTP/1.1" 500 -
2015-10-15 06:57:35,369 2338 ERROR test werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/share/pyshared/werkzeug/serving.py", line 159, in run_wsgi
execute(app)
File "/usr/share/pyshared/werkzeug/serving.py", line 146, in execute
application_iter = app(environ, start_response)
File "/home/mes/odoo-9.0/openerp/service/server.py", line 245, in app
return self.app(e, s)
File "/home/mes/odoo-9.0/openerp/service/wsgi_server.py", line 184, in application
return application_unproxied(environ, start_response)
File "/home/mes/odoo-9.0/openerp/service/wsgi_server.py", line 170, in application_unproxied
result = handler(environ, start_response)
File "/home/mes/odoo-9.0/openerp/http.py", line 1416, in call
return self.dispatch(environ, start_response)
File "/home/mes/odoo-9.0/openerp/http.py", line 1390, in call
return self.app(environ, start_wrapped)
File "/usr/share/pyshared/werkzeug/wsgi.py", line 411, in call
return self.app(environ, start_response)
File "/home/mes/odoo-9.0/openerp/http.py", line 1565, in dispatch
ir_http = request.registry['ir.http']
File "/home/mes/odoo-9.0/openerp/http.py", line 354, in registry
return openerp.modules.registry.RegistryManager.get(self.db) if self.db else None
File "/home/mes/odoo-9.0/openerp/modules/registry.py", line 335, in get
update_module)
File "/home/mes/odoo-9.0/openerp/modules/registry.py", line 366, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/mes/odoo-9.0/openerp/modules/loading.py", line 279, in load_modules
loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=update_module, report=report)
File "/home/mes/odoo-9.0/openerp/modules/loading.py", line 156, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/home/mes/odoo-9.0/openerp/modules/loading.py", line 98, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/home/mes/odoo-9.0/openerp/tools/convert.py", line 852, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/home/mes/odoo-9.0/openerp/tools/convert.py", line 939, in convert_xml_import
obj.parse(doc.getroot(), mode=mode)
File "/home/mes/odoo-9.0/openerp/tools/convert.py", line 802, in parse
self.parse(rec, mode)
File "/home/mes/odoo-9.0/openerp/tools/convert.py", line 805, in parse
self._tags[rec.tag](self.cr, rec, de, mode=mode)
File "/home/mes/odoo-9.0/openerp/tools/convert.py", line 709, in _tag_record
id = self.pool['ir.model.data']._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper
return old_api(self, *args, **kwargs)
File "/home/mes/odoo-9.0/openerp/addons/base/ir/ir_model.py", line 1105, in _update
res_id = model_obj.create(cr, uid, values, context=context)
File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper
return old_api(self, *args, **kwargs)
File "/home/mes/odoo-9.0/openerp/addons/base/res/res_users.py", line 729, in create
res = super(groups_view, self).create(cr, uid, values, context)
File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper
return old_api(self, *args, **kwargs)
File "/home/mes/odoo-9.0/openerp/addons/base/res/res_users.py", line 621, in create
self.write(cr, uid, [gid], {'users': users}, context)
File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper
return old_api(self, *args, **kwargs)
File "/home/mes/odoo-9.0/openerp/addons/base/res/res_users.py", line 736, in write
res = super(groups_view, self).write(cr, uid, ids, values, context)
File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper
return old_api(self, *args, **kwargs)
File "/home/mes/odoo-9.0/openerp/addons/base/res/res_users.py", line 625, in write
res = super(groups_implied, self).write(cr, uid, ids, values, context)
File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper
return old_api(self, *args, **kwargs)
File "/home/mes/odoo-9.0/openerp/addons/base/res/res_users.py", line 117, in write
res = super(res_groups, self).write(cr, uid, ids, vals, context=context)
File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper
return old_api(self, *args, **kwargs)
File "/home/mes/odoo-9.0/openerp/api.py", line 345, in old_api
result = method(recs, *args, **kwargs)
File "/home/mes/odoo-9.0/openerp/models.py", line 3801, in write
self._write(old_vals)
File "/home/mes/odoo-9.0/openerp/api.py", line 221, in wrapper
return new_api(self, *args, **kwargs)
File "/home/mes/odoo-9.0/openerp/api.py", line 538, in new_api
result = method(self._model, cr, uid, self.ids, *args, **kwargs)
File "/home/mes/odoo-9.0/openerp/models.py", line 3849, in _write
result = self.store_get_values(cr, user, ids, vals.keys(), context) or []
File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper
return old_api(self, *args, **kwargs)
File "/home/mes/odoo-9.0/openerp/models.py", line 4364, in store_get_values
target_id_results[target_func_id] = [i for i in store_trigger[target_ids_func](self, cr, SUPERUSER_ID, ids, context) if i]
File "/home/mes/odoo-9.0/openerp/addons/base/res/res_users.py", line 171, in _get_users_from_group
groups = [g for g in groups if g == group_user or group_user in g.trans_implied_ids]
File "/home/mes/odoo-9.0/openerp/models.py", line 5573, in contains
raise TypeError("Mixing apples and oranges: %s in %s" % (item, self))
ParseError: "Mixing apples and oranges: None in res.groups(41, 40)" while parsing /home/mes/odoo-9.0/openerp/addons/base/security/base_security.xml:18, near
<record model="res.groups" id="group_system">
<field name="name">Settings</field>
<field name="implied_ids" eval="[(4, ref('group_erp_manager'))]"/>
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>
还请大神帮忙看看,源码没有改过。 -
我前几天看到过 ,有个9.0的版本有bug,
创建数据库 就会 报这个错:
File "/opt/odoo/odoo-server/openerp/models.py", line 5573, in contains
raise TypeError("Mixing apples and oranges: %s in %s" % (item, self))
ParseError: "Mixing apples and oranges: None in res.groups(38, 37)" while parsing /opt/odoo/odoo-server/openerp/addons/base/security/base_security.xml:18, near
<record model="res.groups" id="group_system">
<field name="name">Settings</field>
<field name="implied_ids" eval="[(4, ref('group_erp_manager'))]"/>
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>
后来更新了下,能创建数据库了,
不过有其他别的问题。
另外,你这个9.0是新安装的吧,没有8.0历史遗留的数据库吧。 -
恩,新安装的,不知道是怎么回事。另外问一下github上的master是10.0吗?现在还是玩8.0吧,9.0等稳定版再上了,折腾了这几天安装伤不起啊。