前些日子升级ubuntu10.10到11.04,
系统吧python由2.6升级到2.7了
我本机上装的一个trac也挂掉了,
终于有时间来稿下了,
先吧trac重新安装了一下,发现不行,去日志看,
[Thu May 12 22:17:53 2011] [error] [client 127.0.0.1] ServerName: 'localhost.localdomain'
[Thu May 12 22:17:53 2011] [error] [client 127.0.0.1] DocumentRoot: '/home/wang/www'
[Thu May 12 22:17:53 2011] [error] [client 127.0.0.1] URI: '/first-trac'
[Thu May 12 22:17:53 2011] [error] [client 127.0.0.1] Location: '/first-trac'
[Thu May 12 22:17:53 2011] [error] [client 127.0.0.1] Directory: None
[Thu May 12 22:17:53 2011] [error] [client 127.0.0.1] Filename: '/home/wang/www/first-trac'
[Thu May 12 22:17:53 2011] [error] [client 127.0.0.1] PathInfo: ''
[Thu May 12 22:17:53 2011] [error] [client 127.0.0.1] Traceback (most recent call last):
[Thu May 12 22:17:53 2011] [error] [client 127.0.0.1] File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch\n default=default_handler, arg=req, silent=hlist.silent)
[Thu May 12 22:17:53 2011] [error] [client 127.0.0.1] File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1202, in _process_target\n module = import_module(module_name, path=path)
[Thu May 12 22:17:53 2011] [error] [client 127.0.0.1] File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 304, in import_module\n return __import__(module_name, {}, {}, ['*'])
[Thu May 12 22:17:53 2011] [error] [client 127.0.0.1] ImportError: No module named trac.web.modpython_frontend
[Thu May 12 22:17:53 2011] [error] [client 127.0.0.1] File does not exist: /home/wang/www/favicon.ico
[Thu May 12 22:17:53 2011] [error] [client 127.0.0.1] File does not exist: /home/wang/www/favicon.ico
[Thu May 12 22:32:33 2011] [notice] caught SIGTERM, shutting down
[Thu May 12 22:32:34 2011] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Thu May 12 22:32:34 2011] [notice] mod_python: using mutex_directory /tmp
[Thu May 12 22:32:34 2011] [notice] Apache/2.2.17 (Ubuntu) DAV/2 SVN/1.6.12 PHP/5.3.5-1ubuntu7.1 with Suhosin-Patch mod_python/3.3.1 Python/2.7.1+ mod_wsgi/3.3 configured -- resuming normal operations
[Thu May 12 22:32:42 2011] [error] [client 127.0.0.1] mod_python (pid=2603, interpreter='main_interpreter', phase='PythonHandler', handler='trac.web.modpython_frontend'): Application error
[Thu May 12 22:32:42 2011] [error] [client 127.0.0.1] ServerName: 'localhost.localdomain'
[Thu May 12 22:32:42 2011] [error] [client 127.0.0.1] DocumentRoot: '/home/wang/www'
[Thu May 12 22:32:42 2011] [error] [client 127.0.0.1] URI: '/first-trac'
[Thu May 12 22:32:42 2011] [error] [client 127.0.0.1] Location: '/first-trac'
[Thu May 12 22:32:42 2011] [error] [client 127.0.0.1] Directory: None
[Thu May 12 22:32:42 2011] [error] [client 127.0.0.1] Filename: '/home/wang/www/first-trac'
[Thu May 12 22:32:42 2011] [error] [client 127.0.0.1] PathInfo: ''
[Thu May 12 22:32:42 2011] [error] [client 127.0.0.1] Traceback (most recent call last):
[Thu May 12 22:32:42 2011] [error] [client 127.0.0.1] File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch\n default=default_handler, arg=req, silent=hlist.silent)
[Thu May 12 22:32:42 2011] [error] [client 127.0.0.1] File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1202, in _process_target\n module = import_module(module_name, path=path)
[Thu May 12 22:32:42 2011] [error] [client 127.0.0.1] File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 304, in import_module\n return __import__(module_name, {}, {}, ['*'])
[Thu May 12 22:32:42 2011] [error] [client 127.0.0.1] ImportError: No module named trac.web.modpython_frontend
[Thu May 12 22:32:45 2011] [error] [client 127.0.0.1] mod_python (pid=2607, interpreter='main_interpreter', phase='PythonHandler', handler='trac.web.modpython_frontend'): Application error
[Thu May 12 22:32:45 2011] [error] [client 127.0.0.1] ServerName: 'localhost.localdomain'
[Thu May 12 22:32:45 2011] [error] [client 127.0.0.1] DocumentRoot: '/home/wang/www'
[Thu May 12 22:32:45 2011] [error] [client 127.0.0.1] URI: '/first-trac'
[Thu May 12 22:32:45 2011] [error] [client 127.0.0.1] Location: '/first-trac'
[Thu May 12 22:32:45 2011] [error] [client 127.0.0.1] Directory: None
[Thu May 12 22:32:45 2011] [error] [client 127.0.0.1] Filename: '/home/wang/www/first-trac'
[Thu May 12 22:32:45 2011] [error] [client 127.0.0.1] PathInfo: ''
[Thu May 12 22:32:45 2011] [error] [client 127.0.0.1] Traceback (most recent call last):
[Thu May 12 22:32:45 2011] [error] [client 127.0.0.1] File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch\n default=default_handler, arg=req, silent=hlist.silent)
[Thu May 12 22:32:45 2011] [error] [client 127.0.0.1] File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1202, in _process_target\n module = import_module(module_name, path=path)
[Thu May 12 22:32:45 2011] [error] [client 127.0.0.1] File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 304, in import_module\n return __import__(module_name, {}, {}, ['*'])
[Thu May 12 22:32:45 2011] [error] [client 127.0.0.1] ImportError: No module named trac.web.modpython_frontend
[Fri May 13 08:41:19 2011] [notice] caught SIGTERM, shutting down
[Fri May 13 08:41:20 2011] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Fri May 13 08:41:20 2011] [notice] mod_python: using mutex_directory /tmp
[Fri May 13 08:41:20 2011] [notice] Apache/2.2.17 (Ubuntu) DAV/2 SVN/1.6.12 PHP/5.3.5-1ubuntu7.1 with Suhosin-Patch mod_python/3.3.1 Python/2.7.1+ mod_wsgi/3.3 configured -- resuming normal operations
,mod_python 模块找不到,重新安装。
sudo apt-get install libapache2-mod-python --reinstall
重启apache
好了,可爱的trac又回来了
阅读(1540) | 评论(1) | 转发(0) |