Page MenuHomePhabricator

Beta cluster: stat failed for PagedTiffHandler/extension.json
Closed, ResolvedPublic


Tried to run eval.php on beta metawiki to test something, resulted in a fatal error

dannys712@deployment-deploy01:~$ mwscript eval.php --wiki=metawiki
Fatal error: Uncaught Exception: Unable to open file /srv/mediawiki-staging/php-master/extensions/PagedTiffHandler/extension.json: filemtime(): stat failed for /srv/mediawiki-staging/php-master/extensions/PagedTiffHandler/extension.json in /srv/mediawiki-staging/php-master/includes/registration/ExtensionRegistry.php:176
Stack trace:
#0 /srv/mediawiki-staging/php-master/includes/GlobalFunctions.php(51): ExtensionRegistry->queue('/srv/mediawiki-...')
#1 /srv/mediawiki-staging/wmf-config/CommonSettings.php(611): wfLoadExtension('PagedTiffHandle...')
#2 /srv/mediawiki-staging/php-master/LocalSettings.php(5): require('/srv/mediawiki-...')
#3 /srv/mediawiki-staging/php-master/includes/Setup.php(143): require_once('/srv/mediawiki-...')
#4 /srv/mediawiki-staging/php-master/maintenance/doMaintenance.php(90): require_once('/srv/mediawiki-...')
#5 /srv/mediawiki-staging/php-master/maintenance/CommandLineInc.php(74): require('/srv/mediawiki-...')
#6 /srv/mediawiki-staging/php-master/maintenance/eval.php(39): require_once('/srv/mediaw in /srv/mediawiki-staging/php-master/includes/registration/ExtensionRegistry.php on line 176
Fatal error: Uncaught Error: Class 'WebRequest' not found in /srv/mediawiki-staging/php-master/includes/HeaderCallback.php:63
Stack trace:
#0 [internal function]: MediaWiki\HeaderCallback::callback()
#1 {main}
  thrown in /srv/mediawiki-staging/php-master/includes/HeaderCallback.php on line 63

(the second fatal error about WebRequest is likely T261260.

Is this an issue with the config, or with the extension? (Or something else?)

Event Timeline

DannyS712 created this task.Oct 5 2020, 4:18 AM
Restricted Application added a project: User-DannyS712. · View Herald TranscriptOct 5 2020, 4:18 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
DannyS712 moved this task from Unsorted to Reports on the User-DannyS712 board.Oct 5 2020, 4:18 AM
Urbanecm triaged this task as Unbreak Now! priority.Oct 5 2020, 11:03 AM
Urbanecm added a subscriber: Urbanecm.

Apparently breaks deployment,, triaging appropriately.

For some reason, many folders in /srv/mediawiki-staging/php-master/extensions are empty, even they should have some content. git status shows a lot of modified extensions. Running git checkout -- * in a hope that'll clean it.

Mentioned in SAL (#wikimedia-releng) [2020-10-05T11:30:07Z] <Urbanecm> Run cd /srv/mediawiki-staging/php-master/extensions/$1 && git reset HEAD * && git checkout -- * for all extensions at beta (T264563)

Urbanecm closed this task as Resolved.Oct 5 2020, 11:30 AM
Urbanecm claimed this task.

Fixed this by doing the following:

urbanecm@deployment-deploy01:/srv/mediawiki-staging/php-master/extensions$ cat ~/                                                                                                                  #!/bin/bash

cd /srv/mediawiki-staging/php-master/extensions/$1 && git reset HEAD * && git checkout -- *
urbanecm@deployment-deploy01:/srv/mediawiki-staging/php-master/extensions$ head ~/list.txt
urbanecm@deployment-deploy01:/srv/mediawiki-staging/php-master/extensions$ for ext in $(cat ~/list.txt); do sudo bash ~/ $ext; done

mwscript shell.php metawiki now works as expected

Restricted Application added a project: User-Urbanecm. · View Herald TranscriptOct 5 2020, 11:30 AM