Staging wiki down, giving mostly-empty responses #13338

Closed
opened 2026-05-11 23:38:46 +00:00 by adamwill · 7 comments
Member

Description of request

The staging wiki is currently down due to an issue with the PluggableAuth extension:

Original exception: [agJnA4BxF5UG1ndMkHGROgAAABM] /w/   TypeError: MediaWiki\Extension\PluggableAuth\PluggableAuthService::autoLogin(): Argument #1 ($title) must be of type Title, MediaWiki\Title\Title given, called in /usr/share/mediawiki/extensions/PluggableAuth/includes/PluggableAuthHooks.php on line 119<br />

I believe this is because the plugin is too old for the new mediawiki we're now running on staging. We have version 7.1.0 of the plugin, latest is 7.5.0, and somewhere in the middle, this commit landed which is probably what we need.

I assume that will break the plugin on older mediawiki versions, so we should be careful not to install it on prod until we upgrade its mediawiki.

### Description of request The staging wiki is currently down due to an issue with the PluggableAuth extension: ``` Original exception: [agJnA4BxF5UG1ndMkHGROgAAABM] /w/ TypeError: MediaWiki\Extension\PluggableAuth\PluggableAuthService::autoLogin(): Argument #1 ($title) must be of type Title, MediaWiki\Title\Title given, called in /usr/share/mediawiki/extensions/PluggableAuth/includes/PluggableAuthHooks.php on line 119<br /> ``` I believe this is because the plugin is too old for the new mediawiki we're now running on staging. We have version 7.1.0 of the plugin, latest is 7.5.0, and somewhere in the middle, [this commit](https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/PluggableAuth/+/079a34a050f563e29dc61ffea939b4d1518d197d) landed which is probably what we need. I assume that will *break* the plugin on older mediawiki versions, so we should be careful not to install it on prod until we upgrade its mediawiki.
Member

I built and updated to 7.50 ... but it's still not happy, it just doesn't give errors now.

Hoping @ryanlerch can see something obvious with the theme making it not show anything?

I built and updated to 7.50 ... but it's still not happy, it just doesn't give errors now. Hoping @ryanlerch can see something obvious with the theme making it not show anything?
Author
Member

Yeah, right now we just get:

[root@wiki01 ~][STG]# curl http://localhost/wiki/
<br />
<b>Notice</b>:  Unable to find phpseclib Crypt/RSA.php.  Ensure phpseclib is installed and in include_path before you include this file in <b>/usr/share/php/jumbojett/OpenID-Connect-PHP/src/OpenIDConnectClient.php</b> on line <b>35</b><br />

which is...unhelpful. That error is not a fatal one, so we're basically just displaying nothing except that warning method. We don't know why or how to find out why.

Yeah, right now we just get: ``` [root@wiki01 ~][STG]# curl http://localhost/wiki/ <br /> <b>Notice</b>: Unable to find phpseclib Crypt/RSA.php. Ensure phpseclib is installed and in include_path before you include this file in <b>/usr/share/php/jumbojett/OpenID-Connect-PHP/src/OpenIDConnectClient.php</b> on line <b>35</b><br /> ``` which is...unhelpful. That error is not a fatal one, so we're basically just displaying nothing *except* that warning method. We don't know why or how to find out why.
adamwill changed title from Staging wiki down due to PluggableAuth extension issue to Staging wiki down, giving mostly-empty responses 2026-05-12 00:36:35 +00:00
Member

Note that this is a link to mediawiki-PluggableAuth-7.5.0-1.fc44 build.

In theory I can downgrade the entire machine back to 42, but given EOL that's a short term solution.

Note that this is a link to [mediawiki-PluggableAuth-7.5.0-1.fc44 build](https://koji.fedoraproject.org/koji/taskinfo?taskID=145385224). In theory I can downgrade the entire machine back to 42, but given EOL that's a short term solution.
Member

Confirmed this is a skin problem. I changed the relevant bit of /srv/web/fp-wiki/LocalSettings.php to:

wfLoadSkin( 'Fedora' );
wfLoadSkin( 'Vector' );
# $wgDefaultSkin = 'Fedora';
$wgDefaultSkin = "vector";

...and now we get technically usable output (including the Crypt/RSA.php warning). So wfLoadSkin() isn't failing for Fedora, but using it produces a blank page (maybe due to the no headelement).

Pinging @ryanlerch again.

Confirmed this is a skin problem. I changed the relevant bit of `/srv/web/fp-wiki/LocalSettings.php ` to: ``` wfLoadSkin( 'Fedora' ); wfLoadSkin( 'Vector' ); # $wgDefaultSkin = 'Fedora'; $wgDefaultSkin = "vector"; ``` ...and now we get technically usable output (including the Crypt/RSA.php warning). So wfLoadSkin() isn't failing for Fedora, but using it produces a blank page (maybe due to the no headelement). Pinging @ryanlerch again.
Member

I've now upgraded (built in f44-infra tag) to new versions of:

  • mediawiki-OpenIDConnect
  • php-jumbojett-OpenID-Connect-PHP

...so the Crypto warnings went away, and it's mostly just skin problems (and maybe RSS).

I've now upgraded (built in f44-infra tag) to new versions of: - mediawiki-OpenIDConnect - php-jumbojett-OpenID-Connect-PHP ...so the Crypto warnings went away, and it's mostly just skin problems (and maybe RSS).
Owner

I have now fixed the mediawiki theme, pushed a new release of it, built the infra RPM, and it is running on staging:

I have now fixed the mediawiki theme, pushed a new release of it, built the infra RPM, and it is running on staging: * https://github.com/fedora-infra/fedora-mediawiki-theme/releases/tag/v0.19 * https://koji.fedoraproject.org/koji/buildinfo?buildID=3003566 * https://stg.fedoraproject.org/wiki
Member

Much thanks to Ryan.

Much thanks to Ryan.
james closed this issue 2026-06-03 19:03:17 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
infra/tickets#13338
No description provided.