Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wp-now: wp-cli step doesnt work in wp-content mode #304

Open
lgersman opened this issue Jun 13, 2024 · 0 comments
Open

wp-now: wp-cli step doesnt work in wp-content mode #304

lgersman opened this issue Jun 13, 2024 · 0 comments

Comments

@lgersman
Copy link

the wp-cli step will throw an error when in wp-content mode.

Error: Could not write to "/wordpress/run-cli.php": There is no such file or directory OR the parent directory does not exist.
    at descriptor.value (/home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@php-wasm/node/index.cjs:72672:17)
    at Object.wpCLI$1 [as wp-cli] (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@wp-playground/blueprints/index.js:1209:87)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async o (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@wp-playground/blueprints/index.js:9413:30)
    at async Object.run (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@wp-playground/blueprints/index.js:9340:23)
    at async runBlueprintSteps (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@wp-playground/blueprints/index.js:9448:3)
    at async startWPNow (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@wp-now/wp-now/main.js:662:5)
    at async startServer (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@wp-now/wp-now/main.js:926:42)
    at async Object.handler (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@wp-now/wp-now/main.js:1107:25) {
  [cause]: [<generic error, no stack>] {
    name: 'ErrnoError',
    node: undefined,
    setErrno: [Function (anonymous)],
    errno: 44,
    message: 'FS error'
  }
}
Error: Error when executing the blueprint step #2 ({"step":"wp-cli","command":"wp plugin activate --all"}) : Could not write to "/wordpress/run-cli.php": There is no such file or directory OR the parent directory does not exist.
    at Object.run (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@wp-playground/blueprints/index.js:9343:37)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runBlueprintSteps (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@wp-playground/blueprints/index.js:9448:3)
    ... 2 lines matching cause stack trace ...
    at async Object.handler (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@wp-now/wp-now/main.js:1107:25) {
  [cause]: Error: Could not write to "/wordpress/run-cli.php": There is no such file or directory OR the parent directory does not exist.
      at descriptor.value (/home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@php-wasm/node/index.cjs:72672:17)
      at Object.wpCLI$1 [as wp-cli] (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@wp-playground/blueprints/index.js:1209:87)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async o (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@wp-playground/blueprints/index.js:9413:30)
      at async Object.run (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@wp-playground/blueprints/index.js:9340:23)
      at async runBlueprintSteps (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@wp-playground/blueprints/index.js:9448:3)
      at async startWPNow (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@wp-now/wp-now/main.js:662:5)
      at async startServer (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@wp-now/wp-now/main.js:926:42)
      at async Object.handler (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@[email protected]/node_modules/@wp-now/wp-now/main.js:1107:25) {
    [cause]: [<generic error, no stack>] {
      name: 'ErrnoError',
      node: undefined,
      setErrno: [Function (anonymous)],
      errno: 44,
      message: 'FS error'
    }
  }
}
Failed to start the server: Error when executing the blueprint step #2 ({"step":"wp-cli","command":"wp plugin activate --all"}) : Could not write to "/wordpress/run-cli.php": There is no such file or directory OR the parent directory does not exist.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant