#53820 closed defect (bug) (fixed)
Build doesn't support Docker Compose V2
Reported by: | pbearne | Owned by: | desrosj |
---|---|---|---|
Milestone: | 5.8.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch fixed-major |
Focuses: | Cc: |
Description (last modified by )
I can't get the build to work
downloaded fresh master from https://github.com/WordPress/wordpress-develop
npm install npm run build:dev npm run env:start
then get this error
PS C:\Users\XX\Documents\xwp\wordpress-develop> npm run env:install > WordPress@5.9.0 env:install C:\Users\XX\Documents\xwp\wordpress-develop > node ./tools/local-env/scripts/install.js time="2021-07-28T16:33:01-04:00" level=warning msg="The PHP_FPM_UID variable is not set. Defaulting to a blank string." time="2021-07-28T16:33:01-04:00" level=warning msg="The PHP_FPM_GID variable is not set. Defaulting to a blank string." time="2021-07-28T16:33:01-04:00" level=warning msg="The PHP_FPM_UID variable is not set. Defaulting to a blank string." time="2021-07-28T16:33:01-04:00" level=warning msg="The PHP_FPM_GID variable is not set. Defaulting to a blank string." time="2021-07-28T16:33:01-04:00" level=warning msg="The WP_MULTISITE variable is not set. Defaulting to a blank string." time="2021-07-28T16:33:01-04:00" level=warning msg="The PHP_FPM_UID variable is not set. Defaulting to a blank string." time="2021-07-28T16:33:01-04:00" level=warning msg="The PHP_FPM_GID variable is not set. Defaulting to a blank string." time="2021-07-28T16:33:01-04:00" level=warning msg="The GITHUB_REF variable is not set. Defaulting to a blank string." time="2021-07-28T16:33:01-04:00" level=warning msg="The GITHUB_EVENT_NAME variable is not set. Defaulting to a blank string." services.cli.environment.LOCAL_PHP_MEMCACHED must be a string, number or null node:child_process:675 throw err; ^ Error: Command failed: docker-compose run --rm cli config create --dbname=wordpress_develop --dbuser=root --dbpass=password --dbhost=mysql --path=/var/www/src --force at checkExecSyncError (node:child_process:636:11) at execSync (node:child_process:672:15) at wp_cli (C:\Users\XX\Documents\xwp\wordpress-develop\tools\local-env\scripts\install.js:48:2) at Object.<anonymous> (C:\Users\XX\Documents\xwp\wordpress-develop\tools\local-env\scripts\install.js:10:1) at Module._compile (node:internal/modules/cjs/loader:1083:30) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1112:10) at Module.load (node:internal/modules/cjs/loader:948:32) at Function.Module._load (node:internal/modules/cjs/loader:789:14) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:72:12) at node:internal/main/run_main_module:17:47 { status: 15, signal: null, output: [ null, null, null ], pid: 30196, stdout: null, stderr: null } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! WordPress@5.9.0 env:install: `node ./tools/local-env/scripts/install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the WordPress@5.9.0 env:install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in:
I am not sure why this is broken
Docker v20.10.7
Change History (21)
#5
@
3 years ago
- Summary changed from services.phpunit.environment.LOCAL_PHP_MEMCACHED must be a string, number or null to Build doesn't support Docker Compose V2
#6
@
3 years ago
Let's get this fixed I assume that we will need to support Docker Compose V2
I will create a patch to add a comment to the readme for now until we have an updated build script(s)
#7
@
3 years ago
Note that Compose V2 is still in beta and there are two related upstream reports for these issues:
This ticket was mentioned in PR #1527 on WordPress/wordpress-develop by pbearne.
3 years ago
#8
- Keywords has-patch added
Just a note in the readme.md to turn off composer v2
until we have a support for it in the build
#9
@
3 years ago
- Keywords reporter-feedback removed
@ocean90 I agree we need to wait for it to be stable before we add support if needed
#11
@
3 years ago
Also related: https://github.com/docker/compose-cli/issues/1862.
This ticket was mentioned in PR #1542 on WordPress/wordpress-develop by pbearne.
3 years ago
#12
It seems that if we change the environment section to use the list format we don't get the fatal error
We still get warnings
Trac ticket: https://core.trac.wordpress.org/ticket/53820
#13
@
3 years ago
- Milestone changed from 5.9 to 5.8.1
It seems that if we change the environment section to use the list format we don't get the fatal error
We still get warnings
I have added a patch with this change
The change works with v1 as well
Let's get this into 5.8.1
This ticket was mentioned in Slack in #core-test by francina. View the logs.
3 years ago
3 years ago
#15
Thanks for this @pbearne! Before merging, I was curious if there was any documentation indicating list format was preferred?
3 years ago
#16
Looked at the compose command docs, and it looks like they use list formatting there. It's also the recommended workaround here.
Good enough for me. Going to commit.
#17
@
3 years ago
- Owner set to desrosj
- Resolution set to fixed
- Status changed from new to closed
In 51673:
#18
@
3 years ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening to backport.
Hi @pbearne,
I had experienced this a week or so ago. When I looked at my Docker setup, I had "Use Docker Compose V2 checked off under Experimental Features. I unchecked this, and then everything worked after restarting Docker.
Could you give that a try? It's not clear to me what is causing this, but I had this enabled for a while without issue, so I'm thinking something changed upstream we'll need to investigate.