hi,I'm a beginner of trac and I just installed it.but when I use trac-
admin to initialize,I got a problem.
1, If I don't set the repository path at the interactive mode,it seems
all right and I can see access the trac through apache.But when I set
the repository_dir in trac.ini , I can only access trac page under
tracd mode,it's unaccessable in apache.
2, if I set the repository path at the interactive mode, the initenv
operation fails.

these are the operation and messages shown:


D:\WangBin\Python25\Scripts>trac-admin d:\wangbin\project1\trac1
initenv
Creating a new Trac environment at d:\wangbin\project1\trac1

Trac will first ask a few questions about your environment
in order to initialize and prepare the project database.

 Please enter the name of your project.
 This name will be used in page titles and descriptions.

Project Name [My Project]> mytrac

 Please specify the connection string for the database to use.
 By default, a local SQLite database is created in the environment
 directory. It is also possible to use an already existing
 PostgreSQL database (check the Trac documentation for the exact
 connection string syntax).

Database connection string [sqlite:db/trac.db]>

 Please specify the type of version control system,
 By default, it will be svn.

 If you don't want to use Trac with version control integration,
 choose the default here and don't specify a repository directory.
 in the next question.

Repository type [svn]>

 Please specify the absolute path to the version control
 repository, or leave it blank to use Trac without a repository.
 You can also set the repository location later.

Path to repository [/path/to/repos]> d:\wangbin\project1\trac1

Creating and Initializing Project
 Installing default wiki pages
 CamelCase imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\default
-pages\CamelCase
 InterMapTxt imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defau
lt-pages\InterMapTxt
 InterTrac imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\default
-pages\InterTrac
 InterWiki imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\default
-pages\InterWiki
 PageTemplates imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\def
ault-pages\PageTemplates
 RecentChanges imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\def
ault-pages\RecentChanges
 SandBox imported from D:\WangBin\Python25\lib\site-packages\trac\wiki
\default-p
ages\SandBox
 TitleIndex imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defaul
t-pages\TitleIndex
 TracAccessibility imported from D:\WangBin\Python25\lib\site-packages
\trac\wiki
\default-pages\TracAccessibility
 TracAdmin imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\default
-pages\TracAdmin
 TracBackup imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defaul
t-pages\TracBackup
 TracBrowser imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defau
lt-pages\TracBrowser
 TracCgi imported from D:\WangBin\Python25\lib\site-packages\trac\wiki
\default-p
ages\TracCgi
 TracChangeset imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\def
ault-pages\TracChangeset
 TracEnvironment imported from D:\WangBin\Python25\lib\site-packages
\trac\wiki\d
efault-pages\TracEnvironment
 TracFastCgi imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defau
lt-pages\TracFastCgi
 TracFineGrainedPermissions imported from D:\WangBin\Python25\lib\site-
packages\
trac\wiki\default-pages\TracFineGrainedPermissions
 TracGuide imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\default
-pages\TracGuide
 TracImport imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defaul
t-pages\TracImport
 TracIni imported from D:\WangBin\Python25\lib\site-packages\trac\wiki
\default-p
ages\TracIni
 TracInstall imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defau
lt-pages\TracInstall
 TracInterfaceCustomization imported from D:\WangBin\Python25\lib\site-
packages\
trac\wiki\default-pages\TracInterfaceCustomization
 TracLinks imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\default
-pages\TracLinks
 TracLogging imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defau
lt-pages\TracLogging
 TracModPython imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\def
ault-pages\TracModPython
 TracNavigation imported from D:\WangBin\Python25\lib\site-packages
\trac\wiki\de
fault-pages\TracNavigation
 TracNotification imported from D:\WangBin\Python25\lib\site-packages
\trac\wiki\
default-pages\TracNotification
 TracPermissions imported from D:\WangBin\Python25\lib\site-packages
\trac\wiki\d
efault-pages\TracPermissions
 TracPlugins imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defau
lt-pages\TracPlugins
 TracQuery imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\default
-pages\TracQuery
 TracReports imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defau
lt-pages\TracReports
 TracRevisionLog imported from D:\WangBin\Python25\lib\site-packages
\trac\wiki\d
efault-pages\TracRevisionLog
 TracRoadmap imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defau
lt-pages\TracRoadmap
 TracRss imported from D:\WangBin\Python25\lib\site-packages\trac\wiki
\default-p
ages\TracRss
 TracSearch imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defaul
t-pages\TracSearch
 TracStandalone imported from D:\WangBin\Python25\lib\site-packages
\trac\wiki\de
fault-pages\TracStandalone
 TracSupport imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defau
lt-pages\TracSupport
 TracSyntaxColoring imported from D:\WangBin\Python25\lib\site-packages
\trac\wik
i\default-pages\TracSyntaxColoring
 TracTickets imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defau
lt-pages\TracTickets
 TracTicketsCustomFields imported from D:\WangBin\Python25\lib\site-
packages\tra
c\wiki\default-pages\TracTicketsCustomFields
 TracTimeline imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defa
ult-pages\TracTimeline
 TracUnicode imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defau
lt-pages\TracUnicode
 TracUpgrade imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defau
lt-pages\TracUpgrade
 TracWiki imported from D:\WangBin\Python25\lib\site-packages\trac\wiki
\default-
pages\TracWiki
 TracWorkflow imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defa
ult-pages\TracWorkflow
 WikiDeletePage imported from D:\WangBin\Python25\lib\site-packages
\trac\wiki\de
fault-pages\WikiDeletePage
 WikiFormatting imported from D:\WangBin\Python25\lib\site-packages
\trac\wiki\de
fault-pages\WikiFormatting
 WikiHtml imported from D:\WangBin\Python25\lib\site-packages\trac\wiki
\default-
pages\WikiHtml
 WikiMacros imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defaul
t-pages\WikiMacros
 WikiNewPage imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\defau
lt-pages\WikiNewPage
 WikiPageNames imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\def
ault-pages\WikiPageNames
 WikiProcessors imported from D:\WangBin\Python25\lib\site-packages
\trac\wiki\de
fault-pages\WikiProcessors
 WikiRestructuredText imported from D:\WangBin\Python25\lib\site-
packages\trac\w
iki\default-pages\WikiRestructuredText
 WikiRestructuredTextLinks imported from D:\WangBin\Python25\lib\site-
packages\t
rac\wiki\default-pages\WikiRestructuredTextLinks
 WikiStart imported from D:\WangBin\Python25\lib\site-packages\trac
\wiki\default
-pages\WikiStart
 Indexing repository
Initenv for 'd:\wangbin\project1\trac1' failed.
 ("File not found: revision 0, path 'trac1'", 160013)
Traceback (most recent call last):
  File "D:\Wangbin\Python25\Lib\site-packages\trac\admin\console.py",
line 589,
in do_initenv
    repos.sync(self._resync_feedback)
  File "D:\Wangbin\Python25\Lib\site-packages\trac\versioncontrol
\cache.py", lin
e 115, in sync
    repos_youngest = self.repos.youngest_rev
  File "D:\Wangbin\Python25\Lib\site-packages\trac\versioncontrol
\api.py", line
279, in <lambda>
    youngest_rev = property(lambda x: x.get_youngest_rev())
  File "D:\Wangbin\Python25\Lib\site-packages\trac\versioncontrol
\svn_fs.py", li
ne 555, in get_youngest_rev
    0, self.youngest, self.pool):
  File "D:\Wangbin\Python25\Lib\site-packages\trac\versioncontrol
\svn_fs.py", li
ne 511, in _history
    history_ptr = fs.node_history(root, svn_path, tmp1())
  File "D:\Wangbin\Python25\Lib\site-packages\libsvn\fs.py", line 360,
in svn_fs
_node_history
    return apply(_fs.svn_fs_node_history, args)
SubversionException: ("File not found: revision 0, path 'trac1'",
160013)

below is my environment:

Win Server2003
apache_2.2.10-win32-x86-openssl-0.9.8i.msi
mod_python-3.3.1.win32-py2.5-Apache2.2.exe
python-2.5.2.msi
Setup-Subversion-1.5.3.msi
svn-python-1.5.3.win32-py2.5.exe
Genshi-0.5.1.win32-py2.5.exe
setuptools-0.6c8-py2.5.egg
Trac-0.11.1.win32.exe

Thanks.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to