Closed aaron5670 closed 3 years ago
Can't install on Windows.
I followed issue #78 but it still won't work. I have WSL running.
Got this error:
Full error log:
In the directory: /mnt/c/Users/Gebruiker/PhpstormProjects/wp This might take a couple of minutes. β 1. Creating π WordPressify files inside β wp β 2. Installing npm packages... β 3. Installing WordPress and building Docker images.../root/.npm/_npx/1fa8d2c0f0f6a259/node_modules/wordpressify/installer/index.js:59 throw err; ^ Error: Command failed with exit code 1: npm run env:build Creating network "wp_default-network" with driver "bridge" Creating volume "wp_persistent_db" with default driver Building wordpress #1 [internal] load build definition from Dockerfile #1 sha256:784f10281390670e222b3780eee664bfc3c4720e9b8e6e6a358d04c26b36fb50 #1 transferring dockerfile: 184B 0.1s done #1 DONE 0.1s #2 [internal] load .dockerignore #2 sha256:6ba3bcd0ac18d4ba00d12daf3ebf76b5869b447345151d589de7179e6c49f5a2 #2 transferring context: 2B 0.0s done #2 DONE 0.1s #3 [internal] load metadata for docker.io/library/wordpress:5-php7.4-fpm #3 sha256:7f34402f7d731f7a328f4e1dcedbb4e14f5cc83b45480de1b335ba521bcd35df #3 DONE 2.6s #6 [1/3] FROM docker.io/library/wordpress:5-php7.4-fpm@sha256:99f366ae484063af47f5c7e560e9d1ad2b41e0c5df0c6fda8f74e66a83e77fdc #6 sha256:af58ccdcbbb50a49f1d7cbc5db0cf1261944a927ba8b1d1cbbbabdc8b00607eb #6 DONE 0.0s #4 [2/3] RUN pecl install xdebug-2.9.8 && docker-php-ext-enable xdebug #4 sha256:4e61099e1a8f1f952f39103e5cdd24a81189679e1f0b3b7d3033a053ab8ba29f #4 CACHED #5 [3/3] RUN usermod -u 0 www-data && groupmod -o -g 0 www-data #5 sha256:1954a9eaf3f0039715f766306a87483ccaa9edf575379777e81ac5932e0f010d #5 0.870 usermod: UID '0' already exists #5 ERROR: executor failed running [/bin/sh -c usermod -u 0 www-data && groupmod -o -g 0 www-data]: exit code: 4 ------ > [3/3] RUN usermod -u 0 www-data && groupmod -o -g 0 www-data: ------ executor failed running [/bin/sh -c usermod -u 0 www-data && groupmod -o -g 0 www-data]: exit code: 4 Service 'wordpress' failed to build : Build failed [09:57:01] 'buildContainers' errored after 9.29 s [09:57:01] Error: Command failed: docker-compose up --build --no-start at checkExecSyncError (node:child_process:707:11) at execSync (node:child_process:744:15) at buildContainers (/mnt/c/Users/Gebruiker/PhpstormProjects/wp/gulpfile.js:149:2) at bound (node:domain:416:15) at runBound (node:domain:427:12) at asyncRunner (/mnt/c/Users/Gebruiker/PhpstormProjects/wp/node_modules/async-done/index.js:55:18) at processTicksAndRejections (node:internal/process/task_queues:78:11) [09:57:01] 'env:build' errored after 9.33 s > wordpressify@0.3.0-1 env:build > gulp env:build [09:56:52] Using gulpfile /mnt/c/Users/Gebruiker/PhpstormProjects/wp/gulpfile.js [09:56:52] Starting 'env:build'... [09:56:52] Starting 'setupEnvironment'... [09:56:52] Finished 'setupEnvironment' after 35 ms [09:56:52] Starting 'buildContainers'... at makeError (/root/.npm/_npx/1fa8d2c0f0f6a259/node_modules/execa/lib/error.js:60:11) at handlePromise (/root/.npm/_npx/1fa8d2c0f0f6a259/node_modules/execa/index.js:118:26) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async /root/.npm/_npx/1fa8d2c0f0f6a259/node_modules/wordpressify/installer/modules/run.js:229:3 { shortMessage: 'Command failed with exit code 1: npm run env:build', command: 'npm run env:build', escapedCommand: 'npm run "env:build"', exitCode: 1, signal: undefined, signalDescription: undefined, stdout: '\n' + '> wordpressify@0.3.0-1 env:build\n' + '> gulp env:build\n' + '\n' + '[09:56:52] Using gulpfile /mnt/c/Users/Gebruiker/PhpstormProjects/wp/gulpfile.js\n' + "[09:56:52] Starting 'env:build'...\n" + "[09:56:52] Starting 'setupEnvironment'...\n" + "[09:56:52] Finished 'setupEnvironment' after 35 ms\n" + "[09:56:52] Starting 'buildContainers'...", stderr: 'Creating network "wp_default-network" with driver "bridge"\n' + 'Creating volume "wp_persistent_db" with default driver\n' + 'Building wordpress\n' + '#1 [internal] load build definition from Dockerfile\n' + '#1 sha256:784f10281390670e222b3780eee664bfc3c4720e9b8e6e6a358d04c26b36fb50\n' + '#1 transferring dockerfile: 184B 0.1s done\n' + '#1 DONE 0.1s\n' + '\n' + '#2 [internal] load .dockerignore\n' + '#2 sha256:6ba3bcd0ac18d4ba00d12daf3ebf76b5869b447345151d589de7179e6c49f5a2\n' + '#2 transferring context: 2B 0.0s done\n' + '#2 DONE 0.1s\n' + '\n' + '#3 [internal] load metadata for docker.io/library/wordpress:5-php7.4-fpm\n' + '#3 sha256:7f34402f7d731f7a328f4e1dcedbb4e14f5cc83b45480de1b335ba521bcd35df\n' + '#3 DONE 2.6s\n' + '\n' + '#6 [1/3] FROM docker.io/library/wordpress:5-php7.4-fpm@sha256:99f366ae484063af47f5c7e560e9d1ad2b41e0c5df0c6fda8f74e66a83e77fdc\n' + '#6 sha256:af58ccdcbbb50a49f1d7cbc5db0cf1261944a927ba8b1d1cbbbabdc8b00607eb\n' + '#6 DONE 0.0s\n' + '\n' + '#4 [2/3] RUN pecl install xdebug-2.9.8 && docker-php-ext-enable xdebug\n' + '#4 sha256:4e61099e1a8f1f952f39103e5cdd24a81189679e1f0b3b7d3033a053ab8ba29f\n' + '#4 CACHED\n' + '\n' + '#5 [3/3] RUN usermod -u 0 www-data && groupmod -o -g 0 www-data\n' + '#5 sha256:1954a9eaf3f0039715f766306a87483ccaa9edf575379777e81ac5932e0f010d\n' + "#5 0.870 usermod: UID '0' already exists\n" + '#5 ERROR: executor failed running [/bin/sh -c usermod -u 0 www-data && groupmod -o -g 0 www-data]: exit code: 4\n' + '------\n' + ' > [3/3] RUN usermod -u 0 www-data && groupmod -o -g 0 www-data:\n' + '------\n' + 'executor failed running [/bin/sh -c usermod -u 0 www-data && groupmod -o -g 0 www-data]: exit code: 4\n' + "Service 'wordpress' failed to build : Build failed\n" + "[09:57:01] 'buildContainers' errored after 9.29 s\n" + '[09:57:01] Error: Command failed: docker-compose up --build --no-start\n' + ' at checkExecSyncError (node:child_process:707:11)\n' + ' at execSync (node:child_process:744:15)\n' + ' at buildContainers (/mnt/c/Users/Gebruiker/PhpstormProjects/wp/gulpfile.js:149:2)\n' + ' at bound (node:domain:416:15)\n' + ' at runBound (node:domain:427:12)\n' + ' at asyncRunner (/mnt/c/Users/Gebruiker/PhpstormProjects/wp/node_modules/async-done/index.js:55:18)\n' + ' at processTicksAndRejections (node:internal/process/task_queues:78:11)\n' + "[09:57:01] 'env:build' errored after 9.33 s", failed: true, timedOut: false, isCanceled: false, killed: false }
Can you try again but using WSL as some non-root user?
@ribaricplusplus thanks!
Unfortunately I can't try it anymore. I found an alternative for this, thanks anyway!
Can't install on Windows.
I followed issue #78 but it still won't work. I have WSL running.
Got this error:
Full error log: