Category: Team Work

org.tigris.subversion.javahl.ClientException: svn: No repository found in …

This happened when I was trying to use repository from Eclipse using Subclipse plugin. The first time I was setting up repository in Eclipse I specified password based authentication, password was memorized and never asked again (because I clicked on checkbox to memorize it).

Because Subclipse and JavaHL got compatibility issues, andΒ the error was mentioning JavaHL I was thinking problem is still with Subclipse and JavaHL versions incompatibility. Tried to re-install different Subclipse versions. Didn’t help.

So, here goes solution:

1. Clean passwords saved in Eclipse. Remove .keyring file from (eclipse_installed_dir/configuration/org.eclipse.core.runtime/)

2. Change authentication type to File based and specify path to your ~/.ssh/id_rsa (note, not id_rsa.pub)

3. Do any SVN action (update / commit / checkout … )

How to delete a project from TRAC

1.
Delete the repository from
C:\Repositories\XXX

2.
Delete the project from VisualSVN

3.
Stop VisualSVN

4.
Delete the project folder from
C:\Trac\XXX
(If you don’t stop the VisualSVN server you will not be able to delete the project )

5. Start the VisualSVN server

How to create a new repository and trac

1. Create repository “MyProject” in VisualSVN Server Manager.
2. Create folder C:\Trac\XXX
3. “C:\Program Files\VisualSVN Server\trac\trac-admin.bat” C:\Trac\XXX initenv
– any project name (ex: My XXX Project)
– Enter
– Enter
– C:\Repositories\XXX

In this case Trac is saved in C:\Trac\XXX
repository is saved within C:\Repositories\XXX

THAT’S IT!

Visual SVN + Trac

http://visualsvn.com/server/trac/

Installing Trac with VisualSVN Server

* Download VisualSVN Server 1.5.2.

* Install it using default settings.

* Create repository “MyProject” in VisualSVN Server Manager.

* Download VisualSVN-Server-Trac-1.5.2-14459.zip (~10MB).

* Unzip it to C:\Program Files\VisualSVN Server\

* Create folder C:\Trac

* Execute following command:

“C:\Program Files\VisualSVN Server\trac\trac-admin.bat” C:\Trac\MyProject initenv

* Use default settings. Provide C:\Repositories\MyProject as repository path.

* Add following line at the top of file C:\Program Files\VisualSVN Server\httpd-wrapper.bat (after the ECHO command) :

set PYTHONHOME=%~dp0\Trac\python

* Add the following text to file C:\Program Files\VisualSVN Server\conf\httpd-custom.conf if you use Subversion authentication:

LoadModule python_module “trac/python/mod_python_so.pyd”

LoadModule authz_user_module bin/mod_authz_user.so

<Location /trac>

SetHandler mod_python

PythonInterpreter main_interpreter

PythonHandler trac.web.modpython_frontend

PythonOption TracEnvParentDir C:\Trac

PythonOption TracUriRoot /trac

AuthName “Trac”

AuthType Basic

AuthBasicProvider file

AuthUserFile “C:/Repositories/htpasswd”

Require valid-user

</Location>

or this text if you use Windows authentication:

LoadModule python_module “trac/python/mod_python_so.pyd”

LoadModule authz_user_module bin/mod_authz_user.so

<Location /trac>

SetHandler mod_python

PythonInterpreter main_interpreter

PythonHandler trac.web.modpython_frontend

PythonOption TracEnvParentDir C:\Trac

PythonOption TracUriRoot /trac

 

AuthName “Trac”

AuthType Basic

AuthBasicProvider visualsvn

Require valid-user

</Location>

* Restart VisualSVN Server.

* Open http://localhost/trac/ in browser and enter user name and password.