[wp-trac] [WordPress Trac] #51898: why do i get error when follow wordpress/wordpress-develop github repository README.md

WordPress Trac noreply at wordpress.org
Mon Nov 30 15:00:18 UTC 2020


#51898: why do i get error when follow wordpress/wordpress-develop github
repository README.md
------------------------------+------------------------------
 Reporter:  cnspecialcolor    |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * component:  General => Build/Test Tools


Old description:

> why do i get error when follow wordpress/wordpress-develop github
> repository README.md
>
> HERE IS THE wordpress/wordpress-develop github repository README.md
>
> Welcome to the WordPress development repository! Please check out the
> contributor handbook for information about how to open bug reports,
> contribute patches, test changes, write documentation, or get involved in
> any way you can.
>
> Getting Started
> Credentials
> Getting Started
>
> WordPress is a PHP, MySQL, and JavaScript based project, and uses Node
> for its JavaScript dependencies. A local development environment is
> available to quickly get up and running.
>
> You will need a basic understanding of how to use the command line on
> your computer. This will allow you to set up the local development
> environment, to start it and stop it when necessary, and to run the
> tests.
>
> You will need Node and npm installed on your computer. Node is a
> JavaScript runtime used for developer tooling, and npm is the package
> manager included with Node. If you have a package manager installed for
> your operating system, setup can be as straightforward as:
>
> macOS: brew install node
> Windows: choco install nodejs
> Ubuntu: apt install nodejs npm
> If you are not using a package manager, see the Node.js download page for
> installers and binaries.
>
> You will also need Docker installed and running on your computer. Docker
> is the virtualization software that powers the local development
> environment. Docker can be installed just like any other regular
> application. Development Environment Commands
>
> Ensure Docker is running before using these commands. To start the
> development environment for the first time
>
> npm install npm run build:dev npm run env:start npm run env:install
>
> Your WordPress site will accessible at http://localhost:8889. You can see
> or change configurations in the .env file located at the root of the
> project directory. To watch for changes
>
> If you're making changes to WordPress core files, you should start the
> file watcher in order to build or copy the files as necessary:
>
> npm run watch
>
> To stop the watcher, press ctrl+c. To run a WP-CLI command
>
> npm run env:cli
>
> WP-CLI has a lot of useful commands you can use to work on your WordPress
> site. Where the documentation mentions running wp, run npm run env:cli
> instead. For example:
>
> npm run env:cli help
>
> To run the tests
>
> These commands run the PHP and end-to-end test suites, respectively:
>
> npm run test:php npm run test:e2e
>
> To restart the development environment
>
> You may want to restart the environment if you've made changes to the
> configuration in the docker-compose.yml or .env files. Restart the
> environment with:
>
> npm run env:restart
>
> To stop the development environment
>
> You can stop the environment when you're not using it to preserve your
> computer's power and resources:
>
> npm run env:stop
>
> To start the development environment again
>
> Starting the environment again is a single command:
>
> npm run env:start
>
> Credentials
>
> These are the default environment credentials:
>
> Database Name: wordpress_develop
> Username: root
> Password: password
> To login to the site, navigate to http://localhost:8889/wp-admin.
>
> Username: admin
> Password: password
> To generate a new password (recommended):
>
> Go to the Dashboard
> Click the Users menu on the left
> Click the Edit link below the admin user
> Scroll down and click 'Generate password'. Either use this password
> (recommended) or change it, then click 'Update User'. If you use the
> generated password be sure to save it somewhere (password manager, etc).
> [1]link:https://github.com/WordPress/wordpress-develop
>
> HERE IS THE ERROR WITHOUT sudo:
>
> arthur at Arthur:~/Desktop/wordpress-develop-master$ npm run env:start
>
> WordPress at 5.6.0 env:start
> 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 1252, in request
>   File "http/client.py", line 1298, in _send_request
>   File "http/client.py", line 1247, in endheaders
>   File "http/client.py", line 1026, in _send_output
>   File "http/client.py", line 966, 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 403, 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 1252, in request
>   File "http/client.py", line 1298, in _send_request
>   File "http/client.py", line 1247, in endheaders
>   File "http/client.py", line 1026, in _send_output
>   File "http/client.py", line 966, 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 205, 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 228, 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 "bin/docker-compose", line 3, in <module>
>   File "compose/cli/main.py", line 67, in main
>   File "compose/cli/main.py", line 123, in perform_command
>   File "compose/cli/command.py", line 69, in project_from_options
>   File "compose/cli/command.py", line 132, 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 188, in __init__
>   File "docker/api/client.py", line 213, in _retrieve_server_version
> docker.errors.DockerException: Error while fetching server API version:
> ('Connection     aborted.', PermissionError(13, 'Permission denied'))
> [9808] Failed to execute script docker-compose
> child_process.js:674
> throw err;
> ^
>
> Error: Command failed: docker-compose up -d wordpress-develop
> at checkExecSyncError (child_process.js:635:11)
> at execSync (child_process.js:671:15)
> at Object.<anonymous> (/home/arthur/Desktop/wordpress-develop-
> master/tools/local->env/scripts/start.js:8:1)
> at Module._compile (internal/modules/cjs/loader.js:1015:30)
> at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
> at Module.load (internal/modules/cjs/loader.js:879:32)
> at Function.Module._load (internal/modules/cjs/loader.js:724:14)
> at Function.executeUserEntryPoint [as runMain]
> (internal/modules/run_main.js:60:12)
> at internal/main/run_main_module.js:17:47 {
>   status: 255,
>   signal: null,
>   output: [ null, null, null ],
>   pid: 9806,
>   stdout: null,
>  stderr: null
> }
> npm ERR! code 1
> npm ERR! path /home/arthur/Desktop/wordpress-develop-master
> npm ERR! command failed
> npm ERR! command sh -c node ./tools/local-env/scripts/start.js
> npm ERR! A complete log of this run can be found in:
> npm ERR!     /home/arthur/.npm/_logs/2020-11-25T03_56_37_680Z-debug.log
> arthur at Arthur:~/Desktop/wordpress-develop-master$
> HERE IS THE ERROR WITH sudo:
>
>     arthur at Arthur:~/Desktop$ cd wordpress-develop-master
> arthur at Arthur:~/Desktop/wordpress-develop-master$ sudo npm run env:start
> [sudo] password for arthur:
>
> > WordPress at 5.6.0 env:start
> > 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 1252, in request
>   File "http/client.py", line 1298, in _send_request
>   File "http/client.py", line 1247, in endheaders
>   File "http/client.py", line 1026, in _send_output
>   File "http/client.py", line 966, 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 403, 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 1252, in request
>   File "http/client.py", line 1298, in _send_request
>   File "http/client.py", line 1247, in endheaders
>   File "http/client.py", line 1026, in _send_output
>   File "http/client.py", line 966, 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 205, 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 228, 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 "bin/docker-compose", line 3, in <module>
>   File "compose/cli/main.py", line 67, in main
>   File "compose/cli/main.py", line 123, in perform_command
>   File "compose/cli/command.py", line 69, in project_from_options
>   File "compose/cli/command.py", line 132, 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 188, in __init__
>   File "docker/api/client.py", line 213, in _retrieve_server_version
> docker.errors.DockerException: Error while fetching server API version:
> ('Connection aborted.', PermissionError(13, 'Permission denied'))
> [804114] Failed to execute script docker-compose
> child_process.js:674
>     throw err;
>     ^
>
> Error: Command failed: docker-compose up -d wordpress-develop
>     at checkExecSyncError (child_process.js:635:11)
>     at execSync (child_process.js:671:15)
>     at Object.<anonymous> (/home/arthur/Desktop/wordpress-develop-
> master/tools/local-env/scripts/start.js:8:1)
>     at Module._compile (internal/modules/cjs/loader.js:1015:30)
>     at Object.Module._extensions..js
> (internal/modules/cjs/loader.js:1035:10)
>     at Module.load (internal/modules/cjs/loader.js:879:32)
>     at Function.Module._load (internal/modules/cjs/loader.js:724:14)
>     at Function.executeUserEntryPoint [as runMain]
> (internal/modules/run_main.js:60:12)
>     at internal/main/run_main_module.js:17:47 {
>   status: 255,
>   signal: null,
>   output: [ null, null, null ],
>   pid: 804112,
>   stdout: null,
>   stderr: null
> }
> npm ERR! code 1
> npm ERR! path /home/arthur/Desktop/wordpress-develop-master
> npm ERR! command failed
> npm ERR! command sh -c node ./tools/local-env/scripts/start.js
>
> npm ERR! A complete log of this run can be found in:
> npm ERR!     /root/.npm/_logs/2020-11-30T01_42_06_367Z-debug.log
> arthur at Arthur:~/Desktop/wordpress-develop-master$
> my question is: what have done wrong ? here is the docker and npm version
> on my local machine, i am on kali linux
>
> arthur at Arthur:~/Desktop/wordpress-develop-master$ docker --version
> Docker version 19.03.13, build 4484c46
> arthur at Arthur:~/Desktop/wordpress-develop-master$ npm -v
> 7.0.3
> arthur at Arthur:~/Desktop/wordpress-develop-master$

New description:

 why do i get error when follow wordpress/wordpress-develop github
 repository README.md

 HERE IS THE wordpress/wordpress-develop github repository
 [https://github.com/WordPress/wordpress-develop/blob/master/README.md
 README.md]

 HERE IS THE ERROR WITHOUT sudo:
 {{{
 arthur at Arthur:~/Desktop/wordpress-develop-master$ npm run env:start

 WordPress at 5.6.0 env:start
 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 1252, in request
   File "http/client.py", line 1298, in _send_request
   File "http/client.py", line 1247, in endheaders
   File "http/client.py", line 1026, in _send_output
   File "http/client.py", line 966, 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 403, 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 1252, in request
   File "http/client.py", line 1298, in _send_request
   File "http/client.py", line 1247, in endheaders
   File "http/client.py", line 1026, in _send_output
   File "http/client.py", line 966, 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 205, 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 228, 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 "bin/docker-compose", line 3, in <module>
   File "compose/cli/main.py", line 67, in main
   File "compose/cli/main.py", line 123, in perform_command
   File "compose/cli/command.py", line 69, in project_from_options
   File "compose/cli/command.py", line 132, 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 188, in __init__
   File "docker/api/client.py", line 213, in _retrieve_server_version
 docker.errors.DockerException: Error while fetching server API version:
 ('Connection     aborted.', PermissionError(13, 'Permission denied'))
 [9808] Failed to execute script docker-compose
 child_process.js:674
 throw err;
 ^

 Error: Command failed: docker-compose up -d wordpress-develop
 at checkExecSyncError (child_process.js:635:11)
 at execSync (child_process.js:671:15)
 at Object.<anonymous> (/home/arthur/Desktop/wordpress-develop-
 master/tools/local->env/scripts/start.js:8:1)
 at Module._compile (internal/modules/cjs/loader.js:1015:30)
 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
 at Module.load (internal/modules/cjs/loader.js:879:32)
 at Function.Module._load (internal/modules/cjs/loader.js:724:14)
 at Function.executeUserEntryPoint [as runMain]
 (internal/modules/run_main.js:60:12)
 at internal/main/run_main_module.js:17:47 {
   status: 255,
   signal: null,
   output: [ null, null, null ],
   pid: 9806,
   stdout: null,
  stderr: null
 }
 npm ERR! code 1
 npm ERR! path /home/arthur/Desktop/wordpress-develop-master
 npm ERR! command failed
 npm ERR! command sh -c node ./tools/local-env/scripts/start.js
 npm ERR! A complete log of this run can be found in:
 npm ERR!     /home/arthur/.npm/_logs/2020-11-25T03_56_37_680Z-debug.log
 arthur at Arthur:~/Desktop/wordpress-develop-master$
 }}}

 HERE IS THE ERROR WITH sudo:
 {{{
 arthur at Arthur:~/Desktop$ cd wordpress-develop-master
 arthur at Arthur:~/Desktop/wordpress-develop-master$ sudo npm run env:start
 [sudo] password for arthur:

 > WordPress at 5.6.0 env:start
 > 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 1252, in request
   File "http/client.py", line 1298, in _send_request
   File "http/client.py", line 1247, in endheaders
   File "http/client.py", line 1026, in _send_output
   File "http/client.py", line 966, 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 403, 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 1252, in request
   File "http/client.py", line 1298, in _send_request
   File "http/client.py", line 1247, in endheaders
   File "http/client.py", line 1026, in _send_output
   File "http/client.py", line 966, 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 205, 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 228, 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 "bin/docker-compose", line 3, in <module>
   File "compose/cli/main.py", line 67, in main
   File "compose/cli/main.py", line 123, in perform_command
   File "compose/cli/command.py", line 69, in project_from_options
   File "compose/cli/command.py", line 132, 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 188, in __init__
   File "docker/api/client.py", line 213, in _retrieve_server_version
 docker.errors.DockerException: Error while fetching server API version:
 ('Connection aborted.', PermissionError(13, 'Permission denied'))
 [804114] Failed to execute script docker-compose
 child_process.js:674
     throw err;
     ^

 Error: Command failed: docker-compose up -d wordpress-develop
     at checkExecSyncError (child_process.js:635:11)
     at execSync (child_process.js:671:15)
     at Object.<anonymous> (/home/arthur/Desktop/wordpress-develop-
 master/tools/local-env/scripts/start.js:8:1)
     at Module._compile (internal/modules/cjs/loader.js:1015:30)
     at Object.Module._extensions..js
 (internal/modules/cjs/loader.js:1035:10)
     at Module.load (internal/modules/cjs/loader.js:879:32)
     at Function.Module._load (internal/modules/cjs/loader.js:724:14)
     at Function.executeUserEntryPoint [as runMain]
 (internal/modules/run_main.js:60:12)
     at internal/main/run_main_module.js:17:47 {
   status: 255,
   signal: null,
   output: [ null, null, null ],
   pid: 804112,
   stdout: null,
   stderr: null
 }
 npm ERR! code 1
 npm ERR! path /home/arthur/Desktop/wordpress-develop-master
 npm ERR! command failed
 npm ERR! command sh -c node ./tools/local-env/scripts/start.js

 npm ERR! A complete log of this run can be found in:
 npm ERR!     /root/.npm/_logs/2020-11-30T01_42_06_367Z-debug.log
 arthur at Arthur:~/Desktop/wordpress-develop-master$
 my question is: what have done wrong ? here is the docker and npm version
 on my local machine, i am on kali linux

 arthur at Arthur:~/Desktop/wordpress-develop-master$ docker --version
 Docker version 19.03.13, build 4484c46
 arthur at Arthur:~/Desktop/wordpress-develop-master$ npm -v
 7.0.3
 arthur at Arthur:~/Desktop/wordpress-develop-master$
 }}}

--

Comment:

 Hi there, welcome to WordPress Trac! Thanks for the report.

 I've edited the description to make it a bit more readable.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51898#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list