Added by Alper Haytabay almost 8 years ago
We updated from Version 6 to Version 7
Configuration Log contains error for all git repositories
chcon: failed to change context of ‘heads’ to ‘system_u:object_r:httpd_git_rw_content_t:s0’: Invalid argument
Now it is not possible to authenticate against the git repository or to push changes
POST git-receive-pack (chunked) remote: fatal: Unable to create temporary file '/var/db/openproject/git/prp.git/./objects/pack/tmp_pack_XXXXXX': Permission denied error: remote unpack failed: index-pack abnormal exit Pushing to http://op.dev.emp.local/git/prp.git To http://op.dev.emp.local/git/prp.git ! [remote rejected] hg -> hg (unpacker error) error: failed to push some refs to 'http://op.dev.emp.local/git/prp.git'
How we can fix this issue? Should I open a Bug Report?
After setting the rights with
sudo chcon -R -u system_u -t git_rw_content_t /var/db/openproject/git
we can push changes