Skip to content

Troubleshoot local development with DDEV

Fix common problems with the WP Waterfall DDEV add-on: certificate warnings, ports, SSH and host keys, backups, database versions, WP-CLI, and Git divergence.

Start with ddev wpwaterfall doctor. It checks the system, Docker and its memory, your tools, the database version, ports 80 and 443, the browser certificate, DNS for NAME.ddev.site, your SSH key, your API key and its scopes, the server connection, the host key, rsync, and the Git remote. Each line says PASS, WARN, or FAIL, and a WARN or FAIL says the fix. doctor --fix offers the safe fixes one by one and asks before each.

When a pull or push step fails, the add-on shows the last 10 lines that matter and keeps the whole output in .ddev/.wpwaterfall-last-failure.log. Send that file to support if you need help. DDEV prints error=exit status N, where N is the add-on's exit code. See the command reference.

Sign-in and keys

"No WP Waterfall API key was found." Setup shows a numbered guide: make a key at my.wpwaterfall.com under Account settings, Integrations, API keys with sites:read, sites:write, and backups:write, then hand it over with the hidden prompt, WPWATERFALL_API_KEY, or WPWATERFALL_API_KEY_COMMAND. The add-on looks for them in that order, then for the key file and a key stored in DDEV. See How do I get my API key?.

"WP Waterfall did not accept the API key." The key was mistyped, has expired, or was revoked (the server gives the same answer for all three). Make a new key and replace the old one in the one place it is stored.

"The API key may not do this." The key lacks a scope. Use sites:read, sites:write, and backups:write. Pulling from live and pushing the database or uploads need backups:write, and the person behind the key needs database access on the site. See API keys and scopes.

"No SSH key is loaded in DDEV's ssh agent." Run ddev auth ssh.

"The server refused your SSH key." The public half is not on your account, or your role cannot deploy code to the site. Add it under Account settings, Integrations, SSH keys. See Who can use a key?, then run ddev auth ssh. Do not retry in a loop: after 5 failed logins the server blocks your address for an hour. The add-on stops at the first refusal for that reason. Wait an hour or use another network. ddev wpwaterfall doctor --login tries one login.

The connection

"Host key mismatch." The server shows a different SSH key than WP Waterfall reports. Nothing was sent. If the environment was moved or restored, run ddev wpwaterfall init --refresh. If it keeps happening on a network you do not trust, message Nami from the chat button.

The first connection trusts the host. When WP Waterfall reports no host key fingerprint, the add-on remembers the key from the first connection and refuses any change later. It never turns host key checking off.

"Cannot reach the WP Waterfall API." Check your network, a proxy, or a VPN. For a test server, set WPWATERFALL_API_URL. Plain http works for localhost only.

The address or port changed. The next ddev start applies it. ddev wpwaterfall status warns when WP Waterfall reports a new host or port. Run ddev wpwaterfall update.

The update did not run

Each ddev start prints one WP Waterfall: line about the update. If you see none, or the add-on stays on an old version:

  • No line at all. The update on start is off. ddev wpwaterfall doctor says why on its auto update line: WPWATERFALL_AUTO_UPDATE=off is set in your shell, CI is true, or you installed the add-on from a folder on your computer. A folder install updates from that folder: ddev add-on get /path/to/folder. To follow the releases again, run ddev add-on get https://get.wpwaterfall.com/local.tar.gz.
  • WP Waterfall: offline, update check skipped. Your computer could not reach get.wpwaterfall.com or the WP Waterfall API within a few seconds. Check the network, a proxy, or a VPN, then start again.
  • A line that ends with Run it by hand: ddev wpwaterfall update. One step of the update failed, and the line says which. Run that command to try again and see the whole message. A checksum or a signature that does not match means the download was damaged or changed on the way. Nothing was installed, so try again later. A line that says your computer has no openssl that can check the signature means the add-on stays as it is until openssl works: install it (macOS has it; Debian and Ubuntu: sudo apt install openssl) and run ddev wpwaterfall update.
  • No API key here, so the site settings were not checked. The add-on was still updated. Set WPWATERFALL_API_KEY, or run ddev wpwaterfall setup, so the settings are checked too.
  • An add-on from before version 0.5.0 has no update command. Run ddev add-on get https://get.wpwaterfall.com/local.tar.gz once in that project, or ddev wpwaterfall update --all from any project with a newer add-on.

To run it by hand, see Keep the add-on up to date. An update never changes the database, the code, the uploads, or the network map. When the server changed one of those, it prints the command to run, such as ddev wpwaterfall pull --db.

Code and Git

  • "You have uncommitted changes in files Git tracks." The add-on will not pull over unsaved work. Commit or stash, then pull again.
  • "Your master and wpwaterfall/master have both moved." Run ddev wpwaterfall pull --code --rebase, or run git merge wpwaterfall/master. The add-on never discards your commits.
  • "git push failed." The remote moved ahead. Pull first. A push to live is refused by design: push to staging and promote.
  • "You are on a detached HEAD." code --release live leaves you on live's commit. Run ddev wpwaterfall code to return to your branch.

Database and uploads

  • "The dump is incomplete." The connection dropped during the export and your local database was not changed. Pull again. For a large database, use --method backup.
  • "The download is damaged" or "ended at N bytes." The add-on deleted the cut download. Pull again, and it resumes when the server allows.
  • "WP Waterfall refused this pull" on live. Live takes no account SSH keys. Use --method backup, the default for live.
  • The site redirects to the live address, or images do not load. Run ddev wp option get siteurl. If it is not your DDEV address, run ddev wp search-replace https://OLD-ADDRESS $(ddev describe -j | jq -r .raw.primary_url) --all-tables-with-prefix --skip-columns=guid.
  • A subsite shows the wrong page or a 404. Run doctor, which shows the network mode, prefix, and whether the rules are current. Then run init --refresh, ddev restart, and pull --db. A subdomain network needs internet DNS for ddev.site.
  • A network database push was refused. The message names the reason. Nothing was sent. Run pull --db so the local copy matches the environment, then push again.
  • Mixed content warnings. If the browser does not trust the certificate, see below. Otherwise a post holds an old http address, so run pull --db again.
  • Mail from the local site. DDEV catches all mail in Mailpit: ddev launch -m. The add-on switches off mail and backup plugins that hold live credentials. Edit the list in .ddev/.wpwaterfall-deactivate.

A cache drop-in slows or breaks the local site

If your repository tracks advanced-cache.php, object-cache.php, db.php, or sunrise.php, a pull keeps it and warns you, because those files talk to services your computer does not run.

  • For a tracked file, switch it off in wp-config-local.php. The warning prints the line, such as define('WP_CACHE', false); or define('WP_REDIS_DISABLED', true);.
  • For an untracked file, pass --disable-dropins to rename it to NAME.wpwaterfall-disabled.

The add-on never deletes or rewrites a tracked file. WP Waterfall's own Redis drop-in is not in your repository and never comes down.

Your browser says the connection is not private

The local site opens over https only, and your browser does not trust DDEV's certificate authority yet. Run:

ddev wpwaterfall trust

Then close every browser window and reopen it. trust --check reports the state. It asks before each change.

  • Windows with WSL2: see Local development on Windows with WSL2 for the Windows steps, the by hand steps, and the "Exec format error" fix.
  • Firefox keeps its own list. On Windows set security.enterprise_roots.enabled to true in about:config. On Linux run sudo apt install libnss3-tools and trust again.
  • macOS: trust runs mkcert -install, which asks for your password. Restart the browser.

Port is already allocated

DDEV needs ports 80 and 443. When another program holds one, ddev start says port is already allocated or port is already in use. Run ddev wpwaterfall doctor, which names the program and prints the command. Common ones:

  • apache2 or nginx, also inside WSL Ubuntu: sudo systemctl disable --now apache2 (or nginx).
  • Another Docker project: docker ps, then docker stop NAME.
  • IIS on Windows (shown as System): in an administrator PowerShell, Stop-Service W3SVC, then Set-Service W3SVC -StartupType Disabled.
  • Skype and some VPN or sharing tools on Windows: quit them.
  • The built-in Apache on macOS: sudo apachectl stop.

Then run ddev restart. Only if you cannot free the ports, run ddev wpwaterfall doctor --fix --custom-ports. It picks other ports (such as 33000 and 33001), writes them to .ddev/config.wpwaterfall-ports.yaml, and the address then carries the port, such as https://NAME.ddev.site:33001. Once the ports are free, doctor --fix takes the custom ports away.

The project will not start: "its database volume holds mariadb:11.8"

You started the project before running init, and DDEV will not open a database made with another version. Run ddev wpwaterfall doctor --fix. An empty database is replaced. One with tables is snapshotted to .ddev/db_snapshots first, and the message tells you how to restore it (ddev config --database=mariadb:11.8, then ddev snapshot restore NAME). By hand: ddev start --reset-database.

"Your SSH user cannot run WP-CLI" or "cannot write to uploads"

On some servers the SSH login cannot read wp-config.php or write to the uploads folder, so WP-CLI or rsync fails with Permission denied. The server needs a WP Waterfall update. Ask support.

  • A database pull switches to a backup by itself and says so. Uploads still come over SSH. The key needs backups:write.
  • A database push stops before it changes anything. Code pushes and uploads are not affected.
  • An uploads push stops with Your SSH user cannot write to uploads on this environment yet. Files the server refused were not sent. Pulls, code pushes, and database pushes are not affected. Run the same push again after the update.

doctor --login shows the WP-CLI warning.

"Strange wp-config.php file" on your computer

WP-CLI needs the standard last line of the wp-config.php that init writes. If you edited it, make the last line exactly require_once ABSPATH . 'wp-settings.php'; at the top level, or run ddev wpwaterfall init --refresh.

Hundreds of "Deprecated" lines

WP-CLI prints deprecation notices on PHP 8.4. The add-on silences them in its own commands, but a plain ddev wp still prints them. They are harmless. To hide them, add define('WP_DEBUG_DISPLAY', false); to wp-config-local.php.

A plugin says it "generated unexpected output during activation"

A plugin not ready for your PHP version prints deprecation notices into the page, so WordPress shows "headers already sent". The server never prints them. The add-on keeps PHP errors out of the page unless WP_DEBUG is true, using .ddev/php/wpwaterfall.ini and WP_DEBUG set to false in wp-config.php. Errors still go to the PHP error log (ddev logs -s web). If you set the project up with an older add-on, run ddev add-on get https://get.wpwaterfall.com/local.tar.gz, then ddev wpwaterfall init --refresh and ddev restart.

To see errors on the page, run ddev config --web-environment-add=WP_DEBUG=true and ddev restart. Set it back to false the same way. Or set WP_DEBUG in wp-config-local.php, which the add-on never overwrites.

The local site is slow

On Windows keep the project in ~/projects, not on C:\. On macOS turn on Mutagen and give Docker 4 GB or more (see Develop locally with DDEV). For a slow pull, pass --uploads-days 30 or --max-size 50M, or pull only --db, --uploads, or --code.

Still stuck?

Run ddev wpwaterfall status and ddev wpwaterfall doctor, and send the output to WP Waterfall support. It holds no secret.

Still stuck?

Email support at wpwaterfall dot com with your site name and what you tried, or send us a message.