Edgewall Software
Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#11430 closed defect (cantfix)

GitError: GIT control files not found, maybe wrong directory?

Reported by: admin Owned by:
Priority: normal Milestone:
Component: general Version: 0.11.7
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /admin/general/plugin, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'cat_id': u'general', 'panel_id': u'plugin', 'path_info': None}

System Information

Trac 0.11.7
Python 2.6.5 (r265:79063, Apr 16 2010, 13:28:26)
[GCC 4.4.3]
setuptools 0.6
MySQL server: "5.1.41-3ubuntu12.8", client: "5.1.41", thread-safe: 1
MySQLdb 1.2.2
Genshi 0.5.1
mod_python 3.3.1
Pygments 1.2.2
GIT 1.7.0.4

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 450, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 176, in dispatch
    chosen_handler)
  File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 296, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "/usr/lib/python2.6/dist-packages/trac/versioncontrol/api.py", line 86, in pre_process_request
    self.get_repository(req.authname).sync()
  File "/usr/lib/python2.6/dist-packages/trac/versioncontrol/api.py", line 157, in get_repository
    repos = self._connector.get_repository(rtype, rdir, authname)
  File "/usr/lib/python2.6/dist-packages/tracext/git/git_fs.py", line 159, in get_repository
    shortrev_len=self._shortrev_len)
  File "/usr/lib/python2.6/dist-packages/tracext/git/git_fs.py", line 176, in __init__
    git_bin=git_bin).getInstance()
  File "/usr/lib/python2.6/dist-packages/tracext/git/PyGIT.py", line 114, in __init__
    i = Storage(repo, log, git_bin)
  File "/usr/lib/python2.6/dist-packages/tracext/git/PyGIT.py", line 189, in __init__
    raise GitError("GIT control files not found, maybe wrong directory?")
GitError: GIT control files not found, maybe wrong directory?

Attachments (0)

Change History (7)

comment:1 by Jun Omae, 11 years ago

Resolution: cantfix
Status: newclosed

A PluginIssue and an InstallationIssue for th:GitPlugin. Make sure your web server can read the git repository.

comment:2 by Remy Blank, 11 years ago

Err… tracext is part of Trac, so this is the bundled GIT component, not a plugin. It's still probably an InstallationIssue, though.

in reply to:  1 comment:3 by Ryan J Ollos, 11 years ago

Replying to jomae:

Make sure your web server can read the git repository.

Also, make sure your path points to the .git directory and not its parent. See #11297 for details.

in reply to:  2 ; comment:4 by Jun Omae, 11 years ago

Replying to rblank:

Err… tracext is part of Trac, so this is the bundled GIT component, not a plugin.

Trac bundles git component since 1.0 in tracopt.versioncontrol.git, not tracext. Also, it seems PyGIT.py@54912e7ac0 in gitplugin is used and the file is 5 years old.

in reply to:  4 comment:5 by Remy Blank, 11 years ago

Replying to jomae:

Trac bundles git component since 1.0 in tracopt.versioncontrol.git, not tracext.

Oh! You're right of course, tracopt not tracext. Never mind :)

in reply to:  4 ; comment:6 by Olemis Lang <olemis+trac@…>, 11 years ago

Replying to jomae:

Replying to rblank:

Err… tracext is part of Trac, so this is the bundled GIT component, not a plugin.

Trac bundles git component since 1.0 in tracopt.versioncontrol.git, not tracext. Also, it seems PyGIT.py@54912e7ac0 in gitplugin is used and the file is 5 years old.

<ot> Have you ever considered a major refactoring in Git plugin to use dulwich instead of PyGIT ? </ot>

in reply to:  6 comment:7 by Jun Omae, 11 years ago

Replying to Olemis Lang <olemis+trac@…>:

Have you ever considered a major refactoring in Git plugin to use dulwich instead of PyGIT ?

We cannot use dulwich because the license is GPLv2+. But I've worked to use pygit2 in log:jomae.git:pygit2. See also TracDev/Performance/Git.

Modify Ticket

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