Difference: TracFlorianUhlig (1 vs. 3)

Revision 3
27 Sep 2010 - Main.FlorianUhlig
Line: 1 to 1
 
META TOPICPARENT name="HomepageFlorianUhlig"

Howto setup a trac instance at a differnt machine than the subversion repository.

Line: 8 to 8
  as described in http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt . My idea is to use the post commit hook on the main subversion repository to trigger the synchronization of the cloned repository. This should keep both repositories synchronized
Changed:
<
<
all the time. *This has to be tested. Starting svnsync manually on the machine with the cloned svn repository works as expected.*
>
>
all the time. Starting svnsync manually on the machine with the cloned svn repository works as expected. The post-commit hook is now already implemented and it looks ok for me.
  *The first sync of the repository takes some hours. Meanwhile we have approx. 10000 revisions in the repository.*

The installation of the cloned svn repository and trac are done both on lxir039.
Changed:
<
<

Trac was installed using the normal Debian package installation mechanism. I installed the following packages
>
>
Trac was installed using the normal Debian package installation mechanism. I installed the following packages
sudo apt-get -t sid install trac trac-git
sudo apt-get -t sid install trac-spamfilter trac-bzr trac-mercurial trac-accountmanager trac-email2trac trac-xmlrpc trac-wysiwyg trac-mastertickets trac-customfieldadmin trac-bitten trac-authopenid trac-wikirename trac-wikiprint trac-ja-resource
  sudo apt-get install sqlite sudo apt-get -t sid install sqlite3
Changed:
<
<
>
>
 

After the installation on has to copy the trac installation of fairroot from lxwww01 to the new directory on the new machine.
Changed:
<
<
scp -r uhlig@lxwww01:/srv/subversion/trac/fairroot/* .
>
>
scp -r uhlig@lxwww01:/srv/subversion/trac/fairroot/* .
 

Since the location of the subversion repository has changed this information has to be changed also in the configuration file trac.ini.
Changed:
<
<
repository_dir =  /var/subversion/fairroot
>
>
repository_dir =  /var/subversion/fairroot
 

has to be changed to
Changed:
<
<
repository_dir = /data.local1/subversion/fairroot
>
>
repository_dir = /data.local1/subversion/fairroot
 

Probably also the location of the pasword file has to be changed.
Line: 51 to 59
  trac-admin . resync
Deleted:
<
<
The trac configuration works as described in http://trac.edgewall.org/wiki/0.11/TracInstall

trac-admin /data_local1/trac/fairroot initenv
  For the test I don't want to install and administrate a full blown webserver. So the internal trac webserver is started
Changed:
<
<
 tracd --port 8000 /path/to/myproject
>
>
 
tracd --port 8000 /path/to/myproject
 
Added:
>
>
First tests looks good for me. The wiki now show substructures in the index page. The access to the subversion repository works as expected. The old tickets are there and also the links looked okay.
 

-- FlorianUhlig - 24 Sep 2010
Revision 2
25 Sep 2010 - Main.FlorianUhlig
Line: 1 to 1
 
META TOPICPARENT name="HomepageFlorianUhlig"
Changed:
<
<
--++ Howto setup a trac instance at a differnt machine than the subversion repository.

The installation of the cloned svn repository and trac are done both on lxir039.
>
>

Howto setup a trac instance at a differnt machine than the subversion repository.

 
Added:
>
>
This is not directly foreseen (at least for trac 0.11.x), so we have to work around this problem.
  The trick here is to create a local copy of the main repository which is syncronized as described in http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt .
Added:
>
>
My idea is to use the post commit hook on the main subversion repository to trigger the synchronization of the cloned repository. This should keep both repositories synchronized all the time. *This has to be tested. Starting svnsync manually on the machine with the cloned svn repository works as expected.* *The first sync of the repository takes some hours. Meanwhile we have approx. 10000 revisions in the repository.*

The installation of the cloned svn repository and trac are done both on lxir039.

Trac was installed using the normal Debian package installation mechanism. I installed the following packages sudo apt-get install sqlite sudo apt-get -t sid install sqlite3

After the installation on has to copy the trac installation of fairroot from lxwww01 to the new directory on the new machine.

scp -r uhlig@lxwww01:/srv/subversion/trac/fairroot/* .

Since the location of the subversion repository has changed this information has to be changed also in the configuration file trac.ini.

repository_dir =  /var/subversion/fairroot

has to be changed to

repository_dir = /data.local1/subversion/fairroot

Probably also the location of the pasword file has to be changed.

After this is done one has to upgrade first the sqlite database to the new sqlite version and the upgrade trac itself.
 
Changed:
<
<
With a post commit hook on the main subversion repository it should be possible to keep both repositories synchronized all the time.
>
>
mv trac.db trac2.db
sqlite trac2.db .dump | sqlite3 trac.db
trac-admin /data.local1/trac/fairroot upgrade
trac-admin . wiki upgrade
trac-admin . resync
 
Changed:
<
<
Trac was inastalled using the normal Debian package installation mechanism. The trac configuration works as described in http://trac.edgewall.org/wiki/0.11/TracInstall
>
>
The trac configuration works as described in http://trac.edgewall.org/wiki/0.11/TracInstall
 

trac-admin /data_local1/trac/fairroot initenv
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding CBM Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)