[Pywikipedia-bugs] [Maniphest] [Commented On] T109929: internal_api_error_BadMethodCallException: [xxx] Exception Caught: Call to a member function getNames() on a non-object (NULL)
Anomie added a comment. @Joe: FYI, you should be able to grep for 'Call to a member function getNames() on a non-object (NULL)' in /a/mw-log/exception.log on fluorine if you need to look for instances of this issue. The log lines include the host, wiki (dbname), and query. TASK DETAIL https://phabricator.wikimedia.org/T109929 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Joe, Anomie Cc: Matanya, Anomie, Krenair, Aklapper, pywikibot-bugs-list, jayvdb, RobH, mark, faidon, fgiunchedi, Joe, Dzahn, jeremyb, Legoktm, greg, chasemp, Malyacko ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T109929: internal_api_error_BadMethodCallException: [xxx] Exception Caught: Call to a member function getNames() on a non-object (NULL)
Joe added a comment. @jayvdb thanks, I am trying to extract the exact request that pywikibot tests do - just to verify better if a simple HHVM restart fixes the issue or if it needs a cache wipe. TASK DETAIL https://phabricator.wikimedia.org/T109929 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Joe Cc: Matanya, Anomie, Krenair, Aklapper, pywikibot-bugs-list, jayvdb, RobH, mark, faidon, fgiunchedi, Joe, Dzahn, jeremyb, Legoktm, greg, chasemp, Malyacko ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T109929: internal_api_error_BadMethodCallException: [xxx] Exception Caught: Call to a member function getNames() on a non-object (NULL)
jayvdb added a comment. @joe, `tests.api_tests.TestParamInfo.test_attributes` and other failing tests are always fetching paraminfo for multiple modules, similar to the request @Anomie mentioned. mw1144 is the main host with a problem at the moment. TASK DETAIL https://phabricator.wikimedia.org/T109929 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Joe, jayvdb Cc: Matanya, Anomie, Krenair, Aklapper, pywikibot-bugs-list, jayvdb, RobH, mark, faidon, fgiunchedi, Joe, Dzahn, jeremyb, Legoktm, greg, chasemp, Malyacko ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T109929: internal_api_error_BadMethodCallException: [xxx] Exception Caught: Call to a member function getNames() on a non-object (NULL)
Joe added a comment. I just restarted HHVM on mw1144, and the results of a failing query are good again. I think this is yet another case of stat_cache having some hiccups in HHVM. I will downgrade this to Normal priority for now as no host should spit any of such errors anymore. TASK DETAIL https://phabricator.wikimedia.org/T109929 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Joe Cc: Matanya, Anomie, Krenair, Aklapper, pywikibot-bugs-list, jayvdb, RobH, mark, faidon, fgiunchedi, Joe, Dzahn, jeremyb, Legoktm, greg, chasemp, Malyacko ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T109929: internal_api_error_BadMethodCallException: [xxx] Exception Caught: Call to a member function getNames() on a non-object (NULL)
jayvdb added a comment. This can be reproduced with the following $ (while true; do rm -rf tests/apicache; python -m unittest -v tests.api_tests.TestParamInfo.test_attributes ; done) 21 | egrep '^(OK|APIMWException)' (which effectively means that it can probably also be reproduced with a single wget) It can be roughly 1 in ~50 requests that fails, but sometimes it is 1 in ~20, and once I've seen it fail 2 times out of three requests. Load balancing at work no doubt. Anyway, it doesnt seem to matter which wiki is accessed; all failures are currently served by mw1144. TASK DETAIL https://phabricator.wikimedia.org/T109929 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: Anomie, Krenair, Aklapper, pywikibot-bugs-list, jayvdb, Joe, jeremyb, Legoktm, greg, Malyacko ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T109929: internal_api_error_BadMethodCallException: [xxx] Exception Caught: Call to a member function getNames() on a non-object (NULL)
jayvdb added a comment. Another one on en.wikipedia https://travis-ci.org/jayvdb/pywikibot-core/jobs/76836995#L957 TASK DETAIL https://phabricator.wikimedia.org/T109929 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: Anomie, Krenair, Aklapper, pywikibot-bugs-list, jayvdb, Joe, jeremyb, Legoktm, greg, Malyacko ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T109929: internal_api_error_BadMethodCallException: [xxx] Exception Caught: Call to a member function getNames() on a non-object (NULL)
jayvdb added a comment. en.wp, now with a servedby [servedby:mw1144] internal_api_error_BadMethodCallException: [be58faaa] Exception Caught: Call to a member function getNames() on a non-object (NULL) https://travis-ci.org/jayvdb/pywikibot-core/jobs/76844066#L4443 TASK DETAIL https://phabricator.wikimedia.org/T109929 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: Anomie, Krenair, Aklapper, pywikibot-bugs-list, jayvdb, Joe, jeremyb, Legoktm, greg, Malyacko ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T109929: internal_api_error_BadMethodCallException: [xxx] Exception Caught: Call to a member function getNames() on a non-object (NULL)
jayvdb added a comment. Now one on ar.wikt https://travis-ci.org/jayvdb/pywikibot-core/jobs/76913131#L4350 TASK DETAIL https://phabricator.wikimedia.org/T109929 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: Anomie, Krenair, Aklapper, pywikibot-bugs-list, jayvdb, Joe, jeremyb, Legoktm, greg, Malyacko ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T109929: internal_api_error_BadMethodCallException: [xxx] Exception Caught: Call to a member function getNames() on a non-object (NULL)
Anomie added a subscriber: Anomie. Anomie added a comment. I could reproduce this by directing copies of the erroring queries to mw1230, mw1147, and mw1200; it didn't happen with the same queries directed to different hosts. Nothing in the code looks suspect. I tried using some live hacks on those hosts to see what was going on. The $module-getFinalParams() call from ApiParamInfo was returning the params for ApiMain instead of for the module in question for some unknown reason. But as soon as I touched ApiBase.php the bug was suddenly fixed, which makes me suspect some sort of HHVM code-cache corruption. I haven't touched mw1200 in case someone who knows more about HHVM wants to look into it. To test it from terbium, use this command: curl -H Host: www.wikidata.org 'http://mw1200.eqiad.wmnet/w/api.php?action=paraminfomodules=wbremovequalifiers%7Cwbremovereferences%7Cwbsearchentities%7Cwbsetaliases%7Cwbsetclaim%7Cwbsetclaimvalue%7Cwbsetdescription%7Cwbsetlabel%7Cwbsetqualifier%7Cwbsetreference%7Cwbsetsitelink%7Cwbsgetsuggestionsmaxlag=5format=json' TASK DETAIL https://phabricator.wikimedia.org/T109929 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Anomie Cc: Anomie, Krenair, Aklapper, pywikibot-bugs-list, jayvdb, Joe, jeremyb, Legoktm, greg, Malyacko ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T109929: internal_api_error_BadMethodCallException: [xxx] Exception Caught: Call to a member function getNames() on a non-object (NULL)
jayvdb added a comment. Another one on zh.wikisource https://travis-ci.org/jayvdb/pywikibot-core/jobs/76821997#L5113 TASK DETAIL https://phabricator.wikimedia.org/T109929 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: Anomie, Krenair, Aklapper, pywikibot-bugs-list, jayvdb, Joe, jeremyb, Legoktm, greg, Malyacko ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T109929: internal_api_error_BadMethodCallException: [xxx] Exception Caught: Call to a member function getNames() on a non-object (NULL)
jayvdb added a comment. Another one on zh.wikisource internal_api_error_BadMethodCallException: [279574a2] Exception Caught: Call to a member function getNames() on a non-object (NULL) https://travis-ci.org/jayvdb/pywikibot-core/jobs/76729814#L4735 TASK DETAIL https://phabricator.wikimedia.org/T109929 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: Krenair, Aklapper, pywikibot-bugs-list, jayvdb, Anomie, Legoktm, greg, Malyacko ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs