Page MenuHomePhabricator

Beta cluster: exception 'LogicException' with message 'Missing stream uri, the stream can not be opened.' in /mnt/srv/mediawiki-staging/php-master/includes/debug/logger/monolog/LegacyHandler.php:113
Closed, ResolvedPublic

Description

Looking at https://integration.wikimedia.org/ci/job/beta-update-databases-eqiad/ none of the database beside testwiki can update.

+ mwscript update.php --wiki=dewiki --quick
#!/usr/bin/env php

Fatal error: Uncaught exception 'LogicException' with message 'Missing stream uri, the stream can not be opened.' in /mnt/srv/mediawiki-staging/php-master/includes/debug/logger/monolog/LegacyHandler.php:113
Stack trace:
#0 /mnt/srv/mediawiki-staging/php-master/includes/debug/logger/monolog/LegacyHandler.php(197): MediaWiki\Logger\Monolog\LegacyHandler->openSink()
#1 /mnt/srv/mediawiki-staging/php-master/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): MediaWiki\Logger\Monolog\LegacyHandler->write(Array)
#2 /mnt/srv/mediawiki-staging/php-master/vendor/monolog/monolog/src/Monolog/Logger.php(265): Monolog\Handler\AbstractProcessingHandler->handle(Array)
#3 /mnt/srv/mediawiki-staging/php-master/vendor/monolog/monolog/src/Monolog/Logger.php(473): Monolog\Logger->addRecord(200, '[c15c5327] [no ...', Array)
#4 /mnt/srv/mediawiki-staging/php-master/includes/GlobalFunctions.php(1157): Monolog\Logger->info('[c15c5327] [no ...', Array)
#5 /mnt/srv/mediawiki-staging/php-master/includes/exception/MWExcepti in /mnt/srv/mediawiki-staging/php-master/includes/debug/logger/monolog/LegacyHandler.php on line 113

Fatal error: Uncaught exception 'LogicException' with message 'Missing stream uri, the stream can not be opened.' in /mnt/srv/mediawiki-staging/php-master/includes/debug/logger/monolog/LegacyHandler.php:113
Stack trace:
#0 /mnt/srv/mediawiki-staging/php-master/includes/debug/logger/monolog/LegacyHandler.php(197): MediaWiki\Logger\Monolog\LegacyHandler->openSink()
#1 /mnt/srv/mediawiki-staging/php-master/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): MediaWiki\Logger\Monolog\LegacyHandler->write(Array)
#2 /mnt/srv/mediawiki-staging/php-master/vendor/monolog/monolog/src/Monolog/Logger.php(265): Monolog\Handler\AbstractProcessingHandler->handle(Array)
#3 /mnt/srv/mediawiki-staging/php-master/vendor/monolog/monolog/src/Monolog/Logger.php(473): Monolog\Logger->addRecord(200, '[1285df9e] [no ...', Array)
#4 /mnt/srv/mediawiki-staging/php-master/includes/GlobalFunctions.php(1157): Monolog\Logger->info('[1285df9e] [no ...', Array)
#5 /mnt/srv/mediawiki-staging/php-master/includes/exception/MWExcepti in /mnt/srv/mediawiki-staging/php-master/includes/debug/logger/monolog/LegacyHandler.php on line 113
Build step 'Execute shell' marked build as failure

Event Timeline

hashar raised the priority of this task from to Needs Triage.
hashar updated the task description. (Show Details)
hashar added a subscriber: hashar.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 24 2015, 2:50 PM
hashar renamed this task from Beta cluster database no more update beta-update-databases-eqiad to Beta cluster: exception 'LogicException' with message 'Missing stream uri, the stream can not be opened.' in /mnt/srv/mediawiki-staging/php-master/includes/debug/logger/monolog/LegacyHandler.php:113.Apr 24 2015, 2:51 PM
hashar set Security to None.

Might be caused by https://gerrit.wikimedia.org/r/#/c/191259/ "debug logging: Convert to Monolog logging"

My guess is that this is related to $wgDebugLogFile which I apparently didn't explicitly set for beta. testwiki works because of the coincidence that $wgDebugLogFile is set for testwiki in prod. I'll work up a patch.

Caused by rOMWC2680380cba02: debug logging: Convert to Monolog logging where I moved initialization of $wgDebugLogFile to CommonSettings-labs.php. Those settings are loaded after logging.php which is the intended consumer.

Change 206399 had a related patch set uploaded (by BryanDavis):
monolog: configure wgDebugLogFile for beta cluster

https://gerrit.wikimedia.org/r/206399

Change 206399 merged by jenkins-bot:
monolog: configure wgDebugLogFile for beta cluster

https://gerrit.wikimedia.org/r/206399

Aaarrrrgh!

More InitialialiseSettings woes:

Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Udp transport "udp:///wfDebug" must specify a host' in /mnt/srv/mediawiki-staging/php-master/includes/debug/logger/monolog/LegacyHandler.php:122

bd808 triaged this task as Unbreak Now! priority.

Change 206414 had a related patch set uploaded (by BryanDavis):
beta: expose $wmfUdp2logDest to wmfLabsOverrideSettings()

https://gerrit.wikimedia.org/r/206414

Change 206414 merged by jenkins-bot:
beta: expose $wmfUdp2logDest to wmfLabsOverrideSettings()

https://gerrit.wikimedia.org/r/206414

Change 206424 had a related patch set uploaded (by BryanDavis):
beta: Import $wmfUdp2logDest global in wmfLabsSettings()

https://gerrit.wikimedia.org/r/206424

Change 206424 merged by jenkins-bot:
beta: Import $wmfUdp2logDest global in wmfLabsSettings()

https://gerrit.wikimedia.org/r/206424

bd808 moved this task from To Do to Done on the User-bd808 board.Apr 24 2015, 10:16 PM
bd808 moved this task from Done to Archive on the User-bd808 board.May 12 2015, 6:23 AM