当我关闭 Zope 服务器时,它显示一个 AttributeError

When I shutdown the Zope server it shows an 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 关闭存在问题。然而,这个 late-运行 序列对 RelStorage 的用户有一些美观的副作用。这很烦人,但从根本上来说不是一个会导致任何数据完整性问题的问题。

FileStorage 或 ZEO 的用户不应看到此内容。

参考资料: https://github.com/zopefoundation/Zope/commit/5032027470091957a6c0028da04c0fc0a1ed646b

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