当我关闭Zope服务器时,它显示AttributeError [英] When I shutdown the Zope server it shows an AttributeError

查看:130
本文介绍了当我关闭Zope服务器时,它显示AttributeError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Plone 4.3.3创建我的Plone站点,但是当我关闭服务器时,它显示以下错误.

 Traceback (most recent call last):
  File "/Plone/zinstance/parts/instance/bin/interpreter", line 298, in <module>
    exec(compile(__file__f.read(), __file__, "exec"))
  File "/Plone/buildout-cache/eggs/Zope2-2.13.22-py2.7.egg/Zope2/Startup/run.py", line 76, in <module>
    run()
  File "/Plone/buildout-cache/eggs/Zope2-2.13.22-py2.7.egg/Zope2/Startup/run.py", line 26, in run
    starter.run()
  File "/Plone/buildout-cache/eggs/Zope2-2.13.22-py2.7.egg/Zope2/Startup/__init__.py", line 108, in run
    self.shutdown()
  File "/Plone/buildout-cache/eggs/Zope2-2.13.22-py2.7.egg/Zope2/Startup/__init__.py", line 113, in shutdown
    db.close()
  File "/Plone/buildout-cache/eggs/ZODB3-3.10.5-py2.7-linux-i686.egg/ZODB/DB.py", line 624, in close
user@user-Vostro-3300:~/Plone/zinstance$     @self._connectionMap
  File "/Plone/buildout-cache/eggs/ZODB3-3.10.5-py2.7-linux-i686.egg/ZODB/DB.py", line 506, in _connectionMap
    self.pool.map(f)
  File "/Plone/buildout-cache/eggs/ZODB3-3.10.5-py2.7-linux-i686.egg/ZODB/DB.py", line 206, in map
    self.all.map(f)
  File "/Plone/buildout-cache/eggs/transaction-1.1.1-py2.7.egg/transaction/weakset.py", line 58, in map
    f(elt)
  File "/Plone/buildout-cache/eggs/ZODB3-3.10.5-py2.7-linux-i686.egg/ZODB/DB.py", line 628, in _
    c._release_resources()
  File "/Plone/buildout-cache/eggs/ZODB3-3.10.5-py2.7-linux-i686.egg/ZODB/Connection.py", line 1075, in _release_resources
    c._storage.release()
AttributeError: 'NoneType' object has no attribute 'release'

解决方案

Zope2关闭存在一个问题,该问题试图关闭数据库连接(进而关闭存储).但是,此后期运行序列对RelStorage的用户有一些装饰性的副作用.这很烦人,但从根本上讲不是应该引起任何数据完整性问题的问题.

FileStorage或ZEO的用户不应看到此信息.

参考: https://github.com/zopefoundation/Zope/commit/5032027470091957a6c0028da04c0fc0a1 https://mail.zope.org/pipermail/zodb-dev/2013-August/015119.html

I am using Plone 4.3.3 for creating my Plone site but when I shut-down the server it shows the following error.

 Traceback (most recent call last):
  File "/Plone/zinstance/parts/instance/bin/interpreter", line 298, in <module>
    exec(compile(__file__f.read(), __file__, "exec"))
  File "/Plone/buildout-cache/eggs/Zope2-2.13.22-py2.7.egg/Zope2/Startup/run.py", line 76, in <module>
    run()
  File "/Plone/buildout-cache/eggs/Zope2-2.13.22-py2.7.egg/Zope2/Startup/run.py", line 26, in run
    starter.run()
  File "/Plone/buildout-cache/eggs/Zope2-2.13.22-py2.7.egg/Zope2/Startup/__init__.py", line 108, in run
    self.shutdown()
  File "/Plone/buildout-cache/eggs/Zope2-2.13.22-py2.7.egg/Zope2/Startup/__init__.py", line 113, in shutdown
    db.close()
  File "/Plone/buildout-cache/eggs/ZODB3-3.10.5-py2.7-linux-i686.egg/ZODB/DB.py", line 624, in close
user@user-Vostro-3300:~/Plone/zinstance$     @self._connectionMap
  File "/Plone/buildout-cache/eggs/ZODB3-3.10.5-py2.7-linux-i686.egg/ZODB/DB.py", line 506, in _connectionMap
    self.pool.map(f)
  File "/Plone/buildout-cache/eggs/ZODB3-3.10.5-py2.7-linux-i686.egg/ZODB/DB.py", line 206, in map
    self.all.map(f)
  File "/Plone/buildout-cache/eggs/transaction-1.1.1-py2.7.egg/transaction/weakset.py", line 58, in map
    f(elt)
  File "/Plone/buildout-cache/eggs/ZODB3-3.10.5-py2.7-linux-i686.egg/ZODB/DB.py", line 628, in _
    c._release_resources()
  File "/Plone/buildout-cache/eggs/ZODB3-3.10.5-py2.7-linux-i686.egg/ZODB/Connection.py", line 1075, in _release_resources
    c._storage.release()
AttributeError: 'NoneType' object has no attribute 'release'

解决方案

There is an issue with Zope2 shutdown that tries to close a database connection (and in turn, a storage). However, this late-running sequence has some cosmetic side-effect for users of RelStorage. This is annoying, but not fundamentally a problem that should cause any data integrity issues.

Users of FileStorage or ZEO should not see this.

References: https://github.com/zopefoundation/Zope/commit/5032027470091957a6c0028da04c0fc0a1ed646b

https://mail.zope.org/pipermail/zodb-dev/2013-August/015119.html

这篇关于当我关闭Zope服务器时,它显示AttributeError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆