Unable To Create an Observe Repository

Hello!

I am trying to setup an observe repository but I keep getting the error:

[2020-01-24 12:13:14] EXCEPTION: (Exception) Expected to find a Git repository at "/opt/bitnami/phabricator/repo/3/", but there is a non-repository directory (with other stuff in it) there. Move or remove this directory. A daemon will construct the working copy for you. at [<phabricator>/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php:346]

When I look at the directory I see:

drwxr-xr-x 7 phabricator root        4096 Jan 24 12:13 .
drwxr-xr-x 3 phabricator phabricator 4096 Jan 24 12:13 ..
-rw-r--r-- 1 phabricator root          23 Jan 24 12:13 HEAD
drwxr-xr-x 2 phabricator root        4096 Jan 24 12:13 branches
-rw-r--r-- 1 phabricator root          66 Jan 24 12:13 config
-rw-r--r-- 1 phabricator root          73 Jan 24 12:13 description
drwxr-xr-x 2 phabricator root        4096 Jan 24 12:13 hooks
drwxr-xr-x 2 phabricator root        4096 Jan 24 12:13 info
drwxr-xr-x 4 phabricator root        4096 Jan 24 12:13 objects
drwxr-xr-x 4 phabricator root        4096 Jan 24 12:13 refs

which when looking over the code that handles the Git stuff looks normal as output, but I could be wrong, I’m not a developer ha.

I’ve tried removing the directory, but it’s just recreated with the same files. I’ve tried removing the files in the directory but then I get a different error:

[2020-01-24 12:09:28] EXCEPTION: (Exception) Expected to find a Git repository at "/opt/bitnami/phabricator/repo/3/", but there is an empty directory there. Remove the directory. A daemon will construct the working copy for you. at [<phabricator>/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php:346]

Any ideas on this one? I really want to use the software, but having this feature not work, would not be fun. If there’s any other logs or information I can provide to help troubleshoot please don’t hesitate to let me know!

Thanks!

Please provide version information. See the pinned thread.

Hi @epriestley, hopefully this is the correct information:

phabricator 
c4b4a53cad7722f031b725f8b41511e9d341d033 (Dec 13 2019) (branched from 54bcbdaba94a3573e128c6498816dbfa41d3a9cb on origin) 

arcanist 
bac2028421a4be6e34e08764bbbda49e68b3a604 (Nov 19 2019) (branched from cc850163f30c4697e925df0d6212469679600a2c on origin) 

phutil 
1750586fdc50a6cd98adba4aa2f5a7649bd91dbe (Sep 30 2019) (branched from 39ed96cd818aae761ec92613a9ba0800824d0ab0 on origin) 

php 
7.3.13 

diff 
3.5 at /usr/bin/diff 

git 
2.25.0 at /opt/bitnami/git/bin/git 

hg 
Not Available 

pygmentize 
2.2.0 at /usr/bin/pygmentize 

svn 
Not Available

See https://secure.phabricator.com/D20945. You can:

  • Update to master.
  • Update to stable after the next release is cut (likely tomorrow).
  • Downgrade git to a version before 2.25.0.

I ended up grabbing the src/applications/repository/engine/PhabricatorRepositoryPullEngine.php file from master to see if just that would solve it, and it did. Thanks a lot! :slight_smile: Hope to see it in stable soon!

(This has been in stable for a bit, now.)