[03:38:41] hi, I'm trying to install MW in docker with mariadb, but the installer can't set up the database properly, saying either it can't make the grant for wikiuser or the database is read-only. my compose file is: https://0x0.st/KicB.txt, error messages: http://0x0.st/KicM.txt [03:38:50] any idea what's wrong with this setup? [03:39:37] I am just a user here... but this sounds like you are having permissions issues on the database. [03:40:10] Did you setup your database and the wikiuser account with password? [03:40:21] it's in the docker compose file i linked, so yes [03:40:40] You found a docker file that includes a mariadb server within it? [03:41:22] I do not see that. I just see user information. [03:41:37] I used a different docker container than you obviously. [03:41:41] i wrote it based on this: https://hub.docker.com/_/mediawiki#-via-docker-compose [03:42:08] those environment variables set up a database and user with access to that database [03:43:31] I will be of no help to you here. I setup the offical mediawiki docker container and it did not come with a database built in. [03:44:25] neither does this one. docker compose runs multiple containers together [03:45:01] Okay so again, you are back to setting up your user account on the mariadb and the database and making sure the permissions are set. Which is what I said initially. [03:45:09] also according to the mediawiki site, there is no official container [03:45:41] Oh well perhaps I did not use an offical one then. [03:45:49] ...that's what the environment block in the yaml does.. [03:46:02] No it doesnt [03:46:14] ??? [03:46:29] are you also supplying it with the administrator login to the mariadb? [03:46:35] https://hub.docker.com/_/mariadb#start-a-mariadb-server-instance-with-user-password-and-database [03:47:25] It cannot magically create an account in the other container. You have to tell it where to connect to.. you have to create the account and password prior with an administrator form account. [03:47:32] It is physics. [03:47:40] i specified the root user and password in the mediawiki installer [03:47:56] and the host? [03:48:02] yes, of course [03:48:12] Okay well clearly that is not working for you. [03:48:29] it can connect to the database, it fails to manipulate the database [03:50:03] Looks like you are trying to mount the database directly "database:/var/lib/mysql:Z" I have no experience with that. I just do it normal. [03:50:08] through the port. [03:50:44] that's on the database container, not mediawiki [03:51:18] that's how you persist the database between container restarts [03:51:22] this is not a mediawiki issue. this is a docker problem. go talk to them about it there. but stay here.. maybe someone will go active who has advice for you. [03:55:29] Oh yeah, I am using https://hub.docker.com/_/mediawiki/ [03:55:48] I just plugged in the host name of my mariadb container and it logged in with no problem. [03:56:02] did not mess with the compose file or any of that. [03:56:35] But I did configure the database server with the info I wanted to use prior. as I do with everything I setup. [04:10:04] The error output is from mediawiki only, right? Does the database produce any errors? Mediawiki seems to check if the database is read-only via `SELECT @@GLOBAL.read_only`. Can you run this query on the database yourself? [04:10:23] Here is the code I am reading: https://github.com/wikimedia/mediawiki/blob/master/includes/libs/rdbms/database/DatabaseMySQL.php#L387-L395 [04:16:41] chili-b: returns OFF [04:22:48] that's annoying. It looks like that "The primary database server is running in read-only mode" message only gets set when the `isPrimaryRunningReadOnly` function returns true. https://github.com/wikimedia/mediawiki/blob/master/includes/libs/rdbms/loadbalancer/LoadBalancer.php#L1800 [04:23:40] i'm not a php developer and there's a lot of line noise going on in this function, but it looks like it just discards the error in the try ... catch surrounding the call to serverIsReadOnly() [04:28:13] abby: sorry for the wild goose chase, this is your issue: https://phabricator.wikimedia.org/T401570 [04:28:36] ha [04:28:38] ha [04:28:40] sigh [04:28:49] * abby downgrades mariadb [04:32:18] It's annoying that this issue isn't reflected by the mediawiki DB compatibility matrix. I only found this issue because it's linked from the Arch wiki [04:41:42] and it seems the mariadb container doesn't give access to the database to root, so the autofill of "root" in the install wizard is wrong [05:37:35] good catch chili-b [18:47:28] i help maintain a wiki (in terms of running it behind the scenes and what not, not contributing to it) at https://atl.wiki and ive run in to a weird issue: when creating a talk page with an external link, youre given a a box that just says captcha, with no further information like an image with characters. im completely stumped here. any ideas? [21:52:17] owuh: do you have a captcha set up? Possibly try some of the configuration options at https://www.mediawiki.org/wiki/Extension:ConfirmEdit [22:45:20] What's the correct place to get help with the widgets extension?