UPDATE (11/4): Just to test to see if it was indeed a permission issue on my linux box,
In the AWS Linux bare repo I did a 'sudo chmod -R 777 .' and was able to successfully complete a 'git push origin master' and I immediately did a 'sudo chmod -R 770 .' to change the permissions back.
I'm getting a 'insufficient permission...' error when trying to push to my bare repo on my linux AWS server.
$ git push origin master
Counting objects: 4, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 622 bytes | 0 bytes/s, done.
Total 4 (delta 3), reused 0 (delta 0)
remote: error: insufficient permission for adding an object to repository database objects
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To awsDev:/AWSbareRepo
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'awsDev:/AWSbareRepo'
I can pull, but not push. I've done a 'git ls-remote' and it comes back fine with the available references in the remote repository along with the associated commit IDs, so connectivity is not the issue.
I've also set the core.sharedRepository to true in the .config file:
[core]
repositoryformatversion = 0
filemode = true
bare = true
sharedRepository = true
~
~
~
On my AWS linux server on the bare repo directory I do a 'ls -la' and I receive the following:
$ ls -la
total 40
drwxr-xr-x 7 root root 4096 Nov 4 04:56 .
dr-xr-xr-x 28 root root 4096 Oct 14 02:06 ..
drwxrwsr-x 2 root root 4096 Apr 16 2015 branches
-rwxrwSr-- 1 root root 91 Nov 4 04:56 config
-rw-rwSr-- 1 root root 73 Apr 16 2015 description
-rw-rwSr-- 1 root root 23 Apr 16 2015 HEAD
drwxrwsr-x 2 root root 4096 Apr 16 2015 hooks
drwxrwsr-x 2 root root 4096 Apr 16 2015 info
drwxrwsr-x 12 root root 4096 Oct 14 03:21 objects
drwxrwsr-x 4 root root 4096 Apr 16 2015 refs
I've ssh'd into my server and tried reading over Git Push Error: insufficient.. question, but not sure what group I need to give permission to? Do I need to add a new group on my AWS server that matches the group on my dev box?
Additional info: In case I wasn't clear, I'm attempting a 'git push origin master' from my local dev box to a AWS linux server. The push is from my local DEV box and when I try to push I am not SSH'd into my AWS Linux box.
Not sure if this is neccesary, but my AWS Linux server has IP rules, which prevent any SSH connectivity that does not originate from my IP address.