Page MenuHomePhabricator

ResourceLoader duplicate registration warning. Another module has already been registered as wikibase.Site
Open, Needs TriagePublic

Description

When running update.php for MediaWiki and Wikibase 1.35 I saw the following message at the end of the script run.

Purging caches...[warning] [resourceloader] ResourceLoader duplicate registration warning. Another module has already been registered as wikibase.Site

This also happens on page views etc

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Krinkle added a subscriber: Krinkle.

Do you suspect an issue with ResourceLoader and/or the installer running something twice? Or do you suspect something specific to Wikibase or wbstack?

Is the warning always for the same module? Does it happen in CI or with other installs beyond wbstack with Wikibase?

Let me know if you need any help. My first suggestion would be to ad-hoc dump a trace from register() whenever info for wikibase.Site is added, to see where they come from.

Do you suspect an issue with ResourceLoader and/or the installer running something twice? Or do you suspect something specific to Wikibase or wbstack?

Right now I would suspect either the installer or Wikibase

Is the warning always for the same module? Does it happen in CI or with other installs beyond wbstack with Wikibase?

I could only reproduce it with wikibase.Site.
Seemingly this doesn't occur on Travis CI for Wikibase. https://travis-ci.org/github/wikimedia/Wikibase/jobs/743884741
I'll have to also try it locally!

Let me know if you need any help. My first suggestion would be to ad-hoc dump a trace from register() whenever info for wikibase.Site is added, to see where they come from.

Thanks!

Looks like this is no just the installer, but all requests, so likely an issue in Wikibase.

Addshore renamed this task from ResourceLoader duplicate registration warning. Another module has already been registered as wikibase.Site in update.php to ResourceLoader duplicate registration warning. Another module has already been registered as wikibase.Site.Nov 17 2020, 6:55 PM
Addshore updated the task description. (Show Details)

I have the same warning with docker-compose: "[resourceloader] ResourceLoader duplicate registration warning. Another module has already been registered as wikibase.Site". It is reproducible using https://github.com/UB-Mannheim/RaiseWikibase.