【问题标题】:Plone buildout error non-existant file克隆构建错误不存在文件
【发布时间】:2015-02-11 19:02:44
【问题描述】:

我有一个 Plone 4.3.3 站点在构建时抛出错误:

Traceback (most recent call last):
  File "/usr/local/Proforest4.3/buildout-cache/eggs/zc.buildout-2.2.5-py2.7.egg/zc/buildout/buildout.py", line 1946, in main
    getattr(buildout, command)(args)
  File "/usr/local/Proforest4.3/buildout-cache/eggs/zc.buildout-2.2.5-py2.7.egg/zc/buildout/buildout.py", line 626, in install
    installed_files = self[part]._call(recipe.install)
  File "/usr/local/Proforest4.3/buildout-cache/eggs/zc.buildout-2.2.5-py2.7.egg/zc/buildout/buildout.py", line 1370, in _call
    return f()
  File "/data/usr/local/Proforest4.3/buildout-cache/eggs/plone.recipe.precompiler-0.6-py2.7.egg/plone/recipe/precompiler/__init__.py", line 29, in install
    return self._run()
  File "/data/usr/local/Proforest4.3/buildout-cache/eggs/plone.recipe.precompiler-0.6-py2.7.egg/plone/recipe/precompiler/__init__.py", line 35, in _run
    self._compile_eggs()
  File "/data/usr/local/Proforest4.3/buildout-cache/eggs/plone.recipe.precompiler-0.6-py2.7.egg/plone/recipe/precompiler/__init__.py", line 67, in _compile_eggs
    py_compile.compile(fn, None, None, True)
  File "/usr/lib64/python2.7/py_compile.py", line 123, in compile
    with open(cfile, 'wb') as fc:
IOError: [Errno 13] Permission denied: '/data/usr/local/Proforest4.3/test/src/proforest.content/proforest/content/behaviours/accordion.pyc'

accordion.py 确实存在,但 .pyc 版本不存在

accordion.py 的权限似乎正确(归 plone_buildout 等所有)

我该如何解决?

【问题讨论】:

    标签: plone buildout


    【解决方案1】:

    您的用户正在尝试创建该文件,但文件系统权限错误。

    检查 Plone 有效用户是否能够写入构建文件夹。

    【讨论】:

    • 如果您使用了统一安装程序,并以 root 身份安装,您可能需要以 plone_buildout 用户身份运行 buildout: sudo -u plone_buildout bin/buildout 使用单独的用户运行 buildout 允许我们防止守护程序用户写入代码目录。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-29
    • 1970-01-01
    相关资源
    最近更新 更多