Details
Hi there! I am new to Phabricator, so excuse me if I have done some silly mistake (I probably have).
I created a hosted repository from the web UI. I can verify on the server that it exists in /var/repo/<CALLNAME>/.
I have a local repository, to which I added the remote repository as:
git remote add origin awal@<my-host>:/var/repo/<CALLNAME>
I can not follow the SSH setup method described at https://secure.phabricator.com/book/phabricator/article/diffusion_hosting/ because we have tooling which relies on the regular SSHD daemon being available on port 22. And thus, I have to add the remote like above.
But if I do a push, I get the following error from the pre-recieve hook:
remote: [2015-12-06 18:45:34] EXCEPTION: (Exception) Usage: PHABRICATOR_USER should be defined! at [<phabricator>/scripts/repository/commit_hook.php:63] remote: arcanist(head=master, ref.master=4a680c762b2e), phabricator(head=master, ref.master=20e6a4200dbc), phutil(head=master, ref.master=0b37f385b8cd) To <user>@<host>:/var/repo/<CALLNAME> ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to '<user>@<host>:/var/repo/<CALLNAME>'
I can access <user>@<host> via ssh, so this is definitely (and apparently, anyways) not a permission error.
I debugged around, and it seems that the PHABRICATOR_USER environment variable is not being initialized, probably because of my "custom"-ish setup. Is there anyway I can make this work without manually patching phabricator's pre-receive hook?
Or is there a way I can have phabricator's locked down sshd run on some other port, and have the main sshd keep running on port 22?
Thanks a lot!