Page MenuHomePhabricator

[Timebox: 1h] Improve mediawiki docker environment
Closed, ResolvedPublic

Description

There are a few problems working with the mediawiki docker environment:

Event Timeline

dang updated the task description. (Show Details)
Ollie.Shotton_WMDE renamed this task from Improve mediawiki docker environment to [Timebox: 4h] Improve mediawiki docker environment.Tue, Jan 20, 3:22 PM
dang renamed this task from [Timebox: 4h] Improve mediawiki docker environment to [Timebox: 1.5h] Improve mediawiki docker environment.Wed, Jan 21, 4:09 PM

dati18 opened https://github.com/wbstack/mediawiki/pull/518

Add a service to create admin and PlatformReservedUser

dang renamed this task from [Timebox: 1.5h] Improve mediawiki docker environment to [Timebox: 1.h] Improve mediawiki docker environment.Thu, Jan 22, 12:27 AM
dang updated the task description. (Show Details)

dati18 opened https://github.com/wbstack/mediawiki/pull/519

Fix generated URLs to include :8001 in docker compose dev env

dang renamed this task from [Timebox: 1.h] Improve mediawiki docker environment to [Timebox: 0.5h] Improve mediawiki docker environment.Thu, Jan 22, 1:14 AM
dang updated the task description. (Show Details)
dang updated the task description. (Show Details)
dang renamed this task from [Timebox: 0.5h] Improve mediawiki docker environment to [Timebox: 0h] Improve mediawiki docker environment.Thu, Jan 22, 10:41 AM
dang updated the task description. (Show Details)

No idea how to get login details of admin user, there is no record/doc mentioning it. -> since we can disable Captcha and all users in docker compose env has sysop and bureaucrat rights, I think it's unnecessary to create admin user when starting docker compose
DB replication seems to be failing; when a replica is configured: login doesn’t work -> replica is live but stuck on SQL thread due to a failed CREATE USER

Slave_IO_Running: Yes
Slave_SQL_Running: No
Last_SQL_Errno: 1396
Last_SQL_Error: Operation CREATE USER failed for repl@% (query: CREATE USER repl@%)
Seconds_Behind_Master: NULL
dang removed dang as the assignee of this task.Thu, Jan 22, 10:47 AM
dang moved this task from Doing to Ready for Peer Review on the Wikibase Cloud (Kanban Board) board.
dang renamed this task from [Timebox: 0h] Improve mediawiki docker environment to [Timebox: 4h] Improve mediawiki docker environment.Thu, Jan 22, 1:31 PM
dang claimed this task.
dang updated the task description. (Show Details)

I tried to "beef up" replication thinking it would make REPLICA being able to handle more traffic, but it didn't yield any results and REPLICA is still stuck at CREATE USER, making REPLICA unstable and not healthy.

Real cause: CREATE USER 'repl'@'%' binlog event it fails with 1396, meaning repl user exists, REPLICA tries to execute the same CREATE USER and fails. It doesn't happen on freshly created volume but restarting existing environment can trigger the statement again and it is obviously replicated. Sometimes replica state changes: either the volume was reset (no more repl user) or it started from a point after CREATE USER event so replica won't replay it and no 1396.

I tried to simply use CREATE USER IF NOT EXISTS to make replica "duplicate-safe"

dang renamed this task from [Timebox: 4h] Improve mediawiki docker environment to [Timebox: 1.5h] Improve mediawiki docker environment.Thu, Jan 22, 4:25 PM
dang removed dang as the assignee of this task.
dang updated the task description. (Show Details)
dang moved this task from Doing to Ready for Peer Review on the Wikibase Cloud (Kanban Board) board.
Tarrow updated the task description. (Show Details)

tarrow opened https://github.com/wbstack/mediawiki/pull/523

docs: add information about docker compose environment

Tarrow renamed this task from [Timebox: 1.5h] Improve mediawiki docker environment to [Timebox: 1h] Improve mediawiki docker environment.Fri, Jan 23, 5:00 PM
Tarrow reassigned this task from Tarrow to dang.
Tarrow updated the task description. (Show Details)
Tarrow moved this task from In Review to To do on the Wikibase Cloud (Kanban Board) board.
Tarrow subscribed.

tarrow closed https://github.com/wbstack/mediawiki/pull/523

docs: add information about docker compose environment

dang removed dang as the assignee of this task.Mon, Jan 26, 11:38 AM
dang moved this task from To do to Ready for Peer Review on the Wikibase Cloud (Kanban Board) board.

dati18 closed https://github.com/wbstack/mediawiki/pull/519

Fix generated URLs to include :8001 in docker compose dev env

dati18 closed https://github.com/wbstack/mediawiki/pull/518

Add a service to create admin and PlatformReservedUser

Tarrow claimed this task.