#2548 closed defect (fixed)
trac-admin initenv command error.
| Reported by: | Owned by: | Christian Boos | |
|---|---|---|---|
| Priority: | high | Milestone: | 0.9.3 | 
| Component: | version control | Version: | devel | 
| Severity: | minor | Keywords: | trac-admin initenv | 
| Cc: | fo@… | Branch: | |
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
I tested Trac -r 2707.
Failed to initialize environment. ('No such revision 1', 160006)
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/scripts/admin.py", line 602, in do_initenv
    repos.sync()
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/cache.py", line 76, in sync
    changeset = self.repos.get_changeset(current_rev)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py", line 280, in get_changeset
    self.fs_ptr, self.pool)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py", line 487, in __init__
    message = self._get_prop(core.SVN_PROP_REVISION_LOG)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py", line 552, in _get_prop
    return fs.revision_prop(self.fs_ptr, self.rev, name, self.pool())
SubversionException: ('No such revision 1', 160006)
      Attachments (0)
Change History (8)
comment:1 by , 20 years ago
| Component: | trac-admin → version control | 
|---|---|
| Owner: | changed from to | 
| Priority: | normal → high | 
| Severity: | normal → minor | 
| Status: | new → assigned | 
follow-up: 4 comment:3 by , 18 years ago
| Cc: | added | 
|---|---|
| Resolution: | fixed | 
| Status: | closed → reopened | 
| Version: | devel → 0.10.3 | 
hi,
got the same problem. but kinda weird, this ticket I see is fixed 2 years ago. straight me up plz, if Im the one who has problem with machine.
running on debian box, package: 0.10.3-1etch2
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)
follow-up: 6 comment:4 by , 18 years ago
comment:5 by , 18 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | reopened → closed | 
| Version: | 0.10.3 → devel | 
(reverting invalid changes)
follow-up: 7 comment:6 by , 18 years ago
Replying to eblot:
Replying to Fo:
hi,
got the same problem. but kinda weird, this ticket I see is fixed 2 years ago. straight me up plz, if Im the one who has problem with machine.
Please use the ticket preview feature to avoid syntax issue with, for instance, unquoted tracebacks.
OK, but is there a solution for the problem ? I may miss-readed but I see that the ticket was closed. Dunno what to do, pls redirect me atleast to some man/doc. regards, Fo
comment:7 by , 18 years ago
Replying to fo@gazeta.pl:
OK, but is there a solution for the problem ?
Yes: read the line: upgrade your Trac installation to 0.10.4 ;-)
comment:8 by , 16 years ago
Have just run into that same problem. Found out the repository was empty. Simply doing a checkout and commiting a single file fixed the problem. Hope that helps out you.
Albert



  
Ah, yes, it must be the case of an empty SVN repository. I'll have a look at that.