Page MenuHomePhabricator

User submitted bot jobs not working (IABot API action=submitbotjob)
Closed, ResolvedPublic

Description

Hello -

FA Rotbot stopped working around the first of June.

https://tools.wmflabs.org/iabot/index.php?page=user&id=51425967

IABOt API accepts the job request and appears to work, but with empty articles/links processed.

Test run 13 pages:

/usr/bin/timeout 40s /usr/bin/wget --save-cookies="/data/project/farotbot/bin/cookieiabget" --load-cookies="/data/project/farotbot/bin/cookieiabget" --ignore-length --user-agent="http://en.wikipedia.org/wiki/User:FARotBot" --no-check-certificate --tries=5 --timeout=120 --waitretry=60 --retry-connrefused  --post-file='/data/project/farotbot/data/rb-062315444235659/postfile.wget' --header='Content-Type: application/x-www-form-urlencoded' --header='Authorization: OAuth oauth_consumer_key="c8cac34d6d3f004edca7081db9617c48", oauth_token="e8afe65522b1a54ae4ee961a99523875", oauth_version="1.0", oauth_nonce="8fe1a01858904e7dbc42e05c5f86e526", oauth_timestamp="1529768694", oauth_signature_method="HMAC-SHA1", oauth_signature="q50Bxk5WOruaMrXnuhKNbXe7Pzs%3D"' -q -O- 'https://tools.wmflabs.org/iabot/api.php'
{
    "result": "success",
    "id": "2093",
    "status": "queued",
    "requestedby": "FA RotBot",
    "targetwiki": "enwiki",
    "queued": "2018-06-23 15:44:54",
    "lastupdate": "0000-00-00 00:00:00",
    "totalpages": "13",
    "completedpages": "0",
    "runstats": {
        "linksanalyzed": 0,
        "linksarchived": 0,
        "linksrescued": 0,
        "linkstagged": 0,
        "pagesModified": 0,
        "pagesanalyzed": 0,
        "waybacksadded": 0,
        "othersadded": 0
    },
    "loggedon": true,
    "username": "FA RotBot",
    "checksum": "0c3f5eaf9b9698ff609cd22ba3db6e35",
    "csrf": "c87b128d605096dc8181dfd173a47bc6",
    "servetime": 0.114
}

The `postfile.wget```

action=submitbotjob&token=c87b128d605096dc8181dfd173a47bc6&checksum=aeba6092a66d6e118e86cf4495972e4e&pa
gelist=List%20of%20Hot%20Country%20Singles%20%26%20Tracks%20number%20ones%20of%202000%0A1994%20College%
20Baseball%20All%2DAmerica%20Team%0A2000%20Sri%20Lanka%20cyclone%0AList%20of%20Hot%20Country%20Singles%
20%26%20Tracks%20number%20ones%20of%202001%0AList%20of%20Hot%20Country%20Singles%20%26%20Tracks%20numbe
r%20ones%20of%202002%0ADonald%20Trump%0AList%20of%20Hot%20Country%20Singles%20%26%20Tracks%20number%20o
nes%20of%202003%0AList%20of%20songs%20recorded%20by%20Steps%0AThe%20Tempest%0AAvatar%3A%20The%20Last%20
Airbender%20%28season%202%29%0AList%20of%20Knight%27s%20Cross%20of%20the%20Iron%20Cross%20recipients%20
%28A%29%0AList%20of%20tornadoes%20in%20the%201999%20Oklahoma%20tornado%20outbreak%0AUnited%20States

Job 2093:

https://tools.wmflabs.org/iabot/index.php?page=viewjob&id=2093

Output of `getbotjob&id=2093```

/usr/bin/timeout 40s /usr/bin/wget --save-cookies="/data/project/farotbot/bin/cookieiabget" --load-cookies="/data/project/farotbot/bin/cookieiabget" --ignore-length --user-agent="http://en.wikipedia.org/wiki/User:FARotBot" --no-check-certificate --tries=5 --timeout=120 --waitretry=60 --retry-connrefused  --post-data='action=getbotjob&id=2093' --header='Content-Type: application/x-www-form-urlencoded' --header='Authorization: OAuth oauth_consumer_key="c8cac34d6d3f004edca7081db9617c48", oauth_token="e8afe65522b1a54ae4ee961a99523875", oauth_version="1.0", oauth_nonce="e6c4cd8a7e86af5a10fb223000c5f4e6", oauth_timestamp="1529770120", oauth_signature_method="HMAC-SHA1", oauth_signature="O4HRS1Es6SST6KUfl%2BuziVrxh9g%3D"' -q -O- 'https://tools.wmflabs.org/iabot/api.php'
{
    "id": "2093",
    "status": "complete",
    "requestedby": "FA RotBot",
    "targetwiki": "enwiki",
    "queued": "2018-06-23 15:44:54",
    "lastupdate": "2018-06-23 15:45:00",
    "totalpages": "13",
    "completedpages": "13",
    "runstats": {
        "linksanalyzed": 0,
        "linksarchived": 0,
        "linksrescued": 0,
        "linkstagged": 0,
        "pagesModified": 0,
        "pagesanalyzed": 0,
        "waybacksadded": 0,
        "othersadded": 0,
        "runstart": 1529768700
    },
    "loggedon": true,
    "username": "FA RotBot",
    "checksum": "0c3f5eaf9b9698ff609cd22ba3db6e35",
    "csrf": "c87b128d605096dc8181dfd173a47bc6",
    "servetime": 0.0628
}

The "List of articles to work on" is empty with 0 links processed.

The last working run was Job 1928:

https://tools.wmflabs.org/iabot/index.php?page=viewjob&id=1928


Another editor reported on the FA Rotbot talk page that all user submitted jobs are having problems. Changed the ticket title to reflect.

Event Timeline

Restricted Application added a subscriber: Cyberpower678. · View Herald Transcript
Green_Cardamom renamed this task from FA Rot bot stopped working (re: IABot API) to User submitted bot jobs not working.Jun 23 2018, 4:54 PM
Green_Cardamom renamed this task from User submitted bot jobs not working to User submitted bot jobs not working (IABot API action=submitbotjob).
Green_Cardamom updated the task description. (Show Details)
Vvjjkkii renamed this task from User submitted bot jobs not working (IABot API action=submitbotjob) to veaaaaaaaa.Jul 1 2018, 1:02 AM
Vvjjkkii removed Cyberpower678 as the assignee of this task.
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
JJMC89 renamed this task from veaaaaaaaa to User submitted bot jobs not working (IABot API action=submitbotjob).Jul 1 2018, 4:05 AM
JJMC89 assigned this task to Cyberpower678.
JJMC89 raised the priority of this task from High to Needs Triage.
JJMC89 updated the task description. (Show Details)