Page MenuHomePhabricator

Git Repository Hosted with Phabricator chmod Problem
Closed, ResolvedPublic

Asked by mtilhan on Oct 28 2015, 8:23 PM.

Details

I just tried to create a Git Repository with hosted by phabricator, first my problem was everything was seems ok at web ui but whenever i tried to push my code it was giving me failure after user name and password name (p.s. I am not trying to use ssh yet just http git). Though I fixed by following this:
https://secure.phabricator.com/T5998
My problem was because my daemons was started with root user, the permissions weren't fit. Then I stopped daemons, changed the whole /var/repo/ with

sudo chmod -R 777 /var/repo/

and be able to push. However, when I opened the Web UI it seems like there was no commit, I updated repository still empty. Then I looked to push logs and saw my push at log. Opened the Edit Repository page and see an error as :

Pull of "DNM" failed: Failed to chmod `/var/repo/DNM/hooks/pre-receive' to `0755'.

So I tried as

sudo chmod -R 0755 /var/repo/

and result is still nothing but error changed as

Pull of "DNM" failed: Requested path `/var/repo/DNM/hooks/pre-receive' is not writable.

Any insight with this?

Answers

cspeckmim
Updated 3,323 Days Ago

Check the /var/repo directory's ownership, not just permissions. Your phd daemon user needs to have ownership of that folder. You'll need to use the chown command and not chmod.

New Answer

Answer

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