Error in sideband demultiplxer: hook doesn't read all data
Created by: mgorbach
After moving from gitolite to gitlab (and gitlab-shell), I'm sometimes seeing errors pushing to repositories. This doesn't happen all the time, but it does happen, and the error is something I hadn't seen before. During the push, git says "error in sideband demultiplexer." The commit appears to complete, despite this error. Looking around, it looks like it may be a problem with gitlab's post-receive hook. The contents of the post-receive hook (in my 5.2 stable gitalb version) is: cat hooks/post-receive
!/usr/bin/env ruby
This file was placed here by GitLab.
IT IS DEPRECATED NOW.
All GitLab logic handled by update hook
This script doesn't appear to read all the data that was sent to it. According to a number of online references, not reading everything from the post-receive hook can sometimes cause this specific demultiplexer error.
References: http://www.ioncannon.net/system-administration/1362/example-git-pre-receive-and-post-receive-hooks-to-avoid-a-signal-13-error/ http://stackoverflow.com/questions/4582849/git-responds-with-error-in-sideband-demultiplexer http://stackoverflow.com/questions/9592908/error-in-sideband-demultiplexer-with-a-git-post-receive-hook
Gitlab should probably update to either remove this hook file completely (since it's deprecated), or make sure it does still read the data.