0

I'm facing some problems after installing Trac on my Windows 7 Ultimate 64bits using BitNami. The Issues are:

  1. Subversion Control During the installation process, when the BitNami setup asks for the project repository directory, it only accept if you write a path that doesn't exist, otherwise you can't continue. So i got forced to point the path to "C:\Repositories\TRAC" (a new folder) instead of "C:\Repositories\DBG" (where the repository of the project that i was creating really are). So, after the installation, I've changed the trac.ini file at the key

    [trac]
    repository_dir = C:\Repositories\TRAC
    repository_type = svn
    

to

    [trac]
    repository_dir = C:\Repositories\DBG
    repository_type = svn

And now, when I login to the DBG project in Trac, it warns:

Warning: Can't synchronize with the repository (The 'repository_dir' has changed, a 'trac-admin resync' operation is needed.). Look in the Trac log for more information.

When I go to cmd the following happens:

C:\Users\Fernando>cd\

C:\>cd C:\Program Files\BitNami Trac Stack\trac\Scripts

C:\Program Files\BitNami Trac Stack\trac\Scripts>trac-admin resync
Welcome to trac-admin 0.11.6
Interactive Trac administration console.
Copyright (c) 2003-2009 Edgewall Software

Type:  '?' or 'help' for help on commands.

Trac [C:\Program Files\BitNami Trac Stack\trac\Scripts\resync]> resync
Failed to open environment. [Errno 2] No such file or directory: 'C:\\Program Fi
les\\BitNami Trac Stack\\trac\\Scripts\\resync\\VERSION'
Traceback (most recent call last):
  File "c:\program files\bitnami trac stack\trac\lib\site-packages\Trac-0.11.6-p
y2.5.egg\trac\admin\console.py", line 177, in env_open
    self.__env = Environment(self.envname)
  File "c:\program files\bitnami trac stack\trac\lib\site-packages\Trac-0.11.6-p
y2.5.egg\trac\env.py", line 209, in __init__
    self.verify()
  File "c:\program files\bitnami trac stack\trac\lib\site-packages\Trac-0.11.6-p
y2.5.egg\trac\env.py", line 277, in verify
    fd = open(os.path.join(self.path, 'VERSION'), 'r')
IOError: [Errno 2] No such file or directory: 'C:\\Program Files\\BitNami Trac S
tack\\trac\\Scripts\\resync\\VERSION'

C:\Program Files\BitNami Trac Stack\trac\Scripts>

What it should be?

2-Configuring Logo:
I can't find where to place my project logo to be shown in left-top corner! at the header_logo key:

    [header_logo]
    alt = DBG
    height = 50
    link = http://localhost:801/trac/DBG
    src = ITINT150.png
    width = 150

i've placed the ITINT150.png file in the same folder as trac.ini for testing (obviously i wasn't going to leave it there), but trac doesn't find it, looking at the html code of the link tag generated, it points to: src="/trac/DBG/chrome/common/ITINT150.png", but where is this folder located, so i can place the image there?

Thanks in advance!

4

2 に答える 2

5

再同期の場合、trac-admin の最初の引数は trac 環境ディレクトリです。だから走る

trac-admin <path-to-trac-environment> resync

Trac 0.12 以降、上記のコマンドは次のように変更されました。

trac-admin <path-to-trac-environment> repository resync <repository-name or '*'>

ロゴは、src を に設定し、ディレクトリsite/ITINT150.pngに配置します。ITINT150.png<path-to-trac-environment>/htdocs

于 2010-03-12T20:48:27.047 に答える
0

@retracile の解決策を試しましたが、trac-admin から「コマンドが見つかりません」というメッセージが表示されました。これは最終的に私のために働いたものです:

trac-admin </path/to/trac/env> repository resync "*"

その最後の引数は、再同期するリポジトリを指定し、すべてのリポジトリを再同期したくない場合は、特定のリポジトリの名前で切り替えることができます (おそらく引用符はそのままで、私は試していません)。詳細はこちらをご覧ください: http://trac.edgewall.org/wiki/TracAdmin

于 2011-02-02T21:56:41.513 に答える