Odoo中文社区可以通过以下三个域名访问:shine-it.net , odoocn.org,odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

我的Odoo8出现Internal Server Error



  • 不知怎么回事,我的Odoo8出错了,重装也一样<br />出错信息如下<br /><br />Internal Server Error<br /><br />The server encountered an internal error and was unable to complete your request. <br />Either the server is overloaded or there is an error in the application.



  • 不知怎么回事,我的Odoo8出错了,重装也一样<br />出错信息如下<br /><br />Internal Server Error<br /><br />The server encountered an internal error and was unable to complete your request. <br />Either the server is overloaded or there is an error in the application.



  • 总的把log文件贴上来吧



  • 2014-11-22 14:14:07,704 1824 ERROR number1 werkzeug: Error on request:<br />Traceback (most recent call last):<br />  File "werkzeug\serving.py", line 177, in run_wsgi<br />    <br />  File "werkzeug\serving.py", line 165, in execute<br />    <br />  File "C:\Program Files (x86)\Odoo8\server\openerp\service\server.py", line 280, in app<br />    return self.app(e, s)<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\service\wsgi_server.py", line 216, in application<br />    return application_unproxied(environ, start_response)<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\service\wsgi_server.py", line 202, in application_unproxied<br />    result = handler(environ, start_response)<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\http.py", line 1215, in call<br />    return self.dispatch(environ, start_response)<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\http.py", line 1189, in call<br />    return self.app(environ, start_wrapped)<br />  File "werkzeug\wsgi.py", line 579, in call<br />    <br />  File "C:\Program Files (x86)\Odoo8\server\openerp\http.py", line 1356, in dispatch<br />    result = ir_http._dispatch()<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\addons\website\models\ir_http.py", line 125, in _dispatch<br />    return super(ir_http, self)._dispatch()<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\addons\base\ir\ir_http.py", line 110, in _dispatch<br />    return self._handle_exception(e)<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\addons\website\models\ir_http.py", line 253, in _handle_exception<br />    html = request.website._render('website.http_error', values)<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\api.py", line 235, in wrapper<br />    return new_api(self, *args, **kwargs)<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\api.py", line 552, in new_api<br />    result = method(self._model, cr, uid, self.ids, *args, **kwargs)<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\addons\website\models\website.py", line 286, in _render<br />    return self.pool['ir.ui.view'].render(cr, uid, template, values=values, context=context)<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\api.py", line 237, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\addons\website\models\ir_ui_view.py", line 151, in render<br />    editable=request.website.is_publisher(),<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\api.py", line 235, in wrapper<br />    return new_api(self, *args, **kwargs)<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\api.py", line 552, in new_api<br />    result = method(self._model, cr, uid, self.ids, *args, **kwargs)<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\addons\website\models\website.py", line 267, in is_publisher<br />    is_website_publisher = Access.check(cr, uid, 'ir.ui.view', 'write', False, context=context)<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\api.py", line 237, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "<string>", line 2, in check<br />    <br />  File "C:\Program Files (x86)\Odoo8\server\openerp\tools\cache.py", line 75, in lookup<br />    return self.method(*args, **kwargs)<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\addons\base\ir\ir_model.py", line 761, in check<br />    , (model_name, uid,)<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\sql_db.py", line 158, in wrapper<br />    return f(self, *args, **kwargs)<br />  File "C:\Program Files (x86)\Odoo8\server\openerp\sql_db.py", line 234, in execute<br />    res = self._obj.execute(query, params)<br />InternalError: 错误:  当前事务被终止, 事务块结束之前的查询被忽略



  • 我修复了,双出现同样的错误,我看了一下log<br />最后一行是<br />File "C:\Program Files (x86)\Odoo 8.0-20141231\server\openerp\sql_db.py", line 234, in execute<br />    res = self._obj.execute(query, params)<br />InternalError: 错误:  当前事务被终止, 事务块结束之前的查询被忽略<br />这很明显是数据库的问题,<br />仍不放心,用 netstat -an 看了一下  8069 5432这两个端口处在监听状态<br />这说明系统正常,所以我的结论是这个错误是访问数据库时出现的错误,<br />于是我打开postGreSQL修改了一个,果然可以了,<br />  步骤如下,右键单击数据库---维护 ---选中vacuum(这个意思是真空,不知何解) ,其下选择FULL<br />如图所示(这个论坛系统能不能改进一下直接插入图片啊)<br /><br />虽然成功了,这说明了一个问题  postGreSQL这种数据库不是很坚强啊,这么容易出错(这段时间我是正常开关机啊,还是这东东在windows下水士不服)<br />



  • 能把 错误  log  多贴点儿不?



  • 这已经是那个时点的全部log了



  • [code]<br /><br />  File "C:\Program Files (x86)\Odoo8\server\openerp\addons\website\models\website.py", line 267, in is_publisher<br />    is_website_publisher = Access.check(cr, uid, 'ir.ui.view', 'write', False, context=context)<br /><br />[/code]<br /><br />看起来好象是权限上面的问题造成的数据回滚.<br />修复后能用, 可能的解释就是, 修复后, 将你做的部分改动也回滚了. 这样就不出错了...


登录后回复
 

与 Odoo 中文社区 的连接断开,我们正在尝试重连,请耐心等待