Page MenuHomePhabricator

LegacyHandler.php: PHP Warning: Host lookup failed [-10002]: Unknown error -10002
Open, MediumPublicPRODUCTION ERROR

Description

Error

Request ID: XV609wpAAEoAAItTxNkAAADP
Request URL: zh.wikipedia.org/w/api.php...

message
[XV609wpAAEoAAItTxNkAAADP] /w/api.php?format=json&formatversion=2&errorformat=plaintext&action=query&redirects=&converttitles=&prop=extracts|pageimages|pageprops&exsentences=5&piprop=thumbnail|name&pilicense=any&explaintext=&pithumbsize=320&titles=%E8%A8%B1%E6%8C%AF%E5%BE%97&uselang=zh-tw   ErrorException from line 218 of /srv/mediawiki/php-1.34.0-wmf.19/includes/debug/logger/monolog/LegacyHandler.php: PHP Warning: Host lookup failed [-10002]: Unknown error -10002
trace
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array, array)
#1 /srv/mediawiki/php-1.34.0-wmf.19/includes/debug/logger/monolog/LegacyHandler.php(218): socket_sendto(resource, string, integer, integer, string, integer)
#2 /srv/mediawiki/php-1.34.0-wmf.19/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): MediaWiki\Logger\Monolog\LegacyHandler->write(array)
#3 /srv/mediawiki/php-1.34.0-wmf.19/vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php(35): Monolog\Handler\AbstractProcessingHandler->handle(array)
#4 /srv/mediawiki/php-1.34.0-wmf.19/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handler\WhatFailureGroupHandler->handle(array)
#5 /srv/mediawiki/php-1.34.0-wmf.19/vendor/monolog/monolog/src/Monolog/Logger.php(637): Monolog\Logger->addRecord(integer, string, array)
#6 /srv/mediawiki/php-1.34.0-wmf.19/includes/GlobalFunctions.php(1013): Monolog\Logger->info(string, array)
#7 /srv/mediawiki/php-1.34.0-wmf.19/includes/api/ApiMain.php(1691): wfDebugLog(string, string, string)
#8 /srv/mediawiki/php-1.34.0-wmf.19/includes/api/ApiMain.php(535): ApiMain->logRequest(double)
#9 /srv/mediawiki/php-1.34.0-wmf.19/includes/api/ApiMain.php(504): ApiMain->executeActionWithErrorHandling()
#10 /srv/mediawiki/php-1.34.0-wmf.19/api.php(86): ApiMain->execute()
#11 /srv/mediawiki/w/api.php(3): include(string)
#12 {main}
Impact

6 hits in the last hour, 7 hits in the last 24 hours, not seen before that.

Notes

Since it's not happening frequently not reverting the train, but blocking next week's train.

Event Timeline

Restricted Application added subscribers: Cosine02, Aklapper. · View Herald TranscriptAug 22 2019, 3:45 PM
zeljkofilipin triaged this task as Unbreak Now! priority.Aug 22 2019, 3:45 PM
Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptAug 22 2019, 3:46 PM
hashar added a subscriber: hashar.Aug 22 2019, 3:55 PM

Looking up for "Host lookup failed" over 7 days, there are 11 hits

mw1277 2
mw1279 2
mw1261 1
mw1262 1
mw1263 1
mw1264 1
mw1265 1
mw1276 1
mw1278 1

All near 15:30 UTC.

Messages

6 [{exception_id}] {exception_url} ErrorException from line 218 of /srv/mediawiki/php-1.34.0-wmf.19/includes/debug/logger/monolog/LegacyHandler.php: PHP Warning: Host lookup failed [-10002]: Unknown error -10002

3 [{exception_id}] {exception_url} ErrorException from line 47 of /srv/mediawiki/php-1.34.0-wmf.19/vendor/liuggio/statsd-php-client/src/Liuggio/StatsdClient/Sender/SocketSender.php: PHP Warning: Host lookup failed [-10002]: Unknown error -10002

2 [{exception_id}] {exception_url} ErrorException from line 47 of /srv/mediawiki/php-1.34.0-wmf.19/vendor/liuggio/statsd-php-client/src/Liuggio/StatsdClient/Sender/SocketSender.php: PHP Warning: socket_sendto(): Host lookup failed [-10002]: Host name look

My only guess is that DNS resolution failed for some reason.

hashar closed this task as Resolved.Aug 22 2019, 3:56 PM
Jdforrester-WMF changed the task status from Resolved to Invalid.Aug 26 2019, 2:46 PM
Jdforrester-WMF added a subscriber: Jdforrester-WMF.

That'd be Invalid rather than Resolved then. ;-)

Restricted Application removed a subscriber: Liuxinyu970226. · View Herald TranscriptAug 26 2019, 2:46 PM
mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:05 PM
Krinkle added a subscriber: Krinkle.EditedSep 3 2020, 5:25 PM

Updating projects tags, workboards and trace to match T255578:

exception.trace
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.35.0-wmf.36/includes/debug/logger/monolog/LegacyHandler.php(217): socket_sendto(resource, string, integer, integer, string, integer)
#2 /srv/mediawiki/php-1.35.0-wmf.36/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): MediaWiki\Logger\Monolog\LegacyHandler->write(array)
#3 /srv/mediawiki/php-1.35.0-wmf.36/vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php(35): Monolog\Handler\AbstractProcessingHandler->handle(array)
#4 /srv/mediawiki/php-1.35.0-wmf.36/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handler\WhatFailureGroupHandler->handle(array)
#5 /srv/mediawiki/php-1.35.0-wmf.36/vendor/monolog/monolog/src/Monolog/Logger.php(642): Monolog\Logger->addRecord(integer, string, array)
#6 /srv/mediawiki/php-1.35.0-wmf.36/includes/GlobalFunctions.php(998): Monolog\Logger->info(string, array)
#7 /srv/mediawiki/php-1.35.0-wmf.36/includes/api/ApiMain.php(1688): wfDebugLog(string, string, string)
#8 /srv/mediawiki/php-1.35.0-wmf.36/includes/api/ApiMain.php(527): ApiMain->logRequest(double)
#9 /srv/mediawiki/php-1.35.0-wmf.36/includes/api/ApiMain.php(496): ApiMain->executeActionWithErrorHandling()
#10 /srv/mediawiki/php-1.35.0-wmf.36/api.php(84): ApiMain->execute()
#11 /srv/mediawiki/w/api.php(3): require(string)
#12 {main}