Page MenuHomePhabricator

Check 'Check endpoints for mwdebug2002.codfw.wmnet' failed: /wiki/{title} (Main Page) is WARNING: Test Main Page responds with unexpected body
Closed, ResolvedPublic

Description

Today during EU SWAT:

[zfilipin@deploy1001 mediawiki-staging (master u=)]$ scap sync-file wmf-config/InitialiseSettings.php 'SWAT: [[gerrit:465602|Permissions changes on itwikibooks (T206447)]]'
...
11:26:15 Check 'Check endpoints for mwdebug2002.codfw.wmnet' failed: /wiki/{title} (Main Page) is WARNING: Test Main Page responds with unexpected body: array(59) {
  ["wgCanonicalNamespace"]=>
  string(2) """"
  ["wgCanonicalSpecialPageName"]=>
  string(5) "false"
  ["wgNamespaceNumber"]=>
  string(9) "GOT IT: 0"
  ["wgPageName"]=>
  string(11) ""Main_Page""
  ["wgTitle"]=>
  string(11) ""Main Page""
  ["wgCurRevisionId"]=>
  string(9) "847600508"
  ["wgRevisionId"]=>
  string(9) "847600508"
  ["wgArticleId"]=>
  string(8) "15580374"
  ["wgIsArticle"]=>
  string(4) "true"
  ["wgIsRedirect"]=>
  string(5) "false"
  ["wgAction"]=>
  string(6) ""view""
  ["wgUserName"]=>
  string(4) "null"
  ["wgUserGroups"]=>
  array(1) {
    [0]=>
    string(3) ""*""
  }
  ["wgCategories"]=>
  array(0) {
  }
  ["wgBreakFrames"]=>
  string(5) "false"
  ["wgPageContentLanguage"]=>
  string(4) ""en""
  ["wgPageContentModel"]=>
  string(10) ""wikitext""
  ["wgSeparatorTransformTable"]=>
  array(2) {
    [0]=>
    string(2) """"
    [1]=>
    string(2) """"
  }
  ["wgDigitTransformTable"]=>
  array(2) {
    [0]=>
    string(2) """"
    [1]=>
    string(2) """"
  }
  ["wgDefaultDateFormat"]=>
  string(5) ""dmy""
  ["wgMonthNames"]=>
  array(13) {
    [0]=>
    string(2) """"
    [1]=>
    string(9) ""January""
    [2]=>
    string(10) ""February""
    [3]=>
    string(7) ""March""
    [4]=>
    string(7) ""April""
    [5]=>
    string(5) ""May""
    [6]=>
    string(6) ""June""
    [7]=>
    string(6) ""July""
    [8]=>
    string(8) ""August""
    [9]=>
    string(11) ""September""
    [10]=>
    string(9) ""October""
    [11]=>
    string(10) ""November""
    [12]=>
    string(10) ""December""
  }
  ["wgMonthNamesShort"]=>
  array(13) {
    [0]=>
    string(2) """"
    [1]=>
    string(5) ""Jan""
    [2]=>
    string(5) ""Feb""
    [3]=>
    string(5) ""Mar""
    [4]=>
    string(5) ""Apr""
    [5]=>
    string(5) ""May""
    [6]=>
    string(5) ""Jun""
    [7]=>
    string(5) ""Jul""
    [8]=>
    string(5) ""Aug""
    [9]=>
    string(5) ""Sep""
    [10]=>
    string(5) ""Oct""
    [11]=>
    string(5) ""Nov""
    [12]=>
    string(5) ""Dec""
  }
  ["wgRelevantPageName"]=>
  string(11) ""Main_Page""
  ["wgRelevantArticleId"]=>
  string(8) "15580374"
  ["wgRequestId"]=>
  string(26) ""W73h1QrAEEIAAGflmBIAAAAN""
  ["wgCSPNonce"]=>
  string(5) "false"
  ["wgIsProbablyEditable"]=>
  string(5) "false"
  ["wgRelevantPageIsProbablyEditable"]=>
  string(5) "false"
  ["wgRestrictionEdit"]=>
  array(1) {
    [0]=>
    string(7) ""sysop""
  }
  ["wgRestrictionMove"]=>
  array(1) {
    [0]=>
    string(7) ""sysop""
  }
  ["wgIsMainPage"]=>
  string(4) "true"
  ["wgFlaggedRevsParams"]=>
  string(11) "{"tags":{}}"
  ["wgStableRevisionId"]=>
  string(4) "null"
  ["wgCategoryTreePageCategoryOptions"]=>
  string(72) ""{\"mode\":0,\"hideprefix\":20,\"showcount\":true,\"namespaces\":false}""
  ["wgWikiEditorEnabledModules"]=>
  array(0) {
  }
  ["wgBetaFeaturesFeatures"]=>
  array(0) {
  }
  ["wgMediaViewerOnClick"]=>
  string(4) "true"
  ["wgMediaViewerEnabledByDefault"]=>
  string(4) "true"
  ["wgPopupsShouldSendModuleToUser"]=>
  string(4) "true"
  ["wgPopupsConflictsWithNavPopupGadget"]=>
  string(5) "false"
  ["wgVisualEditor"]=>
  array(5) {
    ["pageLanguageCode"]=>
    string(4) ""en""
    ["pageLanguageDir"]=>
    string(5) ""ltr""
    ["pageVariantFallbacks"]=>
    string(4) ""en""
    ["usePageImages"]=>
    string(4) "true"
    ["usePageDescriptions"]=>
    string(4) "true"
  }
  ["wgMFExpandAllSectionsUserOption"]=>
  string(4) "true"
  ["wgMFEnableFontChanger"]=>
  string(4) "true"
  ["wgMFDisplayWikibaseDescriptions"]=>
  array(4) {
    ["search"]=>
    string(4) "true"
    ["nearby"]=>
    string(4) "true"
    ["watchlist"]=>
    string(4) "true"
    ["tagline"]=>
    string(5) "false"
  }
  ["wgRelatedArticles"]=>
  string(4) "null"
  ["wgRelatedArticlesUseCirrusSearch"]=>
  string(4) "true"
  ["wgRelatedArticlesOnlyUseCirrusSearch"]=>
  string(5) "false"
  ["wgULSCurrentAutonym"]=>
  string(9) ""English""
  ["wgNoticeProject"]=>
  string(11) ""wikipedia""
  ["wgCentralNoticeCookiesToDelete"]=>
  array(0) {
  }
  ["wgCentralNoticeCategoriesUsingLegacy"]=>
  array(2) {
    [0]=>
    string(13) ""Fundraising""
    [1]=>
    string(13) ""fundraising""
  }
  ["wgWikibaseItemId"]=>
  string(7) ""Q5296""
  ["wgScoreNoteLanguages"]=>
  array(12) {
    ["arabic"]=>
    string(44) ""\u0627\u0644\u0639\u0631\u0628\u064a\u0629""
    ["catalan"]=>
    string(13) ""catal\u00e0""
    ["deutsch"]=>
    string(9) ""Deutsch""
    ["english"]=>
    string(9) ""English""
    ["espanol"]=>
    string(14) ""espa\u00f1ol""
    ["italiano"]=>
    string(10) ""italiano""
    ["nederlands"]=>
    string(12) ""Nederlands""
    ["norsk"]=>
    string(7) ""norsk""
    ["portugues"]=>
    string(16) ""portugu\u00eas""
    ["suomi"]=>
    string(7) ""suomi""
    ["svenska"]=>
    string(9) ""svenska""
    ["vlaams"]=>
    string(12) ""West-Vlams""
  }
  ["wgScoreDefaultNoteLanguage"]=>
  string(12) ""nederlands""
  ["wgCentralAuthMobileDomain"]=>
  string(5) "false"
  ["wgCodeMirrorEnabled"]=>
  string(4) "true"
  ["wgVisualEditorToolbarScrollOffset"]=>
  string(9) "GOT IT: 0"
  ["wgVisualEditorUnsupportedEditParams"]=>
  array(3) {
    [0]=>
    string(6) ""undo""
    [1]=>
    string(11) ""undoafter""
    [2]=>
    string(12) ""veswitched""
  }
  ["wgEditSubmitButtonLabelPublish"]=>
  string(4) "true"
}
 != /"wgPageName":"Main_Page"/; /wiki/{title} (Special Version) is WARNING: Test Special Version responds with unexpected body: array(55) {
  ["wgCanonicalNamespace"]=>
  string(9) ""Special""
  ["wgCanonicalSpecialPageName"]=>
  string(9) ""Version""
  ["wgNamespaceNumber"]=>
  string(2) "-1"
  ["wgPageName"]=>
  string(17) ""Special:Version""
  ["wgTitle"]=>
  string(9) ""Version""
  ["wgCurRevisionId"]=>
  string(9) "GOT IT: 0"
  ["wgRevisionId"]=>
  string(9) "GOT IT: 0"
  ["wgArticleId"]=>
  string(9) "GOT IT: 0"
  ["wgIsArticle"]=>
  string(5) "false"
  ["wgIsRedirect"]=>
  string(5) "false"
  ["wgAction"]=>
  string(6) ""view""
  ["wgUserName"]=>
  string(4) "null"
  ["wgUserGroups"]=>
  array(1) {
    [0]=>
    string(3) ""*""
  }
  ["wgCategories"]=>
  array(0) {
  }
  ["wgBreakFrames"]=>
  string(5) "false"
  ["wgPageContentLanguage"]=>
  string(4) ""en""
  ["wgPageContentModel"]=>
  string(10) ""wikitext""
  ["wgSeparatorTransformTable"]=>
  array(2) {
    [0]=>
    string(2) """"
    [1]=>
    string(2) """"
  }
  ["wgDigitTransformTable"]=>
  array(2) {
    [0]=>
    string(2) """"
    [1]=>
    string(2) """"
  }
  ["wgDefaultDateFormat"]=>
  string(5) ""dmy""
  ["wgMonthNames"]=>
  array(13) {
    [0]=>
    string(2) """"
    [1]=>
    string(9) ""January""
    [2]=>
    string(10) ""February""
    [3]=>
    string(7) ""March""
    [4]=>
    string(7) ""April""
    [5]=>
    string(5) ""May""
    [6]=>
    string(6) ""June""
    [7]=>
    string(6) ""July""
    [8]=>
    string(8) ""August""
    [9]=>
    string(11) ""September""
    [10]=>
    string(9) ""October""
    [11]=>
    string(10) ""November""
    [12]=>
    string(10) ""December""
  }
  ["wgMonthNamesShort"]=>
  array(13) {
    [0]=>
    string(2) """"
    [1]=>
    string(5) ""Jan""
    [2]=>
    string(5) ""Feb""
    [3]=>
    string(5) ""Mar""
    [4]=>
    string(5) ""Apr""
    [5]=>
    string(5) ""May""
    [6]=>
    string(5) ""Jun""
    [7]=>
    string(5) ""Jul""
    [8]=>
    string(5) ""Aug""
    [9]=>
    string(5) ""Sep""
    [10]=>
    string(5) ""Oct""
    [11]=>
    string(5) ""Nov""
    [12]=>
    string(5) ""Dec""
  }
  ["wgRelevantPageName"]=>
  string(17) ""Special:Version""
  ["wgRelevantArticleId"]=>
  string(9) "GOT IT: 0"
  ["wgRequestId"]=>
  string(26) ""W73h1QrAEEIAAGflmBMAAAAS""
  ["wgCSPNonce"]=>
  string(5) "false"
  ["wgIsProbablyEditable"]=>
  string(5) "false"
  ["wgRelevantPageIsProbablyEditable"]=>
  string(5) "false"
  ["wgFlaggedRevsParams"]=>
  string(11) "{"tags":{}}"
  ["wgStableRevisionId"]=>
  string(4) "null"
  ["wgCategoryTreePageCategoryOptions"]=>
  string(72) ""{\"mode\":0,\"hideprefix\":20,\"showcount\":true,\"namespaces\":false}""
  ["wgWikiEditorEnabledModules"]=>
  array(0) {
  }
  ["wgBetaFeaturesFeatures"]=>
  array(0) {
  }
  ["wgMediaViewerOnClick"]=>
  string(4) "true"
  ["wgMediaViewerEnabledByDefault"]=>
  string(4) "true"
  ["wgPopupsShouldSendModuleToUser"]=>
  string(4) "true"
  ["wgPopupsConflictsWithNavPopupGadget"]=>
  string(5) "false"
  ["wgVisualEditor"]=>
  array(5) {
    ["pageLanguageCode"]=>
    string(4) ""en""
    ["pageLanguageDir"]=>
    string(5) ""ltr""
    ["pageVariantFallbacks"]=>
    string(4) ""en""
    ["usePageImages"]=>
    string(4) "true"
    ["usePageDescriptions"]=>
    string(4) "true"
  }
  ["wgMFExpandAllSectionsUserOption"]=>
  string(4) "true"
  ["wgMFEnableFontChanger"]=>
  string(4) "true"
  ["wgMFDisplayWikibaseDescriptions"]=>
  array(4) {
    ["search"]=>
    string(4) "true"
    ["nearby"]=>
    string(4) "true"
    ["watchlist"]=>
    string(4) "true"
    ["tagline"]=>
    string(5) "false"
  }
  ["wgRelatedArticles"]=>
  string(4) "null"
  ["wgRelatedArticlesUseCirrusSearch"]=>
  string(4) "true"
  ["wgRelatedArticlesOnlyUseCirrusSearch"]=>
  string(5) "false"
  ["wgULSCurrentAutonym"]=>
  string(9) ""English""
  ["wgNoticeProject"]=>
  string(11) ""wikipedia""
  ["wgCentralNoticeCookiesToDelete"]=>
  array(0) {
  }
  ["wgCentralNoticeCategoriesUsingLegacy"]=>
  array(2) {
    [0]=>
    string(13) ""Fundraising""
    [1]=>
    string(13) ""fundraising""
  }
  ["wgScoreNoteLanguages"]=>
  array(12) {
    ["arabic"]=>
    string(44) ""\u0627\u0644\u0639\u0631\u0628\u064a\u0629""
    ["catalan"]=>
    string(13) ""catal\u00e0""
    ["deutsch"]=>
    string(9) ""Deutsch""
    ["english"]=>
    string(9) ""English""
    ["espanol"]=>
    string(14) ""espa\u00f1ol""
    ["italiano"]=>
    string(10) ""italiano""
    ["nederlands"]=>
    string(12) ""Nederlands""
    ["norsk"]=>
    string(7) ""norsk""
    ["portugues"]=>
    string(16) ""portugu\u00eas""
    ["suomi"]=>
    string(7) ""suomi""
    ["svenska"]=>
    string(9) ""svenska""
    ["vlaams"]=>
    string(12) ""West-Vlams""
  }
  ["wgScoreDefaultNoteLanguage"]=>
  string(12) ""nederlands""
  ["wgCentralAuthMobileDomain"]=>
  string(5) "false"
  ["wgCodeMirrorEnabled"]=>
  string(4) "true"
  ["wgVisualEditorToolbarScrollOffset"]=>
  string(9) "GOT IT: 0"
  ["wgVisualEditorUnsupportedEditParams"]=>
  array(3) {
    [0]=>
    string(6) ""undo""
    [1]=>
    string(11) ""undoafter""
    [2]=>
    string(12) ""veswitched""
  }
  ["wgEditSubmitButtonLabelPublish"]=>
  string(4) "true"
}
 != /WITHOUT ANY WARRANTY/
...
11:26:42 Synchronized wmf-config/InitialiseSettings.php: SWAT: [[gerrit:465602|Permissions changes on itwikibooks (T206447)]] (duration: 00m 57s)

Event Timeline

dduvall triaged this task as Medium priority.

This failure is scap attempting to run service-checker-swagger and getting unexpected output for the Main_Page. The current spec (https://en.wikipedia.org/spec.yaml) is expecting to find body: /"wgPageName":"Main_Page"/ in the Main_Page somewhere. This output; however, looks like PHP var_dump output which makes me think maybe someone was fiddling with this server locally when you tried to sync.

The check is working now:

[thcipriani@deploy1001 ~]$ service-checker-swagger 'mwdebug2002.codfw.wmnet' http://en.wikipedia.org -s '/spec.yaml'
All endpoints are healthy

I think this was a transient error caused by someone testing something on that server at the same time you were trying to deploy. Closing this for now. Please reopen (or file a new task) if this error recurs and I'll do more investigation.