Modify

Opened 6 years ago

Last modified 5 years ago

#4072 new defect

Error message after following setup instructions

Reported by: dhenry Owned by: dhenry
Priority: high Component: SvnsyncPlugin
Severity: normal Keywords: svn sync svnsync unsupported
Cc: Trac Release: 0.11

Description

Quoth the server:

Unsupported version control system "svnsync": Can't find an appropriate component, maybe the corresponding plugin was not enabled?

It is possible I have mis-configured something. The trac.ini has

svnsyncplugin.* = enabled

I have svnsync on the server and available on the system path

Both servers are windows 2k3, SVN 1.5, What other information is helpful?

Thanks!

Attachments (1)

trac.log (46.4 KB) - added by anonymous 6 years ago.
Error log

Download all attachments as: .zip

Change History (10)

comment:1 Changed 6 years ago by thesorcerer

Hi
have you set the following:

[svn]
repository_url = path/to/remote/repo

[trac]
repository_dir = C:\syncedrepo
repository_type = svnsync

comment:2 Changed 6 years ago by anonymous

He obviously has repository_type set to svnsync or it wouldn't generate the error.
The error is coming from trac stating that it's unable to recognize the trac setting "repository_type" being set to svnsync. It's expecting svn.

I'm experiencing this same problem.

comment:3 Changed 6 years ago by k0s

  • Owner changed from k0s to dhenry

This will occur when get_repository is called and an exception is raised by this plugin which is then swallowed by trac. There isn't enough information here to reproduce. If you could send the trac log file then I may be able to figure out what's going on. This is possibly a windows issue, as SvnsyncPlugin has not been tested there.

Thanks!

comment:4 Changed 6 years ago by anonymous

The same on Fedora 10.

Trac log:

2009-01-13 23:31:57,316 Trac[loader] DEBUG: Loading svnsyncplugin from /usr/lib/python2.5/site-packages/svnsyncplugin-0.1.2-py2.5.egg
2009-01-13 23:31:57,316 Trac[loader] DEBUG: Loading trac.ticket.web_ui from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,316 Trac[loader] DEBUG: Loading trac.mimeview.php from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,316 Trac[loader] DEBUG: Loading trac.ticket.query from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,317 Trac[loader] DEBUG: Loading trac.attachment from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,317 Trac[loader] DEBUG: Loading trac.versioncontrol.svn_fs from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,317 Trac[loader] DEBUG: Loading trac.mimeview.patch from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,317 Trac[loader] DEBUG: Loading trac.mimeview.txtl from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,325 Trac[loader] DEBUG: Skipping "trac.mimeview.txtl = trac.mimeview.txtl [textile]": ("textile>=2.0" not found)
2009-01-13 23:31:57,325 Trac[loader] DEBUG: Loading trac.admin.web_ui from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,326 Trac[loader] DEBUG: Loading trac.ticket.admin from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,326 Trac[loader] DEBUG: Loading trac.mimeview.rst from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,334 Trac[loader] DEBUG: Skipping "trac.mimeview.rst = trac.mimeview.rst [rest]": ("docutils>=0.3" not found)
2009-01-13 23:31:57,334 Trac[loader] DEBUG: Loading trac.db.postgres from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,334 Trac[loader] DEBUG: Loading trac.versioncontrol.web_ui from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,335 Trac[loader] DEBUG: Loading trac.timeline from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,335 Trac[loader] DEBUG: Loading trac.mimeview.pygments from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,343 Trac[loader] DEBUG: Skipping "trac.mimeview.pygments = trac.mimeview.pygments [pygments]": ("Pygments>=0.6" not found)
2009-01-13 23:31:57,343 Trac[loader] DEBUG: Loading trac.about from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,343 Trac[loader] DEBUG: Loading trac.ticket.roadmap from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,344 Trac[loader] DEBUG: Loading trac.mimeview.silvercity from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,351 Trac[loader] DEBUG: Skipping "trac.mimeview.silvercity = trac.mimeview.silvercity [silvercity]": ("SilverCity>=0.9.4" not found)
2009-01-13 23:31:57,352 Trac[loader] DEBUG: Loading trac.wiki.macros from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,352 Trac[loader] DEBUG: Loading trac.db.sqlite from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,352 Trac[loader] DEBUG: Loading trac.wiki.web_ui from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,352 Trac[loader] DEBUG: Loading trac.mimeview.enscript from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,353 Trac[loader] DEBUG: Loading trac.web.auth from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,353 Trac[loader] DEBUG: Loading trac.admin.console from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,353 Trac[loader] DEBUG: Loading trac.db.mysql from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,353 Trac[loader] DEBUG: Loading trac.search from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,354 Trac[loader] DEBUG: Loading trac.prefs from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,354 Trac[loader] DEBUG: Loading trac.ticket.report from /usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg
2009-01-13 23:31:57,358 Trac[default_workflow] DEBUG: Workflow actions at initialization: {'resolve': {'operations': [u'set_resolution'], 'name': 'resolve', 'default': 0, 'newstate': u'closed', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], 'permissions': [u'TICKET_MODIFY']}, 'accept': {'operations': [u'set_owner_to_self'], 'name': 'accept', 'default': 0, 'newstate': u'accepted', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], 'permissions': [u'TICKET_MODIFY']}, 'leave': {'operations': [u'leave_status'], 'name': 'leave', 'default': 1, 'newstate': u'*', 'oldstates': [u'*'], 'permissions': []}, 'reopen': {'operations': [u'del_resolution'], 'name': 'reopen', 'default': 0, 'newstate': u'reopened', 'oldstates': [u'closed'], 'permissions': [u'TICKET_CREATE']}, 'reassign': {'operations': [u'set_owner'], 'name': 'reassign', 'default': 0, 'newstate': u'assigned', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], 'permissions': [u'TICKET_MODIFY']}, '_reset': {'operations': reset_workflow?, 'name': 'reset', 'default': 0, 'newstate': 'new', 'oldstates': [], 'permissions': []}}

2009-01-13 23:31:57,359 Trac[env] WARNING: base_url option not set in configuration, generated links may be incorrect
2009-01-13 23:31:57,359 Trac[main] DEBUG: Dispatching <Request "GET u'/browser'">
2009-01-13 23:31:57,361 Trac[svn_fs] DEBUG: Subversion bindings imported
2009-01-13 23:31:57,362 Trac[svn_fs] DEBUG: Subversion bindings imported
2009-01-13 23:31:57,382 Trac[chrome] DEBUG: Prepare chrome data for request
2009-01-13 23:31:57,384 Trac[api] DEBUG: action controllers for ticket workflow: ConfigurableTicketWorkflow?
2009-01-13 23:31:57,386 Trac[perm] DEBUG: No policy allowed anonymous performing TICKET_CREATE on None
2009-01-13 23:31:57,387 Trac[perm] DEBUG: No policy allowed anonymous performing TRAC_ADMIN on None
2009-01-13 23:31:57,387 Trac[perm] DEBUG: No policy allowed anonymous performing PERMISSION_GRANT on None
2009-01-13 23:31:57,388 Trac[perm] DEBUG: No policy allowed anonymous performing PERMISSION_REVOKE on None
2009-01-13 23:31:57,388 Trac[perm] DEBUG: No policy allowed anonymous performing TICKET_ADMIN on None
2009-01-13 23:31:57,408 Trac[main] WARNING: 500 Trac Error (Unsupported version control system "svnsync": Can't find an appropriate component, maybe the corresponding plugin was not enabled? )

Changed 6 years ago by anonymous

Error log

comment:5 Changed 6 years ago by anonymous

Sorry for previous post, log file attached.

comment:6 Changed 6 years ago by serj@…

Hi,

i found that if i run tracd from root or from sudo -u wwwrun plugin works,

but if i run it from init scripts i get this error message

on gentoo and openSUSE 10.3

Regards,

Serg

comment:7 Changed 6 years ago by anonymous

  • Priority changed from normal to high

comment:8 Changed 5 years ago by stm@…

This issue stems from trac being unable to do an

import svnsync
or
from svnsync import ...

To verify that this is the problem, open a python prompt on the same machine as the one with the trac installation;

% python
>>> import svnsync

if you get this result:

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named svnsync

then svnsync is not on the python path. If you then -still in the python prompt- try to:

>>> import sys
>>> sys.path.append( '/full/path/to/the/svnsync/folder' )
>>> import svnsync

and see:

>>>

Then you have successfully identified the problem.

comment:9 Changed 5 years ago by anonymous

I was able to solve this problem (not the more general on getting to show the remote repository) on my installation, using:

<Location /trac>
 [...]
   PythonPath "sys.path + ['/data/trac/plugins']"
 [..]
</Location>

in:
/etc/apache2/sites-available/default

Where /data/trac/plugins/ contains:

[...]
-rw-r--r--  1 root www-data 7283 2009-06-09 08:26 svnsyncplugin-0.1.2-py2.4.egg
[...]

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.