#5844 GitCommandError on https://sourceforge.net/p/fll-sw/code/ [ss2845]

v1.0.0
closed
General
nobody
2015-08-20
2013-02-19
Chris Tsai
No

[forge:site-support:#2845]

I upgraded fll-sw to the new interface yesterday. Everything was working fine yesterday afternoon. Now this morning clicking on the Code link results in an Error 500.

I started at https://sourceforge.net/projects/fll-sw/ and the clicked on "Code".

Error trace:

 Error - <class 'git.exc.GitCommandError'>: 'git branch --contains=40530036d14b06ecc0a811d57f533c9f55b12548' returned exit status 128: fatal: Not a git repository (or any parent up to mount parent /nfs/sf-git)
 Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
 URL: https://sourceforge.net/p/fll-sw/code/ci/40530036d14b06ecc0a811d57f533c9f55b12548/tree/
 File '/var/local/env-allura/lib/python2.7/site-packages/WebError-0.10.3-py2.7.egg/weberror/errormiddleware.py', line 162 in __call__
   app_iter = self.application(environ, sr_checker)
 File '/var/local/env-allura/lib/python2.7/site-packages/Beaker-1.5.4-py2.7.egg/beaker/middleware.py', line 152 in __call__
   return self.wrap_app(environ, session_start_response)
 File '/var/local/env-allura/lib/python2.7/site-packages/Routes-1.12.3-py2.7.egg/routes/middleware.py', line 131 in __call__
   response = self.app(environ, start_response)
 File '/var/local/forge-classic/sfx/middleware.py', line 39 in __call__
   resp = request.get_response(self.app)
 File '/var/local/env-allura/lib/python2.7/site-packages/WebOb-1.0.8-py2.7.egg/webob/request.py', line 1053 in get_response
   application, catch_exc_info=False)
 File '/var/local/env-allura/lib/python2.7/site-packages/WebOb-1.0.8-py2.7.egg/webob/request.py', line 1022 in call_application
   app_iter = application(self.environ, start_response)
 File '/var/local/env-allura/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/wsgiapp.py', line 107 in __call__
   response = self.dispatch(controller, environ, start_response)
 File '/var/local/env-allura/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/wsgiapp.py', line 312 in dispatch
   return controller(environ, start_response)
 File '/var/local/allura/Allura/allura/lib/base.py', line 27 in __call__
   response = super(WsgiDispatchController, self).__call__(environ, start_response)
 File '/var/local/env-allura/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/controllers/core.py', line 211 in __call__
   response = self._dispatch_call()
 File '/var/local/env-allura/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/controllers/core.py', line 162 in _dispatch_call
   response = self._inspect_call(func)
 File '/var/local/env-allura/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/controllers/core.py', line 105 in _inspect_call
   result = self._perform_call(func, args)
 File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/controllers/dispatcher.py', line 258 in _perform_call
   r = self._call(func, params, remainder=remainder)
 File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/controllers/decoratedcontroller.py', line 142 in _call
   response = self._render_response(controller, output)
 File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/controllers/decoratedcontroller.py', line 331 in _render_response
   **render_params)
 File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/render.py', line 188 in render
   kwargs['result'] = render_function(template_name, tg_vars, **kwargs)
 File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/render.py', line 470 in render_jinja
   cache_key=cache_key, cache_type=cache_type, cache_expire=cache_expire)
 File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/render.py', line 253 in cached_template
   return render_func()
 File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/render.py', line 467 in render_template
   return literal(template.render(**globs))
 File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.2-py2.7.egg/timermiddleware/__init__.py', line 116 in wrapper
   return self.run_and_log(func, inst, *args, **kwargs) 
 File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.2-py2.7.egg/timermiddleware/__init__.py', line 125 in run_and_log
   return func(*args, **kwargs)
 File '/var/local/env-allura/lib/python2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py', line 894 in render
   return self.environment.handle_exception(exc_info, True)
 File '/var/local/allura/Allura/allura/templates/repo/tree.html', line 2 in top-level template code
   {% do g.register_forge_css('css/forge/hilite.css') %}
 File '/var/local/allura/Allura/allura/templates/repo/repo_master.html', line 120 in top-level template code
   <span class="scm-tag-label">{{t}}</span>
 File '/var/local/allura/Allura/allura/templates/jinja_master/master.html', line 87 in top-level template code
   <h2 class="dark{% block header_classes %} title{% endblock %}">{% block header %}{% endblock %}
 File '/var/local/allura/Allura/allura/templates/repo/tree.html', line 10 in block "header"
   Tree <a href="{{commit.url()}}">{{commit.shorthand_id()}}</a> {{commit_labels(commit)}} /
 File '/var/local/allura/Allura/allura/templates/repo/repo_master.html', line 115 in template
   {% set branches, tags = commit.symbolic_ids %}
 File '/var/local/env-allura/lib/python2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py', line 372 in getattr
   return getattr(obj, attribute)
 File '/var/local/env-allura/lib/python2.7/site-packages/Ming-0.3.2dev_20121101-py2.7.egg/ming/utils.py', line 18 in __get__
   result = obj.__dict__[self.__name__] = self._func(obj)
 File '/var/local/allura/Allura/allura/model/repo.py', line 199 in symbolic_ids
   return self.repo.symbolics_for_commit(self)
 File '/var/local/allura/Allura/allura/model/repository.py', line 247 in symbolics_for_commit
   return self._impl.symbolics_for_commit(commit)
 File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.2-py2.7.egg/timermiddleware/__init__.py', line 116 in wrapper
   return self.run_and_log(func, inst, *args, **kwargs)
 File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.2-py2.7.egg/timermiddleware/__init__.py', line 125 in run_and_log
   return func(*args, **kwargs)
 File '/var/local/allura/ForgeGit/forgegit/model/git_repo.py', line 316 in symbolics_for_commit
   containing_branches = self._git.git.branch(contains=commit._id)
 File '/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.0_beta2-py2.7.egg/git/cmd.py', line 219 in <lambda>
   return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
 File '/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.0_beta2-py2.7.egg/git/cmd.py', line 428 in _call_process
   return self.execute(call, **_kwargs)
 File '/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.0_beta2-py2.7.egg/git/cmd.py', line 341 in execute
   raise GitCommandError(command, status, stderr_value)
 GitCommandError: 'git branch --contains=40530036d14b06ecc0a811d57f533c9f55b12548' returned exit status 128: fatal: Not a git repository (or any parent up to mount parent /nfs/sf-git)
 Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Discussion

  • Anonymous - 2013-02-23

    Originally by: jpschewe

    What can I do to get this fixed? I have people asking me how to browse the source code now that we've upgraded and I can't point them at anything. I tried this git command in my local repository and it works fine.

     
  • Anonymous - 2013-02-23

    Originally by: jpschewe

    I tried this on teh shell server and it works there as well. I tried passing different hashes into the web page and still got the same error. So I'm guessing it's something about which directory the websit is running the git command in.

     
  • Anonymous - 2013-02-23

    Originally by: jpschewe

    Interesting change just now. When I visit the code link now I'm redirected to https://sourceforge.net/p/fll-sw/code/ref/master~/ which says my repository is empty. However I see the branches and tags on the left hand side. Clicking on the branches and tags yields the empty repository page or an error 500.

     
  • Dave Brondsema

    Dave Brondsema - 2013-03-08
    • status: open --> code-review
    • milestone: limbo --> forge-mar-22
     
  • Dave Brondsema

    Dave Brondsema - 2013-03-08
    • size: --> 2
     
  • Dave Brondsema

    Dave Brondsema - 2013-03-08
    • status: code-review --> open
     
  • Anonymous - 2013-03-09

    Originally by: jpschewe

    I just pushed another changeset and a new branch and now the code link is showing my repository.

     
  • Cory Johns - 2013-03-13
    • status: open --> closed
    • assigned_to: Cory Johns
     
  • Cory Johns - 2013-03-13

    Closing this as it seems to have been a transient error cloning / refreshing the repository. Will keep an eye out for errors on refresh.

     

Log in to post a comment.