[wp-meta] [Making WordPress.org] #5581: Consolidating setup of local Dev environment documentation and testing instructions.

Making WordPress.org noreply at wordpress.org
Tue May 11 12:59:37 UTC 2021


#5581: Consolidating setup of local Dev environment documentation and testing
instructions.
-------------------------+---------------------
 Reporter:  paaljoachim  |       Owner:  (none)
     Type:  task         |      Status:  new
 Priority:  normal       |   Milestone:
Component:  General      |  Resolution:
 Keywords:               |
-------------------------+---------------------

Comment (by mai21):

 At step 9c, I got this:

 {{{
 npm run env:start

 > WordPress at 5.8.0 env:start /home/mai/wordpress-develop
 > node ./tools/local-env/scripts/start.js

 Traceback (most recent call last):
   File "urllib3/connectionpool.py", line 677, in urlopen
   File "urllib3/connectionpool.py", line 392, in _make_request
   File "http/client.py", line 1277, in request
   File "http/client.py", line 1323, in _send_request
   File "http/client.py", line 1272, in endheaders
   File "http/client.py", line 1032, in _send_output
   File "http/client.py", line 972, in send
   File "docker/transport/unixconn.py", line 43, in connect
 PermissionError: [Errno 13] Permission denied

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "requests/adapters.py", line 449, in send
   File "urllib3/connectionpool.py", line 727, in urlopen
   File "urllib3/util/retry.py", line 410, in increment
   File "urllib3/packages/six.py", line 734, in reraise
   File "urllib3/connectionpool.py", line 677, in urlopen
   File "urllib3/connectionpool.py", line 392, in _make_request
   File "http/client.py", line 1277, in request
   File "http/client.py", line 1323, in _send_request
   File "http/client.py", line 1272, in endheaders
   File "http/client.py", line 1032, in _send_output
   File "http/client.py", line 972, in send
   File "docker/transport/unixconn.py", line 43, in connect
 urllib3.exceptions.ProtocolError: ('Connection aborted.',
 PermissionError(13, 'Permission denied'))

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "docker/api/client.py", line 214, in _retrieve_server_version
   File "docker/api/daemon.py", line 181, in version
   File "docker/utils/decorators.py", line 46, in inner
   File "docker/api/client.py", line 237, in _get
   File "requests/sessions.py", line 543, in get
   File "requests/sessions.py", line 530, in request
   File "requests/sessions.py", line 643, in send
   File "requests/adapters.py", line 498, in send
 requests.exceptions.ConnectionError: ('Connection aborted.',
 PermissionError(13, 'Permission denied'))

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "docker-compose", line 3, in <module>
   File "compose/cli/main.py", line 81, in main
   File "compose/cli/main.py", line 200, in perform_command
   File "compose/cli/command.py", line 70, in project_from_options
   File "compose/cli/command.py", line 153, in get_project
   File "compose/cli/docker_client.py", line 43, in get_client
   File "compose/cli/docker_client.py", line 170, in docker_client
   File "docker/api/client.py", line 197, in __init__
   File "docker/api/client.py", line 222, in _retrieve_server_version
 docker.errors.DockerException: Error while fetching server API version:
 ('Connection aborted.', PermissionError(13, 'Permission denied'))
 [27279] Failed to execute script docker-compose
 child_process.js:655
     throw err;
     ^

 Error: Command failed: docker-compose up -d wordpress-develop
     at checkExecSyncError (child_process.js:616:11)
     at execSync (child_process.js:652:15)
     at Object.<anonymous> (/home/mai/wordpress-develop/tools/local-
 env/scripts/start.js:8:1)
     at Module._compile (internal/modules/cjs/loader.js:1063:30)
     at Object.Module._extensions..js
 (internal/modules/cjs/loader.js:1092:10)
     at Module.load (internal/modules/cjs/loader.js:928:32)
     at Function.Module._load (internal/modules/cjs/loader.js:769:14)
     at Function.executeUserEntryPoint [as runMain]
 (internal/modules/run_main.js:72:12)
     at internal/main/run_main_module.js:17:47 {
   status: 255,
   signal: null,
   output: [ null, null, null ],
   pid: 27277,
   stdout: null,
   stderr: null
 }
 npm ERR! code ELIFECYCLE
 npm ERR! errno 1
 npm ERR! WordPress at 5.8.0 env:start: `node ./tools/local-
 env/scripts/start.js`
 npm ERR! Exit status 1
 npm ERR!
 npm ERR! Failed at the WordPress at 5.8.0 env:start script.
 npm ERR! This is probably not a problem with npm. There is likely
 additional logging output above.


 }}}

 Then install docker-compose as per
 https://docs.docker.com/compose/install/ then running the same cmd with
 sudo works.

 Currently stuck in another error with 9D

 {{{
 sudo npm run env:install

 > WordPress at 5.8.0 env:install /home/mai/wordpress-develop
 > node ./tools/local-env/scripts/install.js

 Creating wordpress-develop_cli_run ... done

 Warning: file_put_contents(/var/www/src/wp-config.php): failed to open
 stream: Permission denied in phar:///usr/local/bin/wp/vendor/wp-cli
 /config-command/src/Config_Command.php on line 164
 Error: Could not create new 'wp-config.php' file.
 ERROR: 1
 child_process.js:655
     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 (child_process.js:616:11)
     at execSync (child_process.js:652:15)
     at wp_cli (/home/mai/wordpress-develop/tools/local-
 env/scripts/install.js:48:2)
     at Object.<anonymous> (/home/mai/wordpress-develop/tools/local-
 env/scripts/install.js:10:1)
     at Module._compile (internal/modules/cjs/loader.js:1063:30)
     at Object.Module._extensions..js
 (internal/modules/cjs/loader.js:1092:10)
     at Module.load (internal/modules/cjs/loader.js:928:32)
     at Function.Module._load (internal/modules/cjs/loader.js:769:14)
     at Function.executeUserEntryPoint [as runMain]
 (internal/modules/run_main.js:72:12)
     at internal/main/run_main_module.js:17:47 {
   status: 1,
   signal: null,
   output: [ null, null, null ],
   pid: 29921,
   stdout: null,
   stderr: null
 }
 npm ERR! code ELIFECYCLE
 npm ERR! errno 1
 npm ERR! WordPress at 5.8.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.8.0 env:install script.
 npm ERR! This is probably not a problem with npm. There is likely
 additional logging output above.

 }}}

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/5581#comment:33>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list