Edgewall Software
Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#6425 closed defect (invalid)

initenv fails

Reported by: reuthlin@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: version control Version: 0.10.3
Severity: major Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Hi, I get this error-msg when trying to create a trac-env on a empty svn-repository (that i create just 1 min before).

sudo trac-admin /srv/trac/test initenv

Creating a new Trac environment at /srv/trac/test

Trac will first ask a few questions about your environment in order to initalize 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]> TEST

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 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> /srv/svn/test

Please enter location of Trac page templates. Default is the location of the site-wide templates installed with Trac.

Templates directory usr/share/trac/templates>

Creating and Initializing Project

Installing default wiki pages /usr/share/trac/wiki-default/WikiDeletePage ⇒ WikiDeletePage /usr/share/trac/wiki-default/WikiProcessors ⇒ WikiProcessors /usr/share/trac/wiki-default/WikiMacros ⇒ WikiMacros /usr/share/trac/wiki-default/TracTicketsCustomFields ⇒ TracTicketsCustomFields /usr/share/trac/wiki-default/WikiRestructuredText ⇒ WikiRestructuredText /usr/share/trac/wiki-default/TracTickets ⇒ TracTickets /usr/share/trac/wiki-default/InterWiki ⇒ InterWiki /usr/share/trac/wiki-default/TracGuide ⇒ TracGuide /usr/share/trac/wiki-default/TracQuery ⇒ TracQuery /usr/share/trac/wiki-default/RecentChanges ⇒ RecentChanges /usr/share/trac/wiki-default/TracBackup ⇒ TracBackup /usr/share/trac/wiki-default/TracPlugins ⇒ TracPlugins /usr/share/trac/wiki-default/WikiStart ⇒ WikiStart /usr/share/trac/wiki-default/TracPermissions ⇒ TracPermissions /usr/share/trac/wiki-default/TracModPython ⇒ TracModPython /usr/share/trac/wiki-default/WikiPageNames ⇒ WikiPageNames /usr/share/trac/wiki-default/TracSearch ⇒ TracSearch /usr/share/trac/wiki-default/TracRoadmap ⇒ TracRoadmap /usr/share/trac/wiki-default/TracIni ⇒ TracIni /usr/share/trac/wiki-default/TracImport ⇒ TracImport /usr/share/trac/wiki-default/WikiNewPage ⇒ WikiNewPage /usr/share/trac/wiki-default/TracChangeset ⇒ TracChangeset /usr/share/trac/wiki-default/WikiRestructuredTextLinks ⇒ WikiRestructuredTextLinks /usr/share/trac/wiki-default/TracBrowser ⇒ TracBrowser /usr/share/trac/wiki-default/TracLogging ⇒ TracLogging /usr/share/trac/wiki-default/TracUpgrade ⇒ TracUpgrade /usr/share/trac/wiki-default/CamelCase ⇒ CamelCase /usr/share/trac/wiki-default/TracRevisionLog ⇒ TracRevisionLog /usr/share/trac/wiki-default/InterTrac ⇒ InterTrac /usr/share/trac/wiki-default/TracStandalone ⇒ TracStandalone /usr/share/trac/wiki-default/TracCgi ⇒ TracCgi /usr/share/trac/wiki-default/TracFastCgi ⇒ TracFastCgi /usr/share/trac/wiki-default/TracAccessibility ⇒ TracAccessibility /usr/share/trac/wiki-default/WikiHtml ⇒ WikiHtml /usr/share/trac/wiki-default/TracReports ⇒ TracReports /usr/share/trac/wiki-default/InterMapTxt ⇒ InterMapTxt /usr/share/trac/wiki-default/TracInterfaceCustomization ⇒ TracInterfaceCustomization /usr/share/trac/wiki-default/TracWiki ⇒ TracWiki /usr/share/trac/wiki-default/TracInstall ⇒ TracInstall /usr/share/trac/wiki-default/WikiFormatting ⇒ WikiFormatting /usr/share/trac/wiki-default/TracRss ⇒ TracRss /usr/share/trac/wiki-default/TracNotification ⇒ TracNotification /usr/share/trac/wiki-default/TitleIndex ⇒ TitleIndex /usr/share/trac/wiki-default/TracUnicode ⇒ TracUnicode /usr/share/trac/wiki-default/TracAdmin ⇒ TracAdmin /usr/share/trac/wiki-default/SandBox ⇒ SandBox /usr/share/trac/wiki-default/TracSyntaxColoring ⇒ TracSyntaxColoring /usr/share/trac/wiki-default/TracEnvironment ⇒ TracEnvironment /usr/share/trac/wiki-default/TracTimeline ⇒ TracTimeline /usr/share/trac/wiki-default/TracSupport ⇒ TracSupport /usr/share/trac/wiki-default/TracLinks ⇒ TracLinks

Failed to initialize environment. ('No such revision 1', 160006) Traceback (most recent call last):

File "/var/lib/python-support/python2.4/trac/scripts/admin.py", line 628, in do_initenv

repos = self.env.get_repository()

File "/var/lib/python-support/python2.4/trac/env.py", line 195, in get_repository

return RepositoryManager(self).get_repository(authname)

File "/var/lib/python-support/python2.4/trac/versioncontrol/api.py", line 101, in get_repository

repos = self._connector.get_repository(rtype, rdir, authname)

File "/var/lib/python-support/python2.4/trac/versioncontrol/svn_fs.py", line 260, in get_repository

crepos = CachedRepository(self.env.get_db_cnx(), repos, None, self.log)

File "/var/lib/python-support/python2.4/trac/versioncontrol/cache.py", line 39, in init

self.sync()

File "/var/lib/python-support/python2.4/trac/versioncontrol/cache.py", line 143, in sync

cset = self.repos.get_changeset(next_youngest)

File "/var/lib/python-support/python2.4/trac/versioncontrol/svn_fs.py", line 346, in get_changeset

self.fs_ptr, self.pool)

File "/var/lib/python-support/python2.4/trac/versioncontrol/svn_fs.py", line 638, in init

message = self._get_prop(core.SVN_PROP_REVISION_LOG)

File "/var/lib/python-support/python2.4/trac/versioncontrol/svn_fs.py", line 729, in _get_prop

return fs.revision_prop(self.fs_ptr, self.rev, name, self.pool())

File "/var/lib/python-support/python2.4/libsvn/fs.py", line 570, in svn_fs_revision_prop

return apply(_fs.svn_fs_revision_prop, args)

SubversionException: ('No such revision 1', 160006)

Any advice on this error?

Attachments (0)

Change History (3)

comment:1 by Emmanuel Blot, 13 years ago

Component: generalversion control
Resolution: invalid
Status: newclosed

Which version of Trac did you use? 0.10.3 ?

If your repository is empty, create at least one revision in your repository before initializing your Trac environment.

Search also for '160006' in Trac DB, there are many duplicates.

comment:2 by reuthlin@…, 13 years ago

Yes I use 0.10.3

creating at least one revision did help me with this problem, I thought it might be some other problem…

comment:3 by Emmanuel Blot, 13 years ago

Version: 0.10.3

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.