Error on pushing git repo

I got the following error on pushing to my gitlab repo today:

fatal: protocol error: bad line length character: Fail

The issue was fixed by running the following command on the machine with gitlab installed:

sudo gitlab-ctl reconfigure