Page MenuHomePhabricator

error when pushing git
Closed, ResolvedPublic

Asked by ndriks on Sep 17 2015, 8:26 AM.

Details

I've setup phabricator in a freshly installed Centos 6.5 on VM.

After the installation, I created a new hosted Git Repository, activate http read/write, and set the vcs password.
But when I try to push something,

http://<phabricator-user>@<phabricator-address>/diffusion/<repo-name>/<repo-name>.git: error occurred during unpacking on the remote end: unpack-objects abnormal exit

occured.

All status in repository page (in Phabricator) are green.

What should I do?

Thank you for your help

Answers

johnny-bit
Updated 3,390 Days Ago

SELinux messes things up badly. disable it as there is little to none upstream support of specific selinux configuration. Most assume that if You have selinux, you know how to deal with it Yourself.

ndriks
Updated 3,390 Days Ago

Apparently, apache web server use different user (called "apache") when running its process.
Giving write permission to the repo directory for this user solves the problem.

dukeh3
Updated 3,284 Days Ago

I had the same problem, and its always a mess to find the solution. It appears if you do not follow all the instructions on how to set up the git repo to the letter and take a shortcut by running the deamons as root. If you run into this ( on a debian mashing that runs apache as the user www-data ) you have to make sure

  1. That the deamons are running as www-data. ( or prob evem better follow the instructions on how to run them propperly )
  2. Make sure /var/repo exists and the www-data has read and write permissions to that folder.

Usually if you create the repo with a deamon running as root www-data will not be able to push to that repo.

New Answer

Answer

This question has been marked as closed, but you can still leave a new answer.