Page MenuHomePhabricator

Account disabled
Open, Needs TriagePublicBUG REPORT

Description

My AuusieBot job Stubs has not run since 1 May. Although it is running from Toolforge, it gets the following error:

Save failed: (blocked): Your username or IP address has been automatically blocked by MediaWiki. The reason given is: :__NOEDITSECTION____NOTOC__ You are currently unable to edit Wikipedia. '''''You are still able to view pages''', but you are not currently able to edit, move, or create them.'' Editing without an account from $1 is disabled as it is a [[private IP]] range. This is probably a result of a problem with your Internet connection. You may be able to edit if you [[Special:UserLogin|log in]] or [[Special:CreateAccount|create an account]]. * Start of block: 15:26, 17 May 2026 * Expiration of block: no expiry set * Intended blockee: 172.16.0.103 Your current IP address is 172.16.0.103. Please include all above details in any queries you make

Please investigate and allow the Bot job to run.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

What software framework do you use? Also please use bot password or OAuth to login to your bot (not ordinary password), and make sure it is still valid.

The Bot is using the toolforge framework with the dotnet packbuild. I have several other bots using the same framework without problems. The 172.16.*.* IP range is used by docker for containers. The job is a cron job run by Toolforge.

The password is a Bot password and is valid.

You've not given enough information for people to really be able to do any investigation.

What account username? What wiki(s)?

Was the account definitely logged in when it attempted that save?

As the message says, this is an onwiki block, which does look to be new, but it may just be a renewal of one that expired.

Having said that, as per https://en.wikipedia.org/wiki/Special:ListGroupRights, a bot account (for example) does have ipblock-exempt....

This is the standard software-configured soft block on WMCS ranges that's been in place for a while.

@Hawkeye7 what makes you think this is an issue with Toolforge infrastructure, rather than an issue with your tool trying to edit while logged out?

The tool is milhistbot-stubs running against the English language Wikipedia. The Bot runs under the Bot account AussieBot, and the user and password have been verified as valid.

It always logs on. So if it was not logged on, then a loss of session must have occurred, which would indeed be an issue with the Toolforge infrastructure.

So let's do a one-off run:

tools.milhistbot@tools-bastion-15:~$ bin/runit-stubs -f "Paul_Weissmann" -v
+---------------+-----------------------------------------------------------------+
| Job name:     | stubs2                                                          |
+---------------+-----------------------------------------------------------------+
| Command:      | web  -f Paul_Weissmann -v                                       |
+---------------+-----------------------------------------------------------------+
| Job type:     | one-off                                                         |
+---------------+-----------------------------------------------------------------+
| Image:        | tool-milhistbot/stubs:latest                                    |
+---------------+-----------------------------------------------------------------+
| Port:         | N/A                                                             |
+---------------+-----------------------------------------------------------------+
| File log:     | no                                                              |
+---------------+-----------------------------------------------------------------+
| Output log:   |                                                                 |
+---------------+-----------------------------------------------------------------+
| Error log:    |                                                                 |
+---------------+-----------------------------------------------------------------+
| Emails:       | none                                                            |
+---------------+-----------------------------------------------------------------+
| Resources:    | default                                                         |
+---------------+-----------------------------------------------------------------+
| Replicas:     | N/A                                                             |
+---------------+-----------------------------------------------------------------+
| Mounts:       | all                                                             |
+---------------+-----------------------------------------------------------------+
| Retry:        | no                                                              |
+---------------+-----------------------------------------------------------------+
| Timeout:      | no                                                              |
+---------------+-----------------------------------------------------------------+
| Health check: | N/A                                                             |
+---------------+-----------------------------------------------------------------+
| Status:       | Running for 1s                                                  |
+---------------+-----------------------------------------------------------------+
| Hints:        | Last run at 2026-05-19T00:28:42Z. Pod in 'Pending' phase. State |
|               | 'waiting'. Reason 'ContainerCreating'.                          |
+---------------+-----------------------------------------------------------------+
+---------------+----------------------------------------------------------------------+
| Job name:     | stubs2                                                               |
+---------------+----------------------------------------------------------------------+
| Command:      | web  -f Paul_Weissmann -v                                            |
+---------------+----------------------------------------------------------------------+
| Job type:     | one-off                                                              |
+---------------+----------------------------------------------------------------------+
| Image:        | tool-milhistbot/stubs:latest                                         |
+---------------+----------------------------------------------------------------------+
| Port:         | N/A                                                                  |
+---------------+----------------------------------------------------------------------+
| File log:     | no                                                                   |
+---------------+----------------------------------------------------------------------+
| Output log:   |                                                                      |
+---------------+----------------------------------------------------------------------+
| Error log:    |                                                                      |
+---------------+----------------------------------------------------------------------+
| Emails:       | none                                                                 |
+---------------+----------------------------------------------------------------------+
| Resources:    | default                                                              |
+---------------+----------------------------------------------------------------------+
| Replicas:     | N/A                                                                  |
+---------------+----------------------------------------------------------------------+
| Mounts:       | all                                                                  |
+---------------+----------------------------------------------------------------------+
| Retry:        | no                                                                   |
+---------------+----------------------------------------------------------------------+
| Timeout:      | no                                                                   |
+---------------+----------------------------------------------------------------------+
| Health check: | N/A                                                                  |
+---------------+----------------------------------------------------------------------+
| Status:       | Completed                                                            |
+---------------+----------------------------------------------------------------------+
| Hints:        | Last run at 2026-05-19T00:28:42Z. Pod in 'Succeeded' phase. State    |
|               | 'terminated'. Reason 'Completed'. Started at '2026-05-19T00:28:45Z'. |
|               | Finished at '2026-05-19T00:28:50Z'. Exit code '0'.                   |
+---------------+----------------------------------------------------------------------+

By looking at Talk:Paul Weissmann we can see that it edited the article successfully.

The Bot logs on and edits without issue.

So why is this error being reported? (I note from the logs that it does not occur on every run.)

The tool is milhistbot-stubs running against the English language Wikipedia. The Bot runs under the Bot account AussieBot, and the user and password have been verified as valid.

It always logs on. So if it was not logged on, then a loss of session must have occurred, which would indeed be an issue with the Toolforge infrastructure.

Logs on at the start of the job? Or before every request/save?

If you're not already, make sure you use assert=user and/or assertuser=Username as appropriate.

So why is this error being reported? (I note from the logs that it does not occur on every run.)

Things can go wrong. Sessions can be lost etc.

@Hawkeye7: Could you please answer the last comments? Thanks in advance!

The bot logs on at the start of the run, and stays logged on for the duration of the run. I do not know why it would become logged out. I could check that the session is still current before saving and request another token or log in again.