I encountered this problem when I set up a fresh remote server and created the remote git repo/folders with my root user (rather than my personal user acct). Problem fixed by deleting the git repos and redoing them with my personal account. all works as expected now.