我们一直在使用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.然而我得到了同样的错误(它仍然说"鸡蛋缓存目录当前设置为:\n \n /.python_eggs.")
我该怎么办?重新安装Trac最简单的事情是什么?如果我走这条路,我需要采取哪些措施来确保我不会丢失现有数据?
根据他们的错误跟踪系统,应该在0.11 修复.
如果不是这种情况,您应该尝试将环境var传递给apache,因为在配置文件中执行SetEnv不起作用.添加类似的东西
export PYTHON_EGG_CACHE=/tmp/python_eggs
你用来启动apache的脚本应该工作.