Steps to replicate the issue (include links if applicable):
- Windows 10
- Open powershell. Navigate to where you want to install mediawiki
- git clone
- Follow the steps at https://github.com/wikimedia/mediawiki/blob/master/DEVELOPERS.md
- Then type some docker compose exec mediawiki commands into powershell
What happens?:
time="2023-07-06T17:57:19-07:00" level=warning msg="The \"MW_DOCKER_UID\" variable is not set. Defaulting to a blank string." time="2023-07-06T17:57:19-07:00" level=warning msg="The \"MW_DOCKER_GID\" variable is not set. Defaulting to a blank string." time="2023-07-06T17:57:19-07:00" level=warning msg="The \"MW_DOCKER_UID\" variable is not set. Defaulting to a blank string." time="2023-07-06T17:57:19-07:00" level=warning msg="The \"MW_DOCKER_GID\" variable is not set. Defaulting to a blank string." time="2023-07-06T17:57:19-07:00" level=warning msg="The \"MW_DOCKER_UID\" variable is not set. Defaulting to a blank string." time="2023-07-06T17:57:19-07:00" level=warning msg="The \"MW_DOCKER_GID\" variable is not set. Defaulting to a blank string."
What should have happened instead?:
- no warning messages about MW_DOCKER_UID and MW_DOCKER_GID
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
- May be intentional. Is generating noise/logspam on every docker compose exec mediawiki though.
- Possible fixes
- Reduce to 2 warnings instead of 6?
- Suppress this warning for non-Linux?
- Suppress this warning for everyone by default, and use a debug var to turn it back on?
- Get rid of this warning completely?
- Add to DEVELOPING.md that Windows/Mac users should set these variables to blank in their .env file <--- I think I prefer this approach.