Page MenuHomePhabricator

Make config page display version information
Open, LowPublic

Description

  1. As an admin, go to https://phabricator.wikimedia.org/config/ .
  2. See nothing under "Version Information".
  3. Check the PHP server logs:
PHP message: [2024-03-19 16:13:20] PHLOG: 'Cannot identify the version of the phorge repository because the webserver does not trust it (more info on Task https://we.phorge.it/T15282).\nTry this system resolution:\nsudo git config --system --add safe.directory /srv/deployment/phabricator/deployment-cache/revs/9617e091153285ca23a8c63cc9106c40e3e58382/phabricator' at [/srv/deployment/phabricator/deployment-cache/revs/9617e091153285ca23a8c63cc9106c40e3e58382/phabricator/src/applications/config/controller/PhabricatorConfigConsoleController.php:363]
PHP message: [2024-03-19 16:13:20] PHLOG: 'Cannot identify the version of the arcanist repository because the webserver does not trust it (more info on Task https://we.phorge.it/T15282).\nTry this system resolution:\nsudo git config --system --add safe.directory /srv/deployment/phabricator/deployment-cache/revs/9617e091153285ca23a8c63cc9106c40e3e58382/arcanist' at [/srv/deployment/phabricator/deployment-cache/revs/9617e091153285ca23a8c63cc9106c40e3e58382/phabricator/src/applications/config/controller/PhabricatorConfigConsoleController.php:363]
PHP message: [2024-03-19 16:13:20] PHLOG: 'Cannot identify the version of the wmf-ext-misc repository because the webserver does not trust it (more info on Task https://we.phorge.it/T15282).\nTry this system resolution:\nsudo git config --system --add safe.directory /srv/deployment/phabricator/deployment-cache/revs/9617e091153285ca23a8c63cc9106c40e3e58382/libext' at [/srv/deployment/phabricator/deployment-cache/revs/9617e091153285ca23a8c63cc9106c40e3e58382/phabricator/src/applications/config/controller/PhabricatorConfigConsoleController.php:363]
PHP message: [2024-03-19 16:13:20] PHLOG: 'Cannot identify the version of the ava repository because the webserver does not trust it (more info on Task https://we.phorge.it/T15282).\nTry this system resolution:\nsudo git config --system --add safe.directory /srv/deployment/phabricator/deployment-cache/revs/9617e091153285ca23a8c63cc9106c40e3e58382/libext/ava' at [/srv/deployment/phabricator/deployment-cache/revs/9617e091153285ca23a8c63cc9106c40e3e58382/phabricator/src/applications/config/controller/PhabricatorConfigConsoleController.php:363]
PHP message: [2024-03-19 16:13:20] PHLOG: 'Cannot identify the version of the translations repository because the webserver does not trust it (more info on Task https://we.phorge.it/T15282).\nTry this system resolution:\nsudo git config --system --add safe.directory /srv/deployment/phabricator/deployment-cache/revs/9617e091153285ca23a8c63cc9106c40e3e58382/translations' at [/srv/deployment/phabricator/deployment-cache/revs/9617e091153285ca23a8c63cc9106c40e3e58382/phabricator/src/applications/config/controller/PhabricatorConfigConsoleController.php:363]

Event Timeline

Aklapper created this task.

@brennen: Do you think this is worth a shot? (Assuming that git config --system --add safe.directory doesn't need to get puppetized or... whatever)

@brennen: Do you think this is worth a shot? (Assuming that git config --system --add safe.directory doesn't need to get puppetized or... whatever)

Setting the needed git config via Puppet is probably the best bet in the long term. There are a number of existing things that do this: https://codesearch.wmcloud.org/puppet/?q=safe.directory

Uh thanks a lot for the pointers! Let's see how far I can get copying and pasting. :P

Change #1025478 had a related patch set uploaded (by Aklapper; author: Aklapper):

[operations/puppet@production] Phabricator: Add safe.directory directives

https://gerrit.wikimedia.org/r/1025478