[wp-trac] [WordPress Trac] #53820: services.phpunit.environment.LOCAL_PHP_MEMCACHED must be a string, number or null
WordPress Trac
noreply at wordpress.org
Wed Jul 28 22:32:14 UTC 2021
#53820: services.phpunit.environment.LOCAL_PHP_MEMCACHED must be a string, number
or null
------------------------------+------------------------------
Reporter: pbearne | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+------------------------------
Description changed by SergeyBiryukov:
Old description:
> 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 at 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 at 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 at 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
New description:
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 at 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 at 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 at 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
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53820#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list