Edgewall Software
Modify

Opened 18 years ago

Closed 16 years ago

Last modified 14 years ago

#2548 closed defect (fixed)

trac-admin initenv command error.

Reported by: tdkim@… 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 Christian Boos, 18 years ago

Component: trac-adminversion control
Owner: changed from daniel to Christian Boos
Priority: normalhigh
Severity: normalminor
Status: newassigned

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

comment:2 by Christian Boos, 18 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r2708 and r2709.

comment:3 by Fo, 16 years ago

Cc: fo@… added
Resolution: fixed
Status: closedreopened
Version: devel0.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)

in reply to:  3 ; comment:4 by Emmanuel Blot, 16 years ago

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.

See #4937, upgrade to 0.10.4.

Please use the ticket preview feature to avoid syntax issue with, for instance, unquoted tracebacks.

comment:5 by Emmanuel Blot, 16 years ago

Resolution: fixed
Status: reopenedclosed
Version: 0.10.3devel

(reverting invalid changes)

in reply to:  4 ; comment:6 by fo@…, 16 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.

See #4937, upgrade to 0.10.4.

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

in reply to:  6 comment:7 by Emmanuel Blot, 16 years ago

Replying to fo@gazeta.pl:

See #4937, upgrade to 0.10.4.

OK, but is there a solution for the problem ?

Yes: read the line: upgrade your Trac installation to 0.10.4 ;-)

comment:8 by skarbat@…, 14 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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos 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.