401 Unauthorized with HTTP Push

Just about have my system running, and if we like it, it will be time to buy!

However, When doing a git push -u origin master from one of my servers I get the following error :

[root@nagios-01 etc]# git push -u origin master
error: The requested URL returned error: 401 Unauthorized while accessing http://gitlab.prod.rm/tom.kinsella/nagioscfg.git/info/refs

fatal: HTTP request failed

However when I push from my local desktop, it works :

[tom.kinsella@tomk-linux test]$ git push -u origin master
Username for 'http://gitlab.prod.rm': tom.kinsella
Password for 'http://tom.kinsella@gitlab.prod.rm': 
Counting objects: 3, done.
Writing objects: 100% (3/3), 218 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To http://gitlab.prod.rm/tom.kinsella/nagioscfg.git
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.

The server that is not working had git 1.7 and it was upgraded to 2.2
The server that is working is on 1.9

Any thoughts?

Thanks!

Issue seems to be a version with git.

I removed the 2.2 Version and installed 1.7.12 (Instead of 1.7.10) and it is working.

Interesting. So you are installing manually? The omnibus package has version 2.0.3 installed.

Is it possible the error was due to the fact you pushed as root? I don’t know how you have set up your keys.