我们一直在使用 Trac 进行任务/缺陷跟踪,一切进展顺利,但今天早上它开始出现 500 错误。查看 Apache error_log,我得到了一个堆栈跟踪,最终是:
PythonHandler trac.web.modpython_frontend: ExtractionError: Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: [Errno 13] Permission denied: '/.python-eggs' The Python egg cache directory is currently set to: /.python-eggs Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment variable to point to an accessible directory
所以我明确地将 PYTHON_EGG_CACHE 设置为/srv/trac/plugin-cache。我重新启动了 Apache。然而我得到了同样的错误(它仍然说“egg cache directory current set to:\n\n/.python_eggs.”)
我应该如何进行?重新安装 Trac 是最简单的事情吗?如果我走那条路,我需要采取哪些步骤来确保我不会丢失现有数据?
请您参考如下方法:
根据他们的 bug tracking system,这应该在 0.11 中得到修复.
如果不是这种情况,您应该尝试将环境变量传递给 apache,因为在配置文件中执行 SetEnv 不起作用。添加类似
的内容export PYTHON_EGG_CACHE=/tmp/python_eggs
您用来启动 apache 的脚本应该可以工作。
