Hi,
when accessing trac with apache, get the following error message:
Warning: Can't synchronize with repository "(default)" (Unsupported
version control system "svn": Can't find an appropriate component,
maybe the corresponding plugin was not enabled? ). Look in the Trac
log for more information.
I am using
QNAP NAS system with NSLU2 Linux
apache 2.2.20-1
svn 1.6.17-1
svn-python 1.6.17-1
trac 0.12.1-1 for python26
python 2.6.7-1
python 2.5.6-1 (installed parallelly)
The web is full of similar cases and I think I have read them all and
tried all the advices in the last week. But nothing seemed to help my
case. Here is what I did:
1) Checked that python can find the svn-python bindings:
> python
Python 2.6.7 (r267:88850, Jun 8 2011, 19:25:58)
[GCC 4.2.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import svn
>>>
2) Added svn-python to python path
Added subversion.pth file to /opt/lib/python2.6/site-packages
Confirmed pythin path by printing it in the trac.wsgi script (see
below)
3) Confirmed that svn module can be loaded from within WSGI module
(see trac.wsgi file below)
---
I don't get any error messages in my apache or trac logs. The error
message is just printed in the web page. How can I track this problem
down?
---------------------------------------------------------------------------------------------------------------------------------------
apache error_log:
[Sat Jan 07 20:17:38 2012] [info] mod_wsgi (pid=27177): Starting
process 'trac' with uid=99, gid=100 and threads=25.
[Sat Jan 07 20:17:38 2012] [alert] (2)No such file or directory:
mod_wsgi (pid=27177): Unable to change working directory to '/share/
homes/httpdusr'.
[Sat Jan 07 20:17:39 2012] [info] mod_wsgi (pid=27177): Initializing
Python.
[Sat Jan 07 20:17:39 2012] [notice] Apache/2.2.14 (Unix) DAV/2
mod_wsgi/3.3 Python/2.6.7 configured -- resuming normal operations
[Sat Jan 07 20:17:39 2012] [info] Server built: Nov 12 2011 05:31:22
[Sat Jan 07 20:17:39 2012] [info] mod_wsgi (pid=27181): Initializing
Python.
[Sat Jan 07 20:17:39 2012] [info] mod_wsgi (pid=27180): Initializing
Python.
[Sat Jan 07 20:17:39 2012] [info] mod_wsgi (pid=27177): Attach
interpreter ''.
[Sat Jan 07 20:17:39 2012] [info] mod_wsgi (pid=27180): Attach
interpreter ''.
[Sat Jan 07 20:17:39 2012] [info] mod_wsgi (pid=27181): Attach
interpreter ''.
[Sat Jan 07 20:17:51 2012] [info] [client 192.168.3.5] mod_wsgi
(pid=27177, process='trac', application=''): Loading WSGI script '/
share/MD0_DATA/Trac/.apache/trac.wsgi'.
[Sat Jan 07 20:17:51 2012] [error] Loaded trac.wsgi. Using Python
version:
[Sat Jan 07 20:17:51 2012] [error] 2.6.7 (r267:88850, Jun 8 2011,
19:25:58)
[Sat Jan 07 20:17:51 2012] [error] [GCC 4.2.3]
[Sat Jan 07 20:17:51 2012] [error] Python sys.path:
[Sat Jan 07 20:17:51 2012] [error] ['/opt/lib/python26.zip', '/opt/lib/
python2.6', '/opt/lib/python2.6/plat-linux2', '/opt/lib/python2.6/lib-
tk', '/opt/lib/python2.6/lib-old', '/opt/lib/python2.6/lib-dynload', '/
opt/local/lib/python2.6/site-packages', '/opt/lib/python2.6/site-
packages', '/opt/lib/svn-python']
[Sat Jan 07 20:17:51 2012] [error] /opt/lib/svn-python/svn/repos.pyc
[Sat Jan 07 20:17:51 2012] [error] 2.6.7 (r267:88850, Jun 8 2011,
19:25:58)
[Sat Jan 07 20:17:51 2012] [error] [GCC 4.2.3]
[Sat Jan 07 20:17:52 2012] [info] mod_wsgi (pid=27212): Initializing
Python.
[Sat Jan 07 20:17:52 2012] [info] mod_wsgi (pid=27212): Attach
interpreter ''.
---------------------------------------------------------------------------------------------------------------------------------------
trag log:
2012-01-07 20:17:56,317 Trac[env] INFO:
-------------------------------- environment startup [Trac 0.12]
--------------------------------
2012-01-07 20:17:58,516 Trac[main] DEBUG: Dispatching <Request "GET
'/'">
2012-01-07 20:17:58,573 Trac[chrome] DEBUG: Prepare chrome data for
request
2012-01-07 20:17:58,586 Trac[session] DEBUG: Retrieving session for ID
'77a9722d7b06ff5c2f498b84'
2012-01-07 20:17:58,611 Trac[api] INFO: Synchronized '' repository in
0.07 seconds
2012-01-07 20:17:58,957 Trac[perm] DEBUG: No policy allowed anonymous
performing EMAIL_VIEW on None
2012-01-07 20:18:00,325 Trac[perm] DEBUG: No policy allowed anonymous
performing WIKI_ADMIN on <Resource u'wiki:WikiStart'>
2012-01-07 20:18:02,571 Trac[perm] DEBUG: No policy allowed anonymous
performing WIKI_DELETE on <Resource u'wiki:WikiStart'>
2012-01-07 20:18:02,574 Trac[perm] DEBUG: No policy allowed anonymous
performing WIKI_RENAME on <Resource u'wiki:WikiStart'>
2012-01-07 20:18:02,777 Trac[main] DEBUG: Dispatching <Request "GET '/
chrome/common/MILK_Logo_Small.png'">
2012-01-07 20:18:02,783 Trac[chrome] WARNING: File MILK_Logo_Small.png
not found in any of ['/opt/lib/python2.6/site-packages/trac/htdocs']
2012-01-07 20:18:02,786 Trac[main] WARNING: HTTPNotFound: 404 Not
Found (File MILK_Logo_Small.png not found)
2012-01-07 20:18:02,790 Trac[session] DEBUG: Retrieving session for ID
'77a9722d7b06ff5c2f498b84'
2012-01-07 20:18:03,173 Trac[chrome] DEBUG: Prepare chrome data for
request
2012-01-07 20:18:03,189 Trac[perm] DEBUG: No policy allowed anonymous
performing EMAIL_VIEW on None
---------------------------------------------------------------------------------------------------------------------------------------
trac.wsgi script
#!/share/MD0_DATA/.qpkg/Optware/bin/python2.6
import sys
print 'Loaded trac.wsgi. Using Python version: '
print sys.version
# print python path to see if we can find svn-python
print 'Python sys.path:'
print sys.path
# import svn module, just to test if we can access it from within wsgi
script
import svn.repos
print svn.repos.__file__
print sys.version
import trac.web.main
import trac.db.sqlite_backend
import trac.wiki.web_ui
_application = trac.web.main.dispatch_request
def application(environ, start_response):
environ['trac.env_parent_dir'] = '/share/MD0_DATA/Trac'
environ['PYTHON_EGG_CACHE'] = '/share/MD0_DATA/Trac/.eggs'
return _application(environ, start_response)
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.