从trac 0.10.3升级到0.12 mod_python数据库错误

发布于 2024-09-19 16:22:38 字数 2086 浏览 2 评论 0原文

我正在尝试升级 trac!从 0.10.3 到 0.12。需要帮助,我基本上执行了此处显示的步骤

http://trac.edgewall.org/wiki/TracUpgrade

所以我执行了这个命令,没有错误:

todasana:~# easy_install —upgrade Trac0.12 搜索 Trac0.12


todasana:~# trac-admin /usr/local/apache2/htdocs/trac_catw3升级


todasana:~# trac-admin /usr/local/apache2/htdocs/trac_catw3 wiki 升级


todasana:~# trac-admin /usr/local/apache2/htdocs/trac_catw3 存储库重新同步 '*'


未执行步骤5 刷新静态资源,因为我不明白它,并且我认为它不适用于我: trac-admin /path/to/env deploy /deploy/path

然后我 重新启动阿帕奇: /etc/init.d/apache2 restart

现在在浏览器中出现此错误:
Mod_python 错误:“PythonHandler trac.web.modpython_frontend”
回溯(最近一次调用最后一次):
文件“/usr/lib/python2.4/site-packages/mod_python/apache.py”,第 299 行,位于 HandlerDispatch
结果 = 对象(请求)
文件“/var/lib/python-support/python2.4/trac/web/modpython_frontend.py”,第 87 行,处理程序
gateway.run(dispatch_request)
文件“/var/lib/python-support/python2.4/trac/web/wsgi.py”,第 87 行,运行
响应=应用程序(self.environ,self._start_response)
文件“/var/lib/python-support/python2.4/trac/web/main.py”,第 377 行,dispatch_request
env = _open_environment(env_path, run_once=run_once)
文件“/var/lib/python-support/python2.4/trac/web/main.py”,第 58 行,位于 _open_environment
env_cache[env_path] = open_environment(env_path)
文件“/var/lib/python-support/python2.4/trac/env.py”,第 435 行,在 open_environment
if env.needs_upgrade():
文件“/var/lib/python-support/python2.4/trac/env.py”,第 315 行,在 need_upgrade
如果参与者.environment_needs_upgrade(db):
文件“/var/lib/python-support/python2.4/trac/env.py”,第 373 行,位于environment_needs_upgrade
raise TracError, '数据库比 Trac 版本更新'

TracError: 数据库比 Trac 版本更新

有 Python 2.4.4 (#2, Jan 24 2010, 11:19:18)
mysql:服务器版本:5.0.32-Debian_7etch11-log Debian etch 发行版

我觉得应该对数据库或配置文件做一些事情,但不确定做什么,因为文档中没有任何内容它!
伙计们度过了美好的一天!!

I´m trying to upgrade trac! from 0.10.3 to 0.12. Need help, i basiclally did steps shown here

http://trac.edgewall.org/wiki/TracUpgrade

So i went through this commands without errors:

todasana:~# easy_install —upgrade Trac0.12 Searching for Trac0.12


todasana:~# trac-admin /usr/local/apache2/htdocs/trac_catw3 upgrade


todasana:~# trac-admin /usr/local/apache2/htdocs/trac_catw3 wiki upgrade


todasana:~# trac-admin /usr/local/apache2/htdocs/trac_catw3 repository resync ‘*’


Didn´t do Step 5 Refresh static resources, because i did not understand it, and i think it does not apply to me: trac-admin /path/to/env deploy /deploy/path

then i
restarted apache:
/etc/init.d/apache2 restart

got this error in the browser now:
Mod_python error: "PythonHandler trac.web.modpython_frontend"
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
result = object(req)
File "/var/lib/python-support/python2.4/trac/web/modpython_frontend.py", line 87, in handler
gateway.run(dispatch_request)
File "/var/lib/python-support/python2.4/trac/web/wsgi.py", line 87, in run
response = application(self.environ, self._start_response)
File "/var/lib/python-support/python2.4/trac/web/main.py", line 377, in dispatch_request
env = _open_environment(env_path, run_once=run_once)
File "/var/lib/python-support/python2.4/trac/web/main.py", line 58, in _open_environment
env_cache[env_path] = open_environment(env_path)
File "/var/lib/python-support/python2.4/trac/env.py", line 435, in open_environment
if env.needs_upgrade():
File "/var/lib/python-support/python2.4/trac/env.py", line 315, in needs_upgrade
if participant.environment_needs_upgrade(db):
File "/var/lib/python-support/python2.4/trac/env.py", line 373, in environment_needs_upgrade
raise TracError, 'Database newer than Trac version'

TracError: Database newer than Trac version

got Python 2.4.4 (#2, Jan 24 2010, 11:19:18)
mysql: Server version: 5.0.32-Debian_7etch11-log Debian etch distribution

IT OCCOURS TO ME THAT SOMETHING SHOULD BE DONE WITH THE DATABASE OR CONFIG FILES, BUT NOT SURE WHAT BECAUSE THERE IS NOTHING IN THE DOCS ABOUT IT!
Guys have a great day!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

飘然心甜 2024-09-26 16:22:38

听起来 Apache 运行的 Trac 版本是旧版本,而不是您刚刚安装的版本。验证您正在运行的 Trac 版本是否是您认为正在运行的版本。

It sounds like the version of Trac being run by Apache is the older version and not the version you just installed. Verify that the version of Trac you are running is the version you think you are running.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文