Chinaunix首页 | 论坛 | 博客
  • 博客访问: 430149
  • 博文数量: 114
  • 博客积分: 3361
  • 博客等级: 中校
  • 技术积分: 1060
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-18 13:14
文章分类

全部博文(114)

文章存档

2012年(1)

2011年(84)

2010年(29)

分类:

2011-05-13 08:53:07

前些日子升级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又回来了
阅读(1550) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

网络安全服务2011-08-23 10:38:34