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

Could not mount db.copy inside wp-config directory #230

Open
ecotechie opened this issue Apr 9, 2024 · 7 comments
Open

Could not mount db.copy inside wp-config directory #230

ecotechie opened this issue Apr 9, 2024 · 7 comments
Labels
Bug Something isn't working wp-now

Comments

@ecotechie
Copy link

Hi, I'm running Linux (NixOS) and am not able to run wp-now in the wp-content directory. I am able to run it just fine in a plugin or theme directory. I guess my goal was to run WordPress with several plugins and themes, so I could do some compatibility testing.

[sergio@nixie:/run/media/sergio/neon/var/www/nerdpress/wp-content]$ nix-shell -p nodePackages_latest.nodejs

[nix-shell:/run/media/sergio/neon/var/www/nerdpress/wp-content]$ npx @wp-now/wp-now start
Starting the server......
directory: /run/media/sergio/neon/var/www/nerdpress/wp-content
mode: wp-content
php: 8.0
wp: latest
Downloading WordPress latest...
Downloading SQLite...
Error: Could not mount /home/sergio/.wp-now/mu-plugins/sqlite-database-integration-main/db.copy: Not a directory or a symbolic link to a directory.
    at descriptor.value (/home/sergio/.npm/_npx/7c65af5c66ec2a7e/node_modules/@php-wasm/node/index.cjs:72642:17)
    at mountSqlitePlugin (file:///home/sergio/.npm/_npx/7c65af5c66ec2a7e/node_modules/@wp-now/wp-now/main.js:830:9)
    at runWpContentMode (file:///home/sergio/.npm/_npx/7c65af5c66ec2a7e/node_modules/@wp-now/wp-now/main.js:690:3)
    at async file:///home/sergio/.npm/_npx/7c65af5c66ec2a7e/node_modules/@wp-now/wp-now/main.js:626:9
    at async applyToInstances (file:///home/sergio/.npm/_npx/7c65af5c66ec2a7e/node_modules/@wp-now/wp-now/main.js:572:5)
    at async startWPNow (file:///home/sergio/.npm/_npx/7c65af5c66ec2a7e/node_modules/@wp-now/wp-now/main.js:623:3)
    at async startServer (file:///home/sergio/.npm/_npx/7c65af5c66ec2a7e/node_modules/@wp-now/wp-now/main.js:970:42)
    at async Object.handler (file:///home/sergio/.npm/_npx/7c65af5c66ec2a7e/node_modules/@wp-now/wp-now/main.js:1152:25) {
  [cause]: [<generic error, no stack>] {
    name: 'ErrnoError',
    node: undefined,
    setErrno: [Function (anonymous)],
    errno: 54,
    message: 'FS error'
  }
}
Failed to start the server: Could not mount /home/sergio/.wp-now/mu-plugins/sqlite-database-integration-main/db.copy: Not a directory or a symbolic link to a directory.

Strangely, if I run npx @wp-now/wp-now start inside the WordPress root directory, all the themes and plugins are loaded. So I guess that is good enough for me.

What is the expected behavior of npx @wp-now/wp-now start in the wp-config directory?

@ecotechie ecotechie changed the title Could not mount db.copy Could not mount db.copy inside wp-config directory Apr 9, 2024
@bgrgicak
Copy link
Collaborator

@ecotechie what version of wp-now are you using? This looks related to an issue we fixed recently #169. If you are not using the latest version of wp-now, please update and restart your server.

@adamziel adamziel transferred this issue from WordPress/wordpress-playground Apr 12, 2024
@adamziel
Copy link
Collaborator

Transferring this issue to the playground-tools repo where wp-now lives.

@adamziel adamziel added Bug Something isn't working wp-now labels Apr 12, 2024
@adamziel adamziel added this to the Zero Crashes – Tools milestone Apr 12, 2024
@ecotechie
Copy link
Author

ecotechie commented Apr 15, 2024

@bgrgicak I think version 0.1.70?

[sergio@nixie:/run/media/sergio/neon/var/www/nerdpress]$ nix-shell -p nodePackages_latest.nodejs

[nix-shell:/run/media/sergio/neon/var/www/nerdpress]$ npx @wp-now/wp-now
Need to install the following packages:
@wp-now/wp-now@0.1.70
Ok to proceed? (y) 
wp-now <cmd> [args]

But when I run npx @wp-now/wp-now --version, I get unknown as output.

@bgrgicak
Copy link
Collaborator

I usually check the version using wp-now --versionm same result with npx @wp-now/wp-now --version.

@bgrgicak
Copy link
Collaborator

In the meantime, you can manually fix this by adding the plugin files into /home/sergio/.wp-now/mu-plugins/sqlite-database-integration-main/

@ecotechie
Copy link
Author

Sorry, @bgrgicak not sure what you mean there. The link you shared is to a change log.

@bgrgicak
Copy link
Collaborator

Your local setup is missing the sqlite-database-integration plugin. To fix it you could download the latest version of the plugin (ZIP download) and copy the content of that zip into /home/sergio/.wp-now/mu-plugins/sqlite-database-integration-main/.

This will ensure that when wp-now loads, it will have the plugin available which includes the db.copy file that caused your error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working wp-now
Projects
Status: No status
Development

No branches or pull requests

3 participants