The debug log from wmf-config/wikitech.php for WikitechGerritBan shows:
Gerrit unblock of fomafix failed with status 404
As well as various entries like:
Gerrit block of *** failed with status 404 Gerrit block of *** failed with status 404 Gerrit block of *** failed with status 404 Gerrit block of *** failed with status 404
https://logstash.wikimedia.org/goto/8341ab7923ae0588624182d340c2e569
The code in question (source of wmf-config/wikitech.php, thanks @Reedy):
// the specified HTTP method (PUT to enable, DELETE to disable) function wmfGerritSetActive( string $gerritUsername, string $gerritPassword, string $username, string $httpMethod ) { $gerritUrl = 'https://gerrit.wikimedia.org'; $ch = curl_init( "{$gerritUrl}/r/a/accounts/" . urlencode( $username ) . '/active' ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, $httpMethod ); curl_setopt( $ch, CURLOPT_USERPWD, "{$gerritUsername}:{$gerritPassword}" );