Opened 11 years ago
Closed 11 years ago
#11464 closed defect (cantfix)
AssertionError from tracopt/versioncontrol/git/PyGIT.py:554, in get_rev_cache
Reported by: | Owned by: | Jun Omae | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | plugin/git | Version: | 1.0.1 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
How to Reproduce
While doing a GET operation on /browser
, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'path': '/'}
User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/31.0.1650.63 Chrome/31.0.1650.63 Safari/537.36
System Information
Trac | 1.0.1
|
Genshi | 0.6 (without speedups)
|
GIT | 1.8.1.2
|
mod_wsgi | 3.4 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})
|
psycopg2 | 2.4.5
|
Python | 2.7.4 (default, Sep 26 2013, 03:23:21) [GCC 4.7.3]
|
setuptools | 2.0.1
|
jQuery | 1.7.2
|
Enabled Plugins
graphviz | 0.7.7dev-r13275
|
TracAccountManager | 0.4.3
|
TracCodeReview | 2.2dev
|
Python Traceback
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/trac/web/main.py", line 497, in _dispatch_request dispatcher.dispatch(req) File "/usr/local/lib/python2.7/dist-packages/trac/web/main.py", line 214, in dispatch resp = chosen_handler.process_request(req) File "/usr/local/lib/python2.7/dist-packages/trac/versioncontrol/web_ui/browser.py", line 392, in process_request context, all_repositories, order, desc) File "/usr/local/lib/python2.7/dist-packages/trac/versioncontrol/web_ui/browser.py", line 507, in _render_repository_index youngest = repos.get_changeset(repos.youngest_rev) File "/usr/local/lib/python2.7/dist-packages/trac/versioncontrol/api.py", line 875, in <lambda> youngest_rev = property(lambda self: self.get_youngest_rev()) File "/usr/local/lib/python2.7/dist-packages/tracopt/versioncontrol/git/git_fs.py", line 393, in get_youngest_rev return self.git.youngest_rev() File "/usr/local/lib/python2.7/dist-packages/tracopt/versioncontrol/git/PyGIT.py", line 591, in youngest_rev return self.rev_cache.youngest_rev File "/usr/local/lib/python2.7/dist-packages/tracopt/versioncontrol/git/PyGIT.py", line 554, in get_rev_cache or not any(self.__rev_cache) AssertionError
Attachments (0)
Change History (9)
comment:1 by , 11 years ago
Component: | general → plugin/git |
---|---|
Milestone: | → next-stable-1.0.x |
comment:2 by , 11 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
Summary: | AssertionError: → AssertionError from tracopt/versioncontrol/git/PyGIT.py:554, in get_rev_cache |
follow-up: 4 comment:3 by , 11 years ago
Thanks for help, the issue occurs after I installed this plug-in PeerReviewPlugin. The plugin need to upgrade database using trac-admin and make my browse code function broken. Now I want to remove the plugin temporarily, but I find there are no any uninstall method even I remove the tables and egg file on /usr/local/lib/python2.7/dist-packages/, the problem still happen … any idea? many thanks.
comment:4 by , 11 years ago
Replying to anonymous:
Now I want to remove the plugin temporarily, but I find there are no any uninstall method even I remove the tables and egg file on /usr/local/lib/python2.7/dist-packages/, the problem still happen … any idea? many thanks.
Have you restarted Apache web server after removing the tables and the egg file?
follow-up: 7 comment:6 by , 11 years ago
I have a question. I used the method of uninstall PeerReviewPlugin as below:
- $ sudo rm -rf /usr/local/lib/python2.7/dist-packages/PeerReviewPlugin.egg
- Remove all tables relate this plugins
But the issue still exist, any idea ? many thanks.
comment:7 by , 11 years ago
Sorry for delay.
I have a question. I used the method of uninstall PeerReviewPlugin as below:
- $ sudo rm -rf /usr/local/lib/python2.7/dist-packages/PeerReviewPlugin.egg
- Remove all tables relate this plugins
Basically right. If .egg-cache
directory has been created, you should remove the directory. See TracPlugins. But I don't think the plugin leads something wrong.
But the issue still exist, any idea ? many thanks.
I guess your repository is broken, have permission problem, etc….
Please check the repository like this.
$ sudo -u www-data git --git-dir=/path/to/git-repo fsck
Also could you please try 1.0-stable with TracLogging which DEBUG level is enabled?
comment:9 by , 11 years ago
Milestone: | next-stable-1.0.x |
---|---|
Resolution: | → cantfix |
Status: | assigned → closed |
Thanks for feedback, closing.
I'll investigate.