Jump to content

Extension talk:CheckUser

About this board


I have a suggestion about the CheckUser Tools:

7
Summary by DarkMatterMan4500

3 months only works. --DarkMatterMan4500 (talk) 15:20, 6 July 2024 (UTC)

DarkMatterMan4500 (talkcontribs)

I've been thinking about this for quite some time, and don't you think that the data results should last longer than 3 months? I mean, why not just stick to 6 months instead of 3 as it just feels drastically too short. You don't have to agree with me on this if you don't want to. It's just a suggestion, not a requirement.

2403:6200:8832:C8D5:E891:A390:99B8:CAAF (talkcontribs)

This is a perennial question. I believe the WMF considers it a breach of personal data policy to permit searching the records further back. Technically it is quite possible to extend the period and it would help combat the fiercly growing abuse of Wikipedia - at least on en.Wiki - for commercial purposes. ~~~~

DarkMatterMan4500 (talkcontribs)

That could be true either way.

Ciencia Al Poder (talkcontribs)

You can change that by setting $wgCUDMaxAge to a longer period.

If you want to change that on WMF wikis, the request should be discussed and approved first, but anyway this talk page is not the place to take this discussion. Maybe try a bugreport?

Kudpung (talkcontribs)

Exactly. The way MediaWiki is used on WMF projects is driven by the WMF and it's unlikely they will approve any changes to their policy even if asked time and time again by a majority RfC from their volunteer communities. Hence making a request at Phab would be a waste of time. The simple $wgCUDMaxAge setting is free for anyone to use who is using MediaWiki for other purposes.

DarkMatterMan4500 (talkcontribs)

Oh yeah. Although I'm not a Steward on any of these wikis.

Kudpung (talkcontribs)

I believe we have adequately explained the situation with the use of CU on WMF and non-WMF websites powered by MediaWiki. ~~~~

How to log failed login attempts?

2
Derek Jones Smr (talkcontribs)

Hello!

I'm trying to use this hint of documentation:

"To allow this tool to log successful and failed login attempts as well as logouts, set $wgCheckUserLogLogins to true"

But my Investigate page shows only successful login attempts

How to switch on unsuccessful attempts to logs?

Dreamy Jazz (talkcontribs)

Failed login attempts are tagged under the IP address that made the login attempt. This means that when using Special:Investigate on an account, you need to also include the IPs in the investigation.

You do this by clicking the "Show all users on this IP" button in the three dots menu. This button is shown at https://commons.wikimedia.org/wiki/File:IP_options.png

Reply to "How to log failed login attempts?"

Investigate's form is very slow.

2
Cvsle1321 (talkcontribs)

When I enter a username in Investigate, it takes a very long time for the username to be recognized.

Dreamy Jazz (talkcontribs)

What version of MediaWiki are you running and what is your internet connection like? The username doesn't take too long to be recognised for me, but relies on an internet connection to find the suggestions.

Reply to "Investigate's form is very slow."

Compliance with European Union legislation ?

3
Nanash (talkcontribs)

In all European Union countries, automatic IP storing is subject to the RGPD. And can therefore only be carried out after explicit consent has been obtained from each user. Cf website of European commission.

Does this extension meet these conditions ?

Dreamy Jazz (talkcontribs)

To caveat this answer: I am not a lawyer. This answer if my personal understanding of this as a developer who only vaguely understands GDPR. I would suggest that if you need a concrete answer that you consult lawyers familiar with GDPR.


My personal opinion:

  • This is used on Wikimedia Foundation wikis (which includes Wikipedia) and therefore probably meets these requirements as lawyers for the foundation will have checked the requirements.
  • The data is only collected and then stored when the user performs an action that they should have to affirmatively perform (for example, making an edit). When this is done, the user is presented with text along the lines of By publishing changes, you agree to our Terms of Use. In this document is contained the information about the collection of IP addresses for abuse mitigation.

As such I would suggest that this extension meets the requirements as long as your wiki has a privacy policy / terms of use that a user is presented with when trying to edit. However, as I've said above, this is my opinion only and may be completely wrong.

Hopefully my comment is helpful.

Nanash (talkcontribs)

The fact that Wikifoundation is doing it is no guarantee of legality. Lots of "big websites" are in breach of the RGPD without worry as long as a legal complaint isn't lodged.

But yes, I suppose putting a clear warning in the "Term of Use" at account creation and editing should be ok.

Reply to "Compliance with European Union legislation ?"

Upgrade from 1.35→1.39 isn't creating cu_changes.cuc_actor?

8
204.237.89.128 (talkcontribs)

Just finished troubleshooting an odd condition where Special:RecentChanges completely stopped updating after an "upgrade" to MediaWiki 1.39, reinstalling the supposedly latest-and-greatest version of all installed extensions, including this one.

Debugging with LocalSettings.php settings: $wgDebugDumpSql = true; $wgDebugLogFile = "/var/log/mediawiki/debug-{$wgDBname}.log";

I'd see [DBQuery] attempts to add records to recentchanges, searchindex and the like; I'd also see an attempt to add a record to cu_changes. The latter attempt would fail because cuc_actor apparently does not exist; PHP would dump the call stack and then exit. The end result was no updates to Special:RecentChanges, Special:NewPages, Special:NewImages and possibly others.

Attempting

ALTER TABLE `cu_changes` ADD `cuc_actor` INT NOT NULL AFTER `cuc_title`;

and rebuilding (on a one-time basis) with rebuildrecentchanges.php seems to bring Special:RecentChanges back to life. I'm seeing this issue on multiple wikis and yes, that is despite running maintenance/update.php

Why is this happening? 204.237.89.128 23:22, 3 May 2023 (UTC)

Dreamy Jazz (talkcontribs)

What database type are you using?

The update path for the three different supported database types are different. However, all three seem to be working on a visual inspection (so I would need to know what database type you are running to try to re-produce).

Also what version of MediaWiki were you running before updating to 1.39?

204.237.51.14 (talkcontribs)

PHP 7.4.29 MariaDB 10.6.12

A direct jump from MediaWiki 1.35 to 1.39.3 using maintenance/update.php

Dreamy Jazz (talkcontribs)

Thanks. I aim to take a look at this in the next few days.

Dreamy Jazz (talkcontribs)

Haven't been able to take a further look at this due to IRL time pressures. May be able to look some point this week.

Lost Student (talkcontribs)

Chiming in to say I have had the same problem. I recently updated from 1.35. Here's my current setup:

Product Version
MediaWiki 1.39.4
PHP 7.4.33 (fpm-fcgi)
MariaDB 10.4.20-MariaDB-1:10.4.20+maria~buster-log
ICU 65.1
Lost Student (talkcontribs)

I was too hasty with my previous comment. I went back to the installation instructions and realized that I didn't properly follow the directive "If you have installed other extensions without running php maintenance/update.php, run that first." I guess at the time, since I was using all the same extensions before I upgraded from 1.35 to 1.39, I hadn't done this. In other words, I had run php maintenance/update.php, but I had not run it with the CheckUser extension disabled. Thus, I decided to:

  1. Disable the extension
  2. Run php maintenance/update.php
  3. Enable the extension
  4. Run php maintenance/update.php again

Lo and behold, everything is working just fine now. So that's mea culpa for not following instructions!

Dreamy Jazz (talkcontribs)

Good to hear that worked.

Reply to "Upgrade from 1.35→1.39 isn't creating cu_changes.cuc_actor?"
-libre-0 (talkcontribs)

I use Cloudflare on my site, is it possible to get real IP addresses with this tool?

Ciencia Al Poder (talkcontribs)
Reply to "Cloudflare"
Enix150 (talkcontribs)
201.53.12.98 (talkcontribs)

I get this error using SSH

"1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=InnoDB' at line 25 (localhost)".
wikirio@wikirio.com.br [~/public_html/extensions/CheckUser]# run php install.php
-jailshell: run: command not found
Mormegil (talkcontribs)

You are supposed to “run php install.php”, mind the formatting, :-) i.e. write just

wikirio@wikirio.com.br [~/public_html/extensions/CheckUser]# php install.php

without the “run”.

RobinHood70 (talkcontribs)

Is CheckUser supposed to log the IPs for every account creation or only some? We're having the issue right now of a spambot creating numerous accounts, but most are not appearing in the CheckUser tables, only the normal MediaWiki user creation logs.

RobinHood70 (talkcontribs)

Note: we solved this problem, and it's not a problem with the software. Our mobile servers inadvertently didn't have CheckUser installed.

93.104.9.62 (talkcontribs)

Is there a way to install this without access to phpMyAdmin and the command prompt? I can create new tables with SQLyog but that's it. If looked into the install.php and it seems that I can do that but I want to check first.

Jasper Deng (talkcontribs)

Download the SQL files mentioned under the section on installing without command prompt access. You basically need to create those tables according to those specifications.

188.174.48.11 (talkcontribs)

Thank you, everything worked fine and CheckUser is running now without problems.