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

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

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

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

开发环境在浏览器中点击模块菜单出错,大家帮忙看看什么问题?



  • 同一操作,在服务器用FIREFOX没问题,在另外一台LINUX上用FIREFOX也没问题,就是在WINDOWS上装的FIREFOX就报这个错

    [code]A problem occurred in a Python script.  Here is the sequence of
    function calls leading up to the error, in the order they occurred.

    /usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object at 0x95dcd8c>, path_info='/openerp/tree/data')
      598                    self.hooks.run('before_request_body')
      599                    if self.process_request_body:
      600                        self.process_body()
      601
      602                    self.stage = 'before_handler'
    self = <cherrypy._cprequest.Request object at 0x95dcd8c>
    self.process_body = <bound method Request.process_body of <cherrypy._cprequest.Request object at 0x95dcd8c>>

    /usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py in process_body(self=<cherrypy._cprequest.Request object at 0x95dcd8c>)
      720                                          # FieldStorage only recognizes POST.
      721                                          environ={'REQUEST_METHOD': "POST"},
      722                                          keep_blank_values=1)
      723        except Exception, e:
      724            if e.class.name == 'MaxSizeExceeded':
    keep_blank_values undefined

    /usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpcgifs.py in init(self=FieldStorage(None, None, None), *args=(), **kwds={'environ': {'REQUEST_METHOD': 'POST'}, 'fp': <cherrypy.wsgiserver.SizeCheckWrapper object at 0x964efcc>, 'headers': {'Remote-Addr': '192.168.1.224', 'Content-Length...pplication/x-www-form-urlencoded; charset=UTF-8'}, 'keep_blank_values': 1})
        6    def init(self, *args, **kwds):
        7        try:
        8            cgi.FieldStorage.init(self, *args, **kwds)
        9        except ValueError, ex:
      10            if str(ex) == 'Maximum content length exceeded':
    global cgi = <module 'cgi' from '/usr/lib/python2.6/cgi.pyc'>
    cgi.FieldStorage = <class cgi.FieldStorage at 0x82f2bcc>
    cgi.FieldStorage.init = <unbound method FieldStorage.init>
    self = FieldStorage(None, None, None)
    args = ()
    kwds = {'environ': {'REQUEST_METHOD': 'POST'}, 'fp': <cherrypy.wsgiserver.SizeCheckWrapper object at 0x964efcc>, 'headers': {'Remote-Addr': '192.168.1.224', 'Content-Length...pplication/x-www-form-urlencoded; charset=UTF-8'}, 'keep_blank_values': 1}

    /usr/lib/python2.6/cgi.py in init(self=FieldStorage(None, None, None), fp=<cherrypy.wsgiserver.SizeCheckWrapper object at 0x964efcc>, headers={'Remote-Addr': '192.168.1.224', 'Content-Length...pplication/x-www-form-urlencoded; charset=UTF-8'}, outerboundary='', environ={'REQUEST_METHOD': 'POST'}, keep_blank_values=1, strict_parsing=0)
      504        self.done = 0
      505        if ctype == 'application/x-www-form-urlencoded':
      506            self.read_urlencoded()
      507        elif ctype[:10] == 'multipart/':
      508            self.read_multi(environ, keep_blank_values, strict_parsing)
    self = FieldStorage(None, None, None)
    self.read_urlencoded = <bound method FieldStorage.read_urlencoded of FieldStorage(None, None, None)>

    /usr/lib/python2.6/cgi.py in read_urlencoded(self=FieldStorage(None, None, None))
      605    def read_urlencoded(self):
      606        """Internal: read data in query string format."""
      607        qs = self.fp.read(self.length)
      608        if self.qs_on_post:
      609            qs += '&' + self.qs_on_post
    qs undefined
    self = FieldStorage(None, None, None)
    self.fp = <cherrypy.wsgiserver.SizeCheckWrapper object at 0x964efcc>
    self.fp.read = <bound method SizeCheckWrapper.read of <cherrypy.wsgiserver.SizeCheckWrapper object at 0x964efcc>>
    self.length = 17713

    /usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/wsgiserver/init.py in read(self=<cherrypy.wsgiserver.SizeCheckWrapper object at 0x964efcc>, size=17713)
      197
      198    def read(self, size=None):
      199        data = self.rfile.read(size)
      200        self.bytes_read += len(data)
      201        self._check_length()
    data undefined
    self = <cherrypy.wsgiserver.SizeCheckWrapper object at 0x964efcc>
    self.rfile = <cherrypy.wsgiserver.CP_fileobject object at 0x943c22c>
    self.rfile.read = <bound method CP_fileobject.read of <cherrypy.wsgiserver.CP_fileobject object at 0x943c22c>>
    size = 17713

    /usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/wsgiserver/init.py in read(self=<cherrypy.wsgiserver.CP_fileobject object at 0x943c22c>, size=17713)
      789                    # as we copy it into a StringIO and free it.  This avoids
      790                    # fragmentation issues on many platforms.
      791                    data = self.recv(left)
      792                    if not data:
      793                        break
    data undefined
    self = <cherrypy.wsgiserver.CP_fileobject object at 0x943c22c>
    self.recv = <bound method CP_fileobject.recv of <cherrypy.wsgiserver.CP_fileobject object at 0x943c22c>>
    left = 14000

    /usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/wsgiserver/init.py in recv(self=<cherrypy.wsgiserver.CP_fileobject object at 0x943c22c>, size=14000)
      745            while True:
      746                try:
      747                    return self._sock.recv(size)
      748                except socket.error, e:
      749                    if (e.args[0] not in socket_errors_nonblocking
    self = <cherrypy.wsgiserver.CP_fileobject object at 0x943c22c>
    self._sock = <socket._socketobject object at 0x8f104fc>
    self._sock.recv = <built-in method recv of _socket.socket object at 0x87da638>
    size = 14000
    <class 'socket.timeout'>: timed out
        class = <class 'socket.timeout'>
        delattr = <method-wrapper 'delattr' of timeout object at 0x85169ec>
        dict = {}
        doc = None
        format = <built-in method format of timeout object at 0x85169ec>
        getattribute = <method-wrapper 'getattribute' of timeout object at 0x85169ec>
        getitem = <method-wrapper 'getitem' of timeout object at 0x85169ec>
        getslice = <method-wrapper 'getslice' of timeout object at 0x85169ec>
        hash = <method-wrapper 'hash' of timeout object at 0x85169ec>
        init = <method-wrapper 'init' of timeout object at 0x85169ec>
        module = 'socket'
        new = <built-in method new of type object at 0x24fc60>
        reduce = <built-in method reduce of timeout object at 0x85169ec>
        reduce_ex = <built-in method reduce_ex of timeout object at 0x85169ec>
        repr = <method-wrapper 'repr' of timeout object at 0x85169ec>
        setattr = <method-wrapper 'setattr' of timeout object at 0x85169ec>
        setstate = <built-in method setstate of timeout object at 0x85169ec>
        sizeof = <built-in method sizeof of timeout object at 0x85169ec>
        str = <method-wrapper 'str' of timeout object at 0x85169ec>
        subclasshook = <built-in method subclasshook of type object at 0x81f56a4>
        unicode = <built-in method unicode of timeout object at 0x85169ec>
        weakref = None
        args = ('timed out',)
        errno = None
        filename = None
        message = 'timed out'
        strerror = None

    The above is a description of an error in a Python program.  Here is
    the original traceback:

    Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 600, in respond
        self.process_body()
      File "/usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 722, in process_body
        keep_blank_values=1)
      File "/usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpcgifs.py", line 8, in init
        cgi.FieldStorage.init(self, args, kwds)
      File "/usr/lib/python2.6/cgi.py", line 506, in init
        self.read_urlencoded()
      File "/usr/lib/python2.6/cgi.py", line 607, in read_urlencoded
        qs = self.fp.read(self.length)
      File "/usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/wsgiserver/init.py", line 199, in read
        data = self.rfile.read(size)
      File "/usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/wsgiserver/init.py", line 791, in read
        data = self.recv(left)
      File "/usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/wsgiserver/init.py", line 747, in recv
        return self._sock.recv(size)
    timeout: timed out


    192.168.1.224 - - [20/Jun/2011:18:23:27] "POST /openerp/tree/data HTTP/1.1" 500 17990 "http://192.168.1.117:8080/openerp/menu?active=376" "Mozilla/5.0 (Windows; U; Windows NT 5.2; zh-CN; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3"
    [20/Jun/2011:18:23:45] HTTP
    Request Headers:
      REFERER: http://192.168.1.117:8080/openerp/menu?active=376
      Content-Length: 17713
      ACCEPT-CHARSET: GB2312,utf-8;q=0.7,
    ;q=0.7
      USER-AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.2; zh-CN; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
      CONNECTION: keep-alive
      COOKIE: session_id=e73442bee744bdc1e5c2c4505ebe8c08d58fa2be; terp_db=PCB; terp_user=admin
      Remote-Addr: 192.168.1.224
      PRAGMA: no-cache
      HOST: 192.168.1.117:8080
      CACHE-CONTROL: no-cache
      ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,
    /
    ;q=0.8
      ACCEPT-LANGUAGE: zh-cn,zh;q=0.5
      Content-Type: application/x-www-form-urlencoded; charset=UTF-8
      ACCEPT-ENCODING: gzip,deflate
      KEEP-ALIVE: 300
    [20/Jun/2011:18:23:45] HTTP <class 'socket.timeout'>
    Python 2.6.2: /usr/bin/python2.6
    Mon Jun 20 18:23:45 2011[/code]



  • 同一操作,在服务器用FIREFOX没问题,在另外一台LINUX上用FIREFOX也没问题,就是在WINDOWS上装的FIREFOX就报这个错

    [code]A problem occurred in a Python script.  Here is the sequence of
    function calls leading up to the error, in the order they occurred.

    /usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object at 0x95dcd8c>, path_info='/openerp/tree/data')
      598                    self.hooks.run('before_request_body')
      599                    if self.process_request_body:
      600                        self.process_body()
      601
      602                    self.stage = 'before_handler'
    self = <cherrypy._cprequest.Request object at 0x95dcd8c>
    self.process_body = <bound method Request.process_body of <cherrypy._cprequest.Request object at 0x95dcd8c>>

    /usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py in process_body(self=<cherrypy._cprequest.Request object at 0x95dcd8c>)
      720                                          # FieldStorage only recognizes POST.
      721                                          environ={'REQUEST_METHOD': "POST"},
      722                                          keep_blank_values=1)
      723        except Exception, e:
      724            if e.class.name == 'MaxSizeExceeded':
    keep_blank_values undefined

    /usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpcgifs.py in init(self=FieldStorage(None, None, None), *args=(), **kwds={'environ': {'REQUEST_METHOD': 'POST'}, 'fp': <cherrypy.wsgiserver.SizeCheckWrapper object at 0x964efcc>, 'headers': {'Remote-Addr': '192.168.1.224', 'Content-Length...pplication/x-www-form-urlencoded; charset=UTF-8'}, 'keep_blank_values': 1})
        6    def init(self, *args, **kwds):
        7        try:
        8            cgi.FieldStorage.init(self, *args, **kwds)
        9        except ValueError, ex:
      10            if str(ex) == 'Maximum content length exceeded':
    global cgi = <module 'cgi' from '/usr/lib/python2.6/cgi.pyc'>
    cgi.FieldStorage = <class cgi.FieldStorage at 0x82f2bcc>
    cgi.FieldStorage.init = <unbound method FieldStorage.init>
    self = FieldStorage(None, None, None)
    args = ()
    kwds = {'environ': {'REQUEST_METHOD': 'POST'}, 'fp': <cherrypy.wsgiserver.SizeCheckWrapper object at 0x964efcc>, 'headers': {'Remote-Addr': '192.168.1.224', 'Content-Length...pplication/x-www-form-urlencoded; charset=UTF-8'}, 'keep_blank_values': 1}

    /usr/lib/python2.6/cgi.py in init(self=FieldStorage(None, None, None), fp=<cherrypy.wsgiserver.SizeCheckWrapper object at 0x964efcc>, headers={'Remote-Addr': '192.168.1.224', 'Content-Length...pplication/x-www-form-urlencoded; charset=UTF-8'}, outerboundary='', environ={'REQUEST_METHOD': 'POST'}, keep_blank_values=1, strict_parsing=0)
      504        self.done = 0
      505        if ctype == 'application/x-www-form-urlencoded':
      506            self.read_urlencoded()
      507        elif ctype[:10] == 'multipart/':
      508            self.read_multi(environ, keep_blank_values, strict_parsing)
    self = FieldStorage(None, None, None)
    self.read_urlencoded = <bound method FieldStorage.read_urlencoded of FieldStorage(None, None, None)>

    /usr/lib/python2.6/cgi.py in read_urlencoded(self=FieldStorage(None, None, None))
      605    def read_urlencoded(self):
      606        """Internal: read data in query string format."""
      607        qs = self.fp.read(self.length)
      608        if self.qs_on_post:
      609            qs += '&' + self.qs_on_post
    qs undefined
    self = FieldStorage(None, None, None)
    self.fp = <cherrypy.wsgiserver.SizeCheckWrapper object at 0x964efcc>
    self.fp.read = <bound method SizeCheckWrapper.read of <cherrypy.wsgiserver.SizeCheckWrapper object at 0x964efcc>>
    self.length = 17713

    /usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/wsgiserver/init.py in read(self=<cherrypy.wsgiserver.SizeCheckWrapper object at 0x964efcc>, size=17713)
      197
      198    def read(self, size=None):
      199        data = self.rfile.read(size)
      200        self.bytes_read += len(data)
      201        self._check_length()
    data undefined
    self = <cherrypy.wsgiserver.SizeCheckWrapper object at 0x964efcc>
    self.rfile = <cherrypy.wsgiserver.CP_fileobject object at 0x943c22c>
    self.rfile.read = <bound method CP_fileobject.read of <cherrypy.wsgiserver.CP_fileobject object at 0x943c22c>>
    size = 17713

    /usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/wsgiserver/init.py in read(self=<cherrypy.wsgiserver.CP_fileobject object at 0x943c22c>, size=17713)
      789                    # as we copy it into a StringIO and free it.  This avoids
      790                    # fragmentation issues on many platforms.
      791                    data = self.recv(left)
      792                    if not data:
      793                        break
    data undefined
    self = <cherrypy.wsgiserver.CP_fileobject object at 0x943c22c>
    self.recv = <bound method CP_fileobject.recv of <cherrypy.wsgiserver.CP_fileobject object at 0x943c22c>>
    left = 14000

    /usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/wsgiserver/init.py in recv(self=<cherrypy.wsgiserver.CP_fileobject object at 0x943c22c>, size=14000)
      745            while True:
      746                try:
      747                    return self._sock.recv(size)
      748                except socket.error, e:
      749                    if (e.args[0] not in socket_errors_nonblocking
    self = <cherrypy.wsgiserver.CP_fileobject object at 0x943c22c>
    self._sock = <socket._socketobject object at 0x8f104fc>
    self._sock.recv = <built-in method recv of _socket.socket object at 0x87da638>
    size = 14000
    <class 'socket.timeout'>: timed out
        class = <class 'socket.timeout'>
        delattr = <method-wrapper 'delattr' of timeout object at 0x85169ec>
        dict = {}
        doc = None
        format = <built-in method format of timeout object at 0x85169ec>
        getattribute = <method-wrapper 'getattribute' of timeout object at 0x85169ec>
        getitem = <method-wrapper 'getitem' of timeout object at 0x85169ec>
        getslice = <method-wrapper 'getslice' of timeout object at 0x85169ec>
        hash = <method-wrapper 'hash' of timeout object at 0x85169ec>
        init = <method-wrapper 'init' of timeout object at 0x85169ec>
        module = 'socket'
        new = <built-in method new of type object at 0x24fc60>
        reduce = <built-in method reduce of timeout object at 0x85169ec>
        reduce_ex = <built-in method reduce_ex of timeout object at 0x85169ec>
        repr = <method-wrapper 'repr' of timeout object at 0x85169ec>
        setattr = <method-wrapper 'setattr' of timeout object at 0x85169ec>
        setstate = <built-in method setstate of timeout object at 0x85169ec>
        sizeof = <built-in method sizeof of timeout object at 0x85169ec>
        str = <method-wrapper 'str' of timeout object at 0x85169ec>
        subclasshook = <built-in method subclasshook of type object at 0x81f56a4>
        unicode = <built-in method unicode of timeout object at 0x85169ec>
        weakref = None
        args = ('timed out',)
        errno = None
        filename = None
        message = 'timed out'
        strerror = None

    The above is a description of an error in a Python program.  Here is
    the original traceback:

    Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 600, in respond
        self.process_body()
      File "/usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 722, in process_body
        keep_blank_values=1)
      File "/usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpcgifs.py", line 8, in init
        cgi.FieldStorage.init(self, args, kwds)
      File "/usr/lib/python2.6/cgi.py", line 506, in init
        self.read_urlencoded()
      File "/usr/lib/python2.6/cgi.py", line 607, in read_urlencoded
        qs = self.fp.read(self.length)
      File "/usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/wsgiserver/init.py", line 199, in read
        data = self.rfile.read(size)
      File "/usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/wsgiserver/init.py", line 791, in read
        data = self.recv(left)
      File "/usr/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/wsgiserver/init.py", line 747, in recv
        return self._sock.recv(size)
    timeout: timed out


    192.168.1.224 - - [20/Jun/2011:18:23:27] "POST /openerp/tree/data HTTP/1.1" 500 17990 "http://192.168.1.117:8080/openerp/menu?active=376" "Mozilla/5.0 (Windows; U; Windows NT 5.2; zh-CN; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3"
    [20/Jun/2011:18:23:45] HTTP
    Request Headers:
      REFERER: http://192.168.1.117:8080/openerp/menu?active=376
      Content-Length: 17713
      ACCEPT-CHARSET: GB2312,utf-8;q=0.7,
    ;q=0.7
      USER-AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.2; zh-CN; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
      CONNECTION: keep-alive
      COOKIE: session_id=e73442bee744bdc1e5c2c4505ebe8c08d58fa2be; terp_db=PCB; terp_user=admin
      Remote-Addr: 192.168.1.224
      PRAGMA: no-cache
      HOST: 192.168.1.117:8080
      CACHE-CONTROL: no-cache
      ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,
    /
    ;q=0.8
      ACCEPT-LANGUAGE: zh-cn,zh;q=0.5
      Content-Type: application/x-www-form-urlencoded; charset=UTF-8
      ACCEPT-ENCODING: gzip,deflate
      KEEP-ALIVE: 300
    [20/Jun/2011:18:23:45] HTTP <class 'socket.timeout'>
    Python 2.6.2: /usr/bin/python2.6
    Mon Jun 20 18:23:45 2011[/code]



  • 测试发现,把虚拟机拷到另一台机器上,运行正常,创建虚拟机时的主机是双核,后面升级成4核才出的问题,难道跟虚拟机所在主机配置变化有关系?



  • 自已解决了,将vmware 6.5.3升级到7.1.4后再打开就没这个问题了。



  • 没有遇上过这种问题.
    倒是在 WinXP 上的 web client 老是容易出 HTTP 408 错误...


登录后回复
 

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