[09:54:00] HI, I'm trying to install mediawiki-docker (the new one) as part of one of the microtask... [09:54:24] However, I'm getting this error... [09:55:12] Sorry! This site is experiencing technical difficulties.Try waiting a few minutes and reloading.(Cannot access the database) [09:55:57] After installation, when I navigate to localhost on port 8080 [10:19:52] Sohom_Datta: what operating system are you running? [10:20:15] Ubuntu 19.10 [10:20:49] Sohom_Datta: did you follow these steps? https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/master/DEVELOPERS.md#linux-prerequisites [10:21:21] I did follow the steps... [10:21:45] in your terminal, what does `echo $MW_DOCKER_UID` show? [10:22:10] and also, can you double-check that you have a file called `docker-compose.override.yml`? [10:22:37] what does `docker-compose config` show? [10:22:55] (you can use https://dpaste.de for pasting stuff) [10:24:52] Sohom_Datta: most likely the permissions on the database file are incorrect [10:26:34] Just a sec, I booted into my Windows partition to check for a few updates... I'll boot back into the other partition in a sec [10:32:26] kostajh: $MW_DOCKER_UID and $MW_DOCKER_GID don't return any output now that I rebooted... [10:33:16] Sohom_Datta: yeah, you probably want to add those lines ( export MW_DOCKER_UID...) to your ~/.bashrc [10:33:55] Sohom_Datta: so, open ~/.bashrc with a text editor, and add `export MW_DOCKER_UID=$(id -u)` and `export MW_DOCKER_GID=$(id -g)` [10:34:09] Sohom_Datta: then run `source ~/.bashrc` in your terminal [10:37:30] Yup done :) Do need to reinstall to whole thing ? [10:39:03] Sohom_Datta: I don't think so. what does `docker-compose config` show now? [10:40:48] https://dpaste.org/gMbJ [10:40:57] That's the output.. [10:42:07] hmm, yeah the bit that says `user: ':'` is wrong [10:42:17] Sohom_Datta: what does `echo $MW_DOCKER_UID` show? [10:42:39] 1000 [10:44:17] Sohom_Datta: and the contents of `docker-compose.override.yml`? [10:44:28] Okay, my override file has gotten messed up for whatever reason... [10:44:38] It's user: ":" [10:44:50] quick question: if I want to only load a certain JS script on certain pages (with a certain template), is using Gadgets the only straightforward solution? [10:45:18] I did like a echo thingy to create the override file... that must have been the culprit :( [10:45:28] Sohom_Datta: ah. Yeah. That would explain it. [10:46:40] Sohom_Datta: once you fix that, I think you just need to do `docker-compose down` and `docker-compose up -d`. But to avoid further headache, you might want to remove the `cache` and `vendor` directory and start the setup process again [10:58:24] Nah, no change... got the same error... even after doing the setup process all over again... [11:05:13] config says user: 1000:1000 [11:13:40] Does this docker conflict with mediawiki-docker-dev (the older one) [11:14:51] Sohom_Datta: no, it should not. Did you remove cache and vendor directories? [11:15:00] Sohom_Datta: what does `ls -la` show in your mediawiki directory? [11:15:02] yes I did [11:15:19] Sohom_Datta: is `mediawiki-docker-dev` running? what does `docker ps` show? [11:18:59] https://dpaste.org/mzWB is for ls -la [11:20:16] mediawiki-docker-dev is suspended... [11:20:43] https://dpaste.org/BiWb is the output of docker ps [11:21:27] cache and vendor are owned by root. That is the problem. [11:22:26] Sohom_Datta: ‘docker-compose config’ output again please? [11:23:54] https://dpaste.org/p96a [11:25:29] One sec, do you want me to run the command as sudo lk all other docker commands ? [11:25:58] Ahh [11:26:36] your user needs `sudo` to run docker commands? [11:27:05] anyway, as a quick fix you should be able to do `chown -R sohom:sohom cache` and `chown -R sohom:sohom vendor`, and I think you should be able to access http://localhost:8080 then [11:27:33] Sohom_Datta: you might want to look into https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user [11:50:26] Yup that worked :) [18:57:50] Hi [18:58:31] I am new to the SQL stuff. If you need only one row you can do $total_page = $dbr->fetchObject( $dbr->query("SELECT COUNT(*) as total FROM page") ); [19:00:07] But what do you need to use if you have something like "SELECT xxxx, COUNT(*) FROM recentchanges WHERE xxxx AND rc_type IN (0, 1) " [19:51:49] Philosophically, could someone explain the advantage of having rvslots in the API? It’s not immediately clear to me what one gains with it [20:01:03] Ahh: https://www.mediawiki.org/wiki/Requests_for_comment/Multi-Content_Revisions [20:03:59] McJill: It's there so you can actually ask for the content in the wiki, yes. :-) [20:06:28] Took me a few read-throughs, starting to understand it. Seems like a ton of work [21:14:18] It is. :-( [23:53:08] https://www.mediawiki.org/wiki/Special:Contributions/99.12.124.140 [23:53:53] messing up translations on mediawiki site