Git Hosted Repository returns ERROR 500


#1

Hello,
I try to clone phabricator repositories but I get error 500.
I have set to TRUE the

diffusion.allow-http-auth

In my sudoers file I have this line:

apache ALL=(phdaemonuser) /usr/bin/git, /usr/bin/git-upload-pack, /usr/libexec/git-core/git-http-backend
and also, I put a # infront of the Defaults requiretty

In the UI Repository status everything looks okay. (no errors) and in this picture I have my git bush VERBOSE logs:

I don’t get what is wrong. Whatever I tried I still get this error. Please help?


#2

There should be a matching error in the webserver’s log - it should hold more detailed error message.


#4

Try looking for a few more lines above this.


#5
[Wed Nov 08 15:29:03.467486 2017] [:error] [pid 12534] [client 176.227.228.21:56696] [2017-11-08 15:29:03] EXCEPTION: (PhabricatorPasswordHasherUnavailableException) Attempting to compare a password saved with the "bcrypt" hash. The hasher exists, but is not currently usable. Upgrade to PHP 5.5.0 or newer. at [<phabricator>/src/infrastructure/util/password/PhabricatorPasswordHasher.php:299]
[Wed Nov 08 15:29:03.467901 2017] [:error] [pid 12534] [client 176.227.228.21:56696] arcanist(head=master, ref.master=9e82ef979e81), phabricator(head=master, ref.master=1afd8cbe0e0c, custom=1), phutil(head=master, ref.master=fa6519f4cea1)
[Wed Nov 08 15:29:03.467914 2017] [:error] [pid 12534] [client 176.227.228.21:56696]   #0 <#2> PhabricatorPasswordHasher::getHasherForHash(PhutilOpaqueEnvelope) called at [<phabricator>/src/infrastructure/util/password/PhabricatorPasswordHasher.php:376]
[Wed Nov 08 15:29:03.467916 2017] [:error] [pid 12534] [client 176.227.228.21:56696]   #1 <#2> PhabricatorPasswordHasher::comparePassword(PhutilOpaqueEnvelope, PhutilOpaqueEnvelope) called at [<phabricator>/src/applications/repository/storage/PhabricatorRepositoryVCSPassword.php:36]
[Wed Nov 08 15:29:03.467919 2017] [:error] [pid 12534] [client 176.227.228.21:56696]   #2 <#2> PhabricatorRepositoryVCSPassword::comparePassword(PhutilOpaqueEnvelope, PhabricatorUser) called at [<phabricator>/src/applications/diffusion/controller/DiffusionServeController.php:723]
[Wed Nov 08 15:29:03.467921 2017] [:error] [pid 12534] [client 176.227.228.21:56696]   #3 <#2> DiffusionServeController::authenticateHTTPRepositoryUser(string, PhutilOpaqueEnvelope) called at [<phabricator>/src/applications/diffusion/controller/DiffusionServeController.php:186]
[Wed Nov 08 15:29:03.467923 2017] [:error] [pid 12534] [client 176.227.228.21:56696]   #4 <#2> DiffusionServeController::serveRequest(AphrontRequest) called at [<phabricator>/src/applications/diffusion/controller/DiffusionServeController.php:99]
[Wed Nov 08 15:29:03.467924 2017] [:error] [pid 12534] [client 176.227.228.21:56696]   #5 <#2> DiffusionServeController::handleRequest(AphrontRequest) called at [<phabricator>/src/aphront/AphrontController.php:71]
[Wed Nov 08 15:29:03.467926 2017] [:error] [pid 12534] [client 176.227.228.21:56696]   #6 <#2> AphrontController::delegateToController(DiffusionServeController) called at [<phabricator>/src/applications/diffusion/controller/DiffusionController.php:27]
[Wed Nov 08 15:29:03.467928 2017] [:error] [pid 12534] [client 176.227.228.21:56696]   #7 <#2> DiffusionController::willBeginExecution() called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:244]
[Wed Nov 08 15:29:03.467930 2017] [:error] [pid 12534] [client 176.227.228.21:56696]   #8 phlog(PhabricatorPasswordHasherUnavailableException) called at [<phabricator>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]
[Wed Nov 08 15:29:03.467932 2017] [:error] [pid 12534] [client 176.227.228.21:56696]   #9 PhabricatorDefaultRequestExceptionHandler::handleRequestException(AphrontRequest, PhabricatorPasswordHasherUnavailableException) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:671]
[Wed Nov 08 15:29:03.467934 2017] [:error] [pid 12534] [client 176.227.228.21:56696]   #10 AphrontApplicationConfiguration::handleException(PhabricatorPasswordHasherUnavailableException) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:262]
[Wed Nov 08 15:29:03.467947 2017] [:error] [pid 12534] [client 176.227.228.21:56696]   #11 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:169]
[Wed Nov 08 15:29:03.467954 2017] [:error] [pid 12534] [client 176.227.228.21:56696]   #12 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:17]

#6

Attempting to compare a password saved with the “bcrypt” hash. The hasher exists, but is not currently usable. Upgrade to PHP 5.5.0 or newer.


#7

Thank you very much.
Updated and works perfectly! :slight_smile: