Error when git subprocess does auto repack

Issue #641 new
Peter Loron created an issue

A user did a push to a git repo being hosted with rhodecode 1.4.4, and got a failure message. However it appears that the push actually succeeded. Based on what I'm seeing in the log, I think Rhodecode is not catching an unexpected status from the git subprocess.

The error the user received:

error: RPC failed; result=22, HTTP code = 417 fatal: The remote end hung up unexpectedly

On the server, this was in the log:

2012-11-07 14:47:16.866 INFO  [rhodecode.lib.middleware.simplegit] push action on GIT repo "Consumer/Ink_Android.git"
2012-11-07 14:47:19.898 ERROR [rhodecode.lib.middleware.pygrack] Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/RhodeCode-1.4.4-py2.7.egg/rhodecode/lib/middleware/", line 136, in backend
  File "/usr/local/lib/python2.7/dist-packages/RhodeCode-1.4.4-py2.7.egg/rhodecode/lib/", line 375, in __init__
    raise EnvironmentError("Subprocess exited due to an error:\n" + err)
EnvironmentError: Subprocess exited due to an error:
Auto packing the repository for optimum performance.

2012-11-07 14:47:19.900 ERROR [rhodecode.lib.middleware.pygrack] Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/RhodeCode-1.4.4-py2.7.egg/rhodecode/lib/middleware/", line 164, in __call__
    resp = app(request, environ)
  File "/usr/local/lib/python2.7/dist-packages/RhodeCode-1.4.4-py2.7.egg/rhodecode/lib/middleware/", line 140, in backend
    raise exc.HTTPExpectationFailed()
HTTPExpectationFailed: Expectation failed.

Comments (2)

  1. Marcin Kuzminski repo owner

    That's interesting. Git always prints those messages to stderr and subprocessio thinks it's an error. unfortunetly git upload-pack and git receive-pack doesn't have a quiet flag, so i will have to filter this error out somehow

  2. Log in to comment