Help needed! Git ssh local hosted repositories not showing up on Diffusion


Hi, I’ve been trying to solve a problem that’s been driving me quite crazy. We recently migrated our Phabricator install into a new server by following Configuring Backups and Performing Migrations guide. Also went thru the Diffusion User Guide: Repository Hosting, made sure everything was setup correctly. We went thru what at the time we believed was a painless migration. However whenever we browse to a newly created locally hosted git repo, we see the repo and file system getting created on the server. But when we browser thru Diffusion we get the following error:

File system entity ‘/var/repo/23/’ does not exist.

Doing a diffusion/edit/23 and going to the Basics we get:

Working Copy Error Working copy /var/repo/23/ has been deleted, or is not readable by the webserver. Make this directory readable. If it has been deleted, the daemons should restore it automatically.

/var/repo/23/ gets created with daemon-user as owner and the default daemon-user group. Changing the ownership or group to www-user shows the same behavior :weary:. Funny thing is we can git clone and git push to the repo, but can’t browse thru Diffusion.

Browsing an existing repo that came over the migration we get a similar file system related error:

No Storage Directory Storage directory /var/repo/phabricatorRepos does not exist, or is not readable by the webserver. Create this directory or make it readable.

Owner of /var/repo/phabricatorRepos is daemon-user, changing group or owner to www-user doesn’t solve anything :frowning_face:. vcs-user, daemon-user and www-user are all configured correctly on the sudoers file per the Diffusion setup guide. We can git clone, git push the repos, but can’t browse them with Diffusion. This one’s been driving me nuts for a couple of weeks now! Thanks in advance :+1: !

Here’s the Phab version we’re running:

Installed Versions
phabricator cac3dc4983c3671ba4ec841aac8efac10744a80c (Fri, Jun 22)
arcanist 222800a86ed002c564e2760d6c5d9e93810b5b96 (Tue, Jun 19)
phutil 4206849bb05b60f536a1c78e33adee68dac67aa9 (Thu, Jun 7)
diff 3.3 at /usr/bin/diff
git 2.16.4 at /usr/bin/git
hg Not Available
pygmentize 2.2.0 at /usr/local/bin/pygmentize
svn 1.7.14 at /usr/bin/svn


sudo as www-user, and make sure you can (1) cd to /var/repo/23/ and (2) do git log there.

If you think you set the file permissions correctly but it still doesn’t work, it might be a case of T4947: SELinux / AppArmor ruin everything all the time in your new system.


Thanks or the help, revisiting this one, turns out it was a permissions issue after all! Turns out that the www-user was not part of the group that daemon-user was part of, adding o+rx on the repo dirs did the trick. Thanks for the help!