Page MenuHomePhabricator

LogicException: Domain '' is not recognized.
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
labels.normalized_message
[{reqId}] {exception_url}   LogicException: Domain '' is not recognized.
error.stack_trace
from /srv/mediawiki/php-1.41.0-wmf.19/includes/jobqueue/JobQueueGroup.php(136)
#0 /srv/mediawiki/php-1.41.0-wmf.19/extensions/TranslationNotifications/includes/Jobs/TranslationNotificationsSubmitJob.php(219): JobQueueGroup->push(array)
#1 /srv/mediawiki/php-1.41.0-wmf.19/extensions/EventBus/includes/JobExecutor.php(78): MediaWiki\Extension\TranslationNotifications\Jobs\TranslationNotificationsSubmitJob->run()
#2 /srv/mediawiki/rpc/RunSingleJob.php(77): MediaWiki\Extension\EventBus\JobExecutor->execute(array)
#3 {main}
Impact
Notes

Event Timeline

The code appears to be trying to call JobQueueGroupFactory::makeJobQueueGroup with an empty string: https://logstash.wikimedia.org/app/discover#/doc/logstash-*/logstash-mediawiki-1-7.0.0-1-2023.07.27?id=H8zXl4kBuj8l-JjZ1E0a

This request originated on Meta-Wiki. On Meta-Wiki I see that there are 185 users who have subscribed to receive notifications on talk page on another wiki, but only 174 out of these have the destination wiki specified. I found this by looking at the user_properties table for user_property of translationnotifications-cmethod-talkpage and translationnotifications-cmethod-talkpage-elsewhere-loc

Change 942650 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/TranslationNotifications@master] Do not add jobs with empty target wiki id to the job queue

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

Change 942650 merged by jenkins-bot:

[mediawiki/extensions/TranslationNotifications@master] Do not add jobs with empty target wiki id to the job queue

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

No notifications sent from Meta since 1.41.0-wmf.20; 2023-08-01 rolled out. I'll wait another week before sending out a notification myself.

Change 949524 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/TranslationNotifications@master] Handle null target wiki id present in some user preferences

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

Change 949524 merged by jenkins-bot:

[mediawiki/extensions/TranslationNotifications@master] Handle null target wiki id present in some user preferences

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

abi_ moved this task from In Review to Done on the Language-Team (Language-2023-July-September) board.

No longer seeing this error with an empty domain. 0 occurrences 21st August.

Will the invalid preferences be followed up on? With empty wikis being logged, this will cause continuous log spam.

Will the invalid preferences be followed up on? With empty wikis being logged, this will cause continuous log spam.

Yes, there is a plan to address invalid preferences which include empty wikis and wikis that don't have the MassMessage extension and hence can't receive messages via TranslationNotifications. I'll create a task separately for that.